Skip to content

fix(cli): explain the cost limit in scan dry runs - #2295

Merged
mldangelo-oai merged 10 commits into
mainfrom
fix/explain-dry-run-cost-limit
Nov 4, 2026
Merged

mldangelo-oai merged 10 commits into
mainfrom
fix/explain-dry-run-cost-limit

Conversation

@mldangelo-oai

Copy link
Copy Markdown
Collaborator

Summary

A capped scan’s dry run shows the configured dollar amount. Explain what counts toward it before the operator starts model work. Addresses the budget-semantics portion of #25.

Changes

When a dry run resolves a cost limit, include a costLimitNote alongside maxCostUsd. It explains the short-context API pricing basis, how in-flight requests can push the estimate past the limit, and how account billing and ChatGPT allowance differ from this estimate. Document the field in the CLI guide.

Testing

All 220 CLI tests passed with seed 12345, including the capped and uncapped dry-run cases. The CI TypeScript build, plugin compatibility check and all nine compatibility tests passed. Changed-source formatting, Markdown formatting and git diff --check passed.

Risk and rollout

This adds one string field to the CLI output for capped dry runs. The broader request for scope planning, forecasts and durable milestones remains open in #25.

Public disclosure review

  • No customer, partner, prospect, or user identities, data, or identifying details are included.
  • No credentials, personal data, private source, scan findings, or nonpublic links or tickets are included.
  • I reviewed the branch name, title, description, commits, changes, comments, logs, screenshots, attachments, and links for public disclosure.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 4, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-04T19:41:56.920157Z 1a641ab New commits
🔒 Security Review ✅ Completed 2026-11-04T19:42:21.470485Z 1a641ab New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@github-actions github-actions Bot added the bug Something isn't working label Nov 4, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Chef's kiss.

Reviewed commit: 5ac8c75cf0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thank you for clarifying the dry-run cost limit. No material findings in this review; the note still matches the existing pricing basis and in-flight overshoot behavior.

All seven dry-run CLI tests passed again with Bun 1.3.14, along with a fresh frozen install and CI compilation. The code, docs and tests are unchanged after the main-branch dependency sync. No live paid scan or full SDK suite was run.

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: 26c0efda49

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@alandelong-oai alandelong-oai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks for the update. No material findings. The dry-run feature is unchanged; the incoming base edits strengthen recovery coverage and correct the saved-review-state documentation. All three affected recovery-layout tests and the portable checks passed. The nine earlier dry-run/cost tests remain applicable to identical feature sources. No live paid scan or full SDK rerun was performed.

@mldangelo-oai
mldangelo-oai merged commit 4abc9a8 into main Nov 4, 2026
63 checks passed
@mldangelo-oai
mldangelo-oai deleted the fix/explain-dry-run-cost-limit branch November 4, 2026 21:36
@github-actions github-actions Bot mentioned this pull request Nov 4, 2026
3 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants