[PR #1325] [MERGED] fix: strip thinking blocks from title #9894

Closed
opened 2026-02-16 18:14:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1325
Author: @rekram1-node
Created: 7/25/2025
Status: Merged
Merged: 7/26/2025
Merged by: @adamdotdevin

Base: devHead: strip-thinking-chunks


📝 Commits (1)

  • 1a2bd64 fix: strip thinking blocks from title

📊 Changes

1 file changed (+3 additions, -1 deletions)

View changed files

📝 packages/opencode/src/session/index.ts (+3 -1)

📄 Description

Strip thinking blocks from title and truncate if too long.

Would use extractReasoningMiddleware but it only seems to work for streaming

Fixes: #1324


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1325 **Author:** [@rekram1-node](https://github.com/rekram1-node) **Created:** 7/25/2025 **Status:** ✅ Merged **Merged:** 7/26/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `strip-thinking-chunks` --- ### 📝 Commits (1) - [`1a2bd64`](https://github.com/anomalyco/opencode/commit/1a2bd64b50240386c30638c958cb33855d184c52) fix: strip thinking blocks from title ### 📊 Changes **1 file changed** (+3 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/session/index.ts` (+3 -1) </details> ### 📄 Description Strip thinking blocks from title and truncate if too long. Would use [extractReasoningMiddleware](https://ai-sdk.dev/docs/ai-sdk-core/middleware#extract-reasoning) but it only seems to work for streaming Fixes: #1324 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:21 -05:00
yindo closed this issue 2026-02-16 18:14:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9894