Skip to content

fix(core): clarify agent context budgets#355

Merged
cbusillo merged 1 commit into
mainfrom
fix/agent-prompt-budget-guard
Jun 3, 2026
Merged

fix(core): clarify agent context budgets#355
cbusillo merged 1 commit into
mainfrom
fix/agent-prompt-budget-guard

Conversation

@cbusillo
Copy link
Copy Markdown
Owner

@cbusillo cbusillo commented Jun 3, 2026

Summary

  • advertise context_budget_tokens as an integer tool-schema field and return actionable guidance for bad budget values
  • reuse the context-file budget guidance across parse and budget failures
  • add broader UTF-8 exec stream regression coverage for partial prune and 4-byte overlap cases

Validation

  • cargo test --manifest-path code-rs/Cargo.toml -p code-core context_budget -- --nocapture
  • cargo test --manifest-path code-rs/Cargo.toml -p code-core exec_stream -- --nocapture
  • ./build-fast.sh

@cbusillo cbusillo force-pushed the fix/agent-prompt-budget-guard branch from 80752a1 to 8f83cd6 Compare June 3, 2026 21:25
@cbusillo cbusillo merged commit 8d309a0 into main Jun 3, 2026
1 check passed
@cbusillo cbusillo deleted the fix/agent-prompt-budget-guard branch June 3, 2026 21:26
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