Skip to content

fix(compaction,tools): stop forcing thinking=disabled and degrade stale evidence_hint_id - #587

Merged
BaaRai merged 2 commits into
mainfrom
fix/550-compaction-thinking-and-evidence-hint
Nov 27, 2026
Merged

BaaRai merged 2 commits into
mainfrom
fix/550-compaction-thinking-and-evidence-hint

Conversation

@BaaRai

@BaaRai BaaRai commented Nov 27, 2026

Copy link
Copy Markdown
Owner

Fixes #550.

  • Compaction no longer sends thinking: {"type":"disabled"}; it inherits the profile setting. When Anthropic returns the 400 asking for {"type":"between_tools"}, compaction retries once with that mode.
  • The LLM failover summary now reports the real cause (quota exhausted or failed consecutive calls) instead of always claiming quota.
  • report_finding degrades a stale, non-hint, zero or absent evidence_hint_id to a recorded finding with an explanatory evidence_note, instead of discarding the finding when no explicit traffic_refs are present.

Tests: agent/compaction_thinking_test.go (no disabled parameter, single between_tools retry) and agent/finding_hint_degrade_test.go (absent/zero/null/empty/negative and stale/non-hint IDs). Negative controls revert each fix and fail as expected.

Note: server/intercept.go still sends Thinking: "disabled" on the interception judgement path; that path is outside this issue.

@BaaRai
BaaRai merged commit cc25ad5 into main Nov 27, 2026
7 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.

Compaction fails on Claude Sonnet 5.5 (400 thinking) and report_finding is unusable (evidence_hint_id)

1 participant