Spaces:
Runtime error

ayushm98 commited on
Commit
bd867f1
·
1 Parent(s): 85641be

Fix tool_use/tool_result mismatch error when resuming after clarification

Browse files

- Add validation in Claude client to remove dangling tool_use blocks
- Recreate fresh agent instances when resuming after clarification
- Prevents stale conversation state from causing API errors

4 files changed +28 -4
Files changed (4)
Dockerfile+1-1
chainlit_app.py+2-2
codepilot/agents/orchestrator.py+9-1
codepilot/llm/claude_client.py+16