Skip to content

fix(compaction): keep thinking on the last live tool-use assistant - #1354

Merged
TheGreatAxios merged 2 commits into
mainfrom
cl-9904-restore-anthropic-thinking-on-the-live-tool-use-assistant
Oct 6, 2026
Merged

TheGreatAxios merged 2 commits into
mainfrom
cl-9904-restore-anthropic-thinking-on-the-live-tool-use-assistant

Conversation

@TheGreatAxios

Copy link
Copy Markdown
Collaborator

Summary

  • After compact, the last assistant that still has a tool call keeps its thinking and signature unmodified so Anthropic continuation does not 400
  • Older live-tail thinking is still dropped

Verification

  • bun run typecheck, bun run build, and bun run test pass
  • Compactor tests pin last-tool thinking kept, older thinking dropped, thinking-only omitted

Fixes CL-9904

@linear-code

linear-code Bot commented Oct 6, 2026

Copy link
Copy Markdown

CL-9904

@TheGreatAxios
TheGreatAxios merged commit 450f19d into main Oct 6, 2026
13 checks passed
@TheGreatAxios
TheGreatAxios deleted the cl-9904-restore-anthropic-thinking-on-the-live-tool-use-assistant branch October 6, 2026 21:41
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