Skip to content

fix(payments): correct no-auto-payment help description - #2521

Merged
aidandaly24 merged 3 commits into
aws:refactorfrom
aidandaly24:fix/payment-manager-auto-payment-help
Oct 6, 2026
Merged

aidandaly24 merged 3 commits into
aws:refactorfrom
aidandaly24:fix/payment-manager-auto-payment-help

Conversation

@aidandaly24

@aidandaly24 aidandaly24 commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Description

Correct agentcore add payment-manager --help so --no-auto-payment is 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. Targets refactor, 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.md was regenerated with bun scripts/generate-command-reference.mjs. Only the affected description changed.

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update
  • Other (please describe):

Testing

  • All 10 existing payment-manager tests pass after removing the added help-wording test. Existing coverage verifies that --no-auto-payment produces autoPayment: 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 --help displays 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 test

  • I ran the relevant end-to-end tests with bun run test:e2e, or explained why they are not applicable

  • I ran bun run typecheck

  • I ran bun run lint:check

  • I ran bun run format:check

  • I ran bun run build

  • If I modified src/assets/, I updated affected snapshots with bun test <test-file> --update-snapshots and committed them

src/assets/ was not modified.

Checklist

  • I have read the CONTRIBUTING document
  • I have added any necessary tests that prove my fix is effective or my feature works (not applicable: help-text-only change; existing behavior tests retained)
  • I have updated the documentation accordingly
  • I have added an appropriate example to the documentation to outline the feature, or no new docs are needed
  • My changes generate no new warnings
  • Any dependent changes have been merged and published

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.

@github-actions github-actions Bot added the size/xs PR size: XS label Oct 5, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added agentcore-harness-reviewing AgentCore Harness review in progress claude-security-reviewing Claude Code /security-review in progress labels Oct 5, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Oct 5, 2026

@agentcore-devx-automation agentcore-devx-automation 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.

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.

@agentcore-devx-automation agentcore-devx-automation Bot removed the agentcore-harness-reviewing AgentCore Harness review in progress label Oct 5, 2026
@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Oct 5, 2026
@agentcore-devx-automation agentcore-devx-automation Bot added the claude-security-reviewing Claude Code /security-review in progress label Oct 5, 2026
@agentcore-devx-automation

Copy link
Copy Markdown
Contributor

Claude Security Review: no high-confidence findings. (run)

@agentcore-devx-automation agentcore-devx-automation Bot removed the claude-security-reviewing Claude Code /security-review in progress label Oct 5, 2026
@github-actions github-actions Bot added size/xs PR size: XS and removed size/xs PR size: XS labels Oct 5, 2026
@aidandaly24
aidandaly24 merged commit 133fb62 into aws:refactor Oct 6, 2026
23 of 26 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/xs PR size: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants