fix(bedrock): disclose monitoring charges in settings - #3496
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 8, 2026, 3:39 AM ET / 07:39 UTC. ClawSweeper reviewWhat this changesAdds AWS monitoring-charge warnings, a pricing link, and guidance on existing refresh controls to Bedrock settings, with focused tests and documentation. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped contribution: main documents the charges but lacks the in-app disclosure. The supplied screenshots demonstrate the intended result in both authentication modes, and no blocking defects were found. Priority: P2 Review scores
Verification
How this fits togetherCodexBar’s Bedrock provider reads AWS spending and activity data through potentially billed APIs. Its settings pane presents authentication controls and now explains those monitoring costs before credential entry. flowchart TD
A[Bedrock provider settings] --> B[Connection section]
B --> C[Monitoring cost disclosure]
B --> D[Authentication fields]
C --> E[AWS pricing page]
C --> F[Shared refresh guidance]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Technical reviewBest possible solution: Keep cost disclosure beside Bedrock authentication and reuse shared refresh controls, leaving provider-specific scheduling to the existing issue’s separate decision. Do we have a high-confidence way to reproduce the issue? Not applicable as a broken-behavior reproduction: this is a disclosure improvement. Source comparison and before/after screenshots establish the missing and added UI. Is this the best way to solve the issue? Yes. Existing settings descriptors provide the disclosure without introducing competing scheduling controls or changing stored preferences. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against c3f3ea1faf70. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Verified head 25cf692. CI is green: https://github.com/steipete/CodexBar/actions/runs/34197590817. make check passed. make test passed all 1,035 selections in 87 groups, with no failed, retried, or timed-out groups. Independent branch review is clean through P2. A Developer ID-signed app exercised the production Bedrock settings pane with empty synthetic credentials. The disclosure and pricing link remained visible when switching from Access keys to AWS profile. The PR body contains the signed main-baseline and candidate screenshots. The real built CLI also returned the expected $12.50 from a loopback AWS fixture, with one Cost Explorer request and one CloudWatch request; no real AWS account was used. This completes the in-app disclosure portion of #3387. Keep that issue open for its separate provider-specific interval decision. Changelog notes are in #3499, which must land after the code PRs. |
Bedrock monitoring can add AWS charges, but setup previously showed no warning. Show the per-request Cost Explorer price, explain that refreshes can make multiple requests, and link to current AWS pricing. The Connection section also explains the shared refresh controls and that the displayed budget does not cap billing.
Refs #3387. This addresses the in-app disclosure; keep the issue open for the separate Bedrock-specific interval decision. Scheduling and credential handling are unchanged. Thanks @kyen99 for reporting the surprise charge and providing the pricing reference.
Validation:
make checkpassed;make testpassed all 1,035 selections in 87 groups with no failures or retries. Independent branch review is clean through P2. A Developer ID-signed app exercised the production settings pane in both authentication modes using synthetic defaults. The built CLI returned $12.50 from a loopback AWS fixture, with one Cost Explorer and one CloudWatch request. No real account or credential was used.The before image uses the original main implementation; the after images use this PR's production code.
Profile-mode proof. Release notes are collected separately in #3499.