session: emit budget.session for --budget after the server limits rename#76
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agent session start --budget <usd>currently builds the config overridelimits: {run: N}, but ellipsis#5846 renamed that field server-side tobudget.session. SinceAgentConfigisextra="forbid", every--budgetuse now fails with a 400 ("limits: Extra inputs are not permitted").--budgettosugar.budget = { session: opts.budget }inbuildStartOverride(verified againstAgentConfigBudgetin the monorepo:sessionis the per-session USD cap)limits.run(the--config-overrideexample and the--budgetdescription)limits.runexamples found by grep: the README quick-reference line and the sample config inskills/ellipsis/SKILL.mdTesting
npm test: 260 tests pass across 17 filesnpm run typecheck: clean