Skip to content

Conversation

@eneufeld
Copy link
Contributor

@eneufeld eneufeld commented Jan 8, 2026

What it does

When parsing arguments of a toolcall, handle invalid JSON. This way the code does not crash.

fix: #16705

How to test

Ask an agent to change a file. press cancel while the tool is still running.
Then send a new request to the llm .
On main this should lead to an error.
With this it should be fixed.

Follow-ups

Breaking changes

  • This PR introduces breaking changes and requires careful review. If yes, the breaking changes section in the changelog has been updated.

Attribution

Review checklist

Reminder for reviewers

@eneufeld eneufeld added the theia-ai issues related to TheiaAI label Jan 8, 2026
@github-project-automation github-project-automation bot moved this to Waiting on reviewers in PR Backlog Jan 8, 2026
@eneufeld eneufeld changed the title feat(ai-core): do not break chat when interrupting tool calls fix(ai-core): do not break chat when interrupting tool calls Jan 8, 2026
When parsing arguments of a toolcall, handle invalid JSON.
This way the code does not crash.

fix: #16705
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

theia-ai issues related to TheiaAI

Projects

Status: Waiting on reviewers

Development

Successfully merging this pull request may close these issues.

Interruption breaks chat

2 participants