GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||
GeezerVison is showing github.com — fix(core): repair interleaved text/tool-call parts in assistant messages by bil9148 · Pull Request #14456 · anomalyco/opencode Conversation
|
|
The following comment was made by an LLM, it may be inaccurate: Based on my search, I found one potentially related PR: Related PR:
The other PRs found (#14393, #8888) appear less directly related as they focus on different aspects (thinking blocks and message conversion safeguards respectively). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
|
||
| if (next?.role === "tool" && Array.isArray(next.content)) { | ||
| next.content = [...next.content, ...patches] | ||
| } else { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
We should try to avoid using the 'else' statements:
https://github.com/anomalyco/opencode/blob/dev/CONTRIBUTING.md#style-preferences
Could this be reworked?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
messages.87:tool_use ids were found without tool_result blocks immediately
There was an error while loading. Please reload this page.