Skip to content

fix: Reasoning content preservation for thinking-mode providers#475

Merged
edenreich merged 1 commit intomainfrom
fix/preserve-reasoning-content
Apr 29, 2026
Merged

fix: Reasoning content preservation for thinking-mode providers#475
edenreich merged 1 commit intomainfrom
fix/preserve-reasoning-content

Conversation

@edenreich
Copy link
Copy Markdown
Contributor

@edenreich edenreich commented Apr 29, 2026

The streaming agent now preserves reasoning_content even when no tool calls are present, preventing HTTP 400 errors from thinking-mode providers (e.g. Deepseek).
The conversation message builder also backfills missing reasoning from the entry's top-level field, fixing a regression where legacy assistant turns would lose their reasoning.

Closes #474

@edenreich edenreich changed the title Fix reasoning content preservation for thinking-mode providers fix: Reasoning content preservation for thinking-mode providers Apr 29, 2026
@edenreich edenreich merged commit c5f2c3c into main Apr 29, 2026
9 of 10 checks passed
@edenreich edenreich deleted the fix/preserve-reasoning-content branch April 29, 2026 23:27
ig-semantic-release-bot Bot pushed a commit that referenced this pull request Apr 30, 2026
## [0.106.2](v0.106.1...v0.106.2) (2026-04-30)

### 🐛 Bug Fixes

* **storage:** Persist session groups via configured storage backend ([#476](#476)) ([6741419](6741419))
* Reasoning content preservation for thinking-mode providers ([#475](#475)) ([c5f2c3c](c5f2c3c)), closes [#474](#474)

### 🧹 Maintenance

* **nix:** Update package to v0.106.1 ([#469](#469)) ([51da75c](51da75c))
@ig-semantic-release-bot
Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.106.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] CLI fails after an error is out

1 participant