fix(opencode): improve local OpenAI-compatible backend robustness#20668
fix(opencode): improve local OpenAI-compatible backend robustness#20668krystophny wants to merge 1 commit intoanomalyco:devfrom
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found several potentially related PRs: Most Relevant:
These PRs may have already addressed parts of what PR #20668 is fixing. Consider reviewing them to ensure no duplicate effort. |
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
a4d3f0f to
0ae84cc
Compare
Issue for this PR
Closes #20669
Type of change
What does this PR do?
This makes the default agent more tolerant of two local OpenAI-compatible backend quirks that showed up in real runs:
commandwithout adescriptionfinish_reason: "tool_calls"withtool_calls: []The change normalizes missing bash descriptions before validation/execution and treats empty
tool_callsarrays as a normal stop instead of a real tool-call turn.How did you verify your code works?
bun run --cwd packages/opencode typecheckbun test test/tool/bash.test.ts test/provider/copilot/copilot-chat-model.test.tsScreenshots / recordings
Not applicable. This is a backend/runtime bug fix.
Checklist