Repository navigation
Conversation
|
Hey! Your PR title Please update it to start with one of:
Where See CONTRIBUTING.md for details. |
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
Issue for this PR
Fixes #37651
Context: #37552 documented two independent 400 paths for Kimi K3 on OpenCode Go. The
temperaturepath was fixed in models.dev#3331; this PR fixes the remaining history-replay path, now tracked in #37651.Type of change
What does this PR do?
Skips metadata-free empty reasoning parts while rebuilding model history. Some providers can open and close a reasoning stream without emitting a delta; replaying that boundary previously produced an empty assistant message before the next step.
How did you verify your code works?
step-start/ empty-reasoning sequence.bun test test/session/message-v2.test.ts: 37 passed.Screenshots / recordings
Not applicable.
Checklist