Use each model’s configured maximum output budget on every agent request - #521
Conversation
Implementation PlanProblem analysisThe current code gives The latest issue clarification establishes one simple invariant: one configured maximum, one meaning. Ordinary requests and bounded retries use the resolved model Deliverables
Files to create or modify
No new model configuration field is planned: Testing approach
Acceptance criteria
Risks and open questions
Plan created by mach6 |
Vitest coverage
|
Progress UpdateImplemented the configured-output-budget correction across the provider, agent, session, UI, and documentation layers. Changes
Verification
Commit: Progress tracked by mach6 |
Unverified Review Candidates — Pending AssessmentReview round: 1
CriticalNone. ImportantFinding 1 — Fixed-budget length retries may repeat a maximal, already-truncated request (85% confidence)
Finding 2 — No end-to-end test proves a registry override reaches an ordinary outbound request (91% confidence)
Finding 3 — Reactive compact-and-retry is tested with mocked recovery rather than the full request sequence (89% confidence)
SuggestionsFinding 4 — Codex rejection does not cover all configuration paths that can be silently ignored (80% confidence)
Finding 5 — Bedrock's explicit context-window stop signal lacks response-path coverage (87% confidence)
Finding 6 — Explicit summary budgets are not asserted at their call sites (84% confidence) Compaction and branch-summary code still pass explicit smaller limits, but their tests do not assert those Finding 7 — Google and Vertex duplicate the same thinking-budget policy helper (93% confidence)
Strengths
Agents run: code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier Reviewed by mach6 |
Review AssessmentClassifications
Action PlanNo merge-blocking changes required. Assessment by mach6 |
Progress UpdateAddressed all four non-blocking review follow-ups:
Verification
Commit: Progress tracked by mach6 |
Unverified Review Candidates — Pending AssessmentReview round: 2
CriticalNone. ImportantFinding 1 — Session recovery lacks coverage when provider usage omits input tokens (93% confidence)
Finding 2 — Numeric-thinking headroom is not directly tested for Vertex or Gemini CLI (96% confidence) The PR changes separate reasoning-budget implementations in SuggestionsFinding 3 — Context estimation runs eagerly on every completed turn (88% confidence)
Finding 4 — Google and Vertex still duplicate the thinking-budget policy helper (93% confidence)
Strengths
Agents run: code-reviewer, error-auditor, test-reviewer, completeness-checker, simplifier Reviewed by mach6 |
Review AssessmentClassifications
Action PlanNo merge-blocking changes required. Assessment by mach6 |
Closes #519
Ensure ordinary agent requests and bounded retries use each model's configured maximum output budget, while compacting reactively only when exhausted responses may have been constrained by remaining context.
Implementation plan posted as a comment below.