Skip to content

agent: drop the 0-credits wording on credit stops; release 1.25.2 - #300

Merged
rakshith48 merged 1 commit into
mainfrom
agent/credit-stop-wording
Oct 2, 2026
Merged

rakshith48 merged 1 commit into
mainfrom
agent/credit-stop-wording

Conversation

@rakshith48

@rakshith48 rakshith48 commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What

  • The credit-stop notice said "the agent used 0 credits and reached its credit limit". Failed runs are refunded, so the API reports creditsUsed: 0 for a run that did real work. The figure is now omitted unless it is positive.
  • Bumps 1.25.1 → 1.25.2 so the credit-limit handling merged in agent: show partial results when a run hits its credit limit #299 actually publishes (npm and binaries release on a version bump).

Found while testing #299 against production: a 15-credit-cap run returned creditsUsed: 0 and the notice read as if nothing ran.

Validation

  • New test: a credit stop with creditsUsed: 0 prints the headline without "used 0 credits".
  • Full suite: 666 passed. Typecheck, build and format:check pass.

🤖 Generated with Claude Code


Summary by cubic

Fixes the credit-stop notice on refunded runs: the API reports creditsUsed: 0 for a run that did work and hit its limit, so the notice now omits the figure unless it is positive. Bumps 1.25.1 → 1.25.2 so the credit-limit handling ships.

  • Adds a test that a credit stop with creditsUsed: 0 prints the headline without "used 0 credits".

Written for commit 6ce6a01. Summary will update on new commits.

Review in cubic

Failed runs are refunded, so the API reports creditsUsed 0 for a run that
did work and hit its limit. Omit the figure unless it is positive. Bumps the
version so the credit-limit handling from #299 ships.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All reported issues were addressed across 3 files

Shadow auto-approve: would require human review. The PR fixes the credit-stop headline wording and adds a test, but the version bump releases new credit-limit behavior to npm/binaries; deciding to publish that behavior is a rollout decision needing human sign-off.

Fix all with cubic | Re-trigger cubic

Comment thread src/commands/agent.ts
@rakshith48
rakshith48 merged commit 5dd7845 into main Oct 2, 2026
8 checks passed
@rakshith48
rakshith48 deleted the agent/credit-stop-wording branch October 2, 2026 15:59
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