Skip to content

fix(acp): separate v2 thinking blocks - #65

Merged
danielkov merged 1 commit into
mainfrom
fix/acp-v2-thinking-blocks
Aug 31, 2026
Merged

fix(acp): separate v2 thinking blocks#65
danielkov merged 1 commit into
mainfrom
fix/acp-v2-thinking-blocks

Conversation

@danielkov

Copy link
Copy Markdown
Contributor

Summary

Preserve ACP v2 reasoning-part boundaries by assigning each AgentKit reasoning part a distinct thought message ID. This restores separate thinking blocks in clients that group streamed chunks by message ID.

Motivation

The ACP v2 integration reused one thought message ID for all reasoning parts between tool boundaries, causing the TUI and desktop app to append distinct thinking sections into a single block.

Technical details

Streaming and response replacement

Chunks from the same reasoning part retain one stable message ID, while separate parts receive distinct IDs. Cancellation and superseded-response cleanup now clears every active thought message rather than only the latest one.

@danielkov
danielkov merged commit 0ab8199 into main Aug 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant