Repository navigation
fix(payments): correct no-auto-payment help description - #2521
Conversation
|
Claude Security Review: no high-confidence findings. (run) |
There was a problem hiding this comment.
AgentCore Harness Review
Verdict: Looks good
Nice targeted fix. The old description "automatically settle payment requests" was misleading because auto-payment has DEFAULT_AUTO_PAYMENT = true, so Commander renders it as --no-auto-payment (per src/router/flags.tsx toOption) — making the previous help text read as if passing --no-auto-payment enabled auto-settlement. The new wording "disable automatic payment settlement" correctly describes the only action the flag performs. The regenerated command.md matches, and the added help-text assertion in index.test.ts uses compiledRootCommand() against the real router rather than mocks. No telemetry impact — pure doc/help string change.
|
Claude Security Review: no high-confidence findings. (run) |
Description
Correct
agentcore add payment-manager --helpso--no-auto-paymentis described as "disable automatic payment settlement" rather than "automatically settle payment requests". The flag already disables automatic settlement; parsing and defaults are unchanged.Regenerate
command.md. No test changes are included in this help-text-only fix. Targetsrefactor, where the issue was reproduced, including in the installed v1.0.0-rc.4 CLI.Related Issue
Closes #2520
Documentation PR
Documentation is included here:
command.mdwas regenerated withbun scripts/generate-command-reference.mjs. Only the affected description changed.Type of Change
Testing
All 10 existing payment-manager tests pass after removing the added help-wording test. Existing coverage verifies that
--no-auto-paymentproducesautoPayment: false.Before removing the help-wording test, the full unit suite passed: 3,976 tests, 0 failures. The full suite was not rerun after that test-only removal.
Verified
node dist/index.js add payment-manager --helpdisplays the corrected description.AWS end-to-end tests are not applicable: this changes help text only, not resource behavior or AWS interactions.
I ran
bun testI ran the relevant end-to-end tests with
bun run test:e2e, or explained why they are not applicableI ran
bun run typecheckI ran
bun run lint:checkI ran
bun run format:checkI ran
bun run buildIf I modified
src/assets/, I updated affected snapshots withbun test <test-file> --update-snapshotsand committed themsrc/assets/was not modified.Checklist
No dependent changes.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the
terms of your choice.