Skip to content

session: emit budget.session for --budget after the server limits rename#76

Merged
hbrooks merged 1 commit into
mainfrom
fix-budget-config-override
Jul 24, 2026
Merged

session: emit budget.session for --budget after the server limits rename#76
hbrooks merged 1 commit into
mainfrom
fix-budget-config-override

Conversation

@hbrooks

@hbrooks hbrooks commented Jul 24, 2026

Copy link
Copy Markdown
Member

Summary

agent session start --budget <usd> currently builds the config override limits: {run: N}, but ellipsis#5846 renamed that field server-side to budget.session. Since AgentConfig is extra="forbid", every --budget use now fails with a 400 ("limits: Extra inputs are not permitted").

  • Map --budget to sugar.budget = { session: opts.budget } in buildStartOverride (verified against AgentConfigBudget in the monorepo: session is the per-session USD cap)
  • Update the two stale help strings that referenced limits.run (the --config-override example and the --budget description)
  • Update the remaining stale limits.run examples found by grep: the README quick-reference line and the sample config in skills/ellipsis/SKILL.md
  • Update test fixtures that asserted the old shape

Testing

  • npm test: 260 tests pass across 17 files
  • npm run typecheck: clean

PR ellipsis#5846 renamed the AgentConfig spend-limit field from limits.run
to budget.session, and AgentConfig is extra=forbid, so every
`agent session start --budget <usd>` now fails with a 400
("limits: Extra inputs are not permitted"). Map --budget to
sugar.budget = { session: N } and update the stale limits.run examples in
the help strings, README, and ellipsis skill.
@hbrooks
hbrooks merged commit 0cf4fad into main Jul 24, 2026
1 check 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