Skip to content

Show Grok usage-limit reset coupons - #3188

Open
Leshabeats wants to merge 8 commits into
steipete:mainfrom
Leshabeats:grok-remaining-resets-coupon
Open

Show Grok usage-limit reset coupons#3188
Leshabeats wants to merge 8 commits into
steipete:mainfrom
Leshabeats:grok-remaining-resets-coupon

Conversation

@Leshabeats

Copy link
Copy Markdown

Summary

  • keep Grok weekly credits on the CLI-proxy path
  • fetch unused SuperGrok usage-limit reset tokens from grok.com's remaining-resets RPC
  • render them as a Limit Reset Credits detail row, and leave weekly usage intact if that extra call times out or returns nothing

Tests

  • CODEXBAR_SUPPRESS_TEST_KEYCHAIN_ACCESS=1 swift test --filter GrokRemainingResetsFetcherTests
  • CODEXBAR_SUPPRESS_TEST_KEYCHAIN_ACCESS=1 swift test --filter GrokMenuCardModelTests
  • CODEXBAR_SUPPRESS_TEST_KEYCHAIN_ACCESS=1 swift test --filter GrokCreditsProxyFetcherTests
  • swiftlint lint --strict on the Grok remaining-resets files

Why this was missing

/v1/billing?format=credits reports weekly SuperGrok usage only. grok.com's Использование panel reads unused reset coupons from a separate RPC:

POST https://grok.com/prod_mc_billing.ConsumerUiSvc/GetRemainingResets

That payload includes token_id and validity_end. CodexBar never called it, so an unused coupon such as Доступен сброс / Истекает 12 сент. stayed invisible even when weekly usage was 29%.

CodexBar does not redeem or modify reset tokens.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 auth-provider 🚨 Merging this PR could break OAuth, tokens, provider routing, model choice, or credentials. merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 11:35 AM ET / 15:35 UTC.

ClawSweeper review

What this changes

This PR fetches unused Grok usage-limit reset coupons through a read-only Grok billing RPC and displays their count and expiry alongside weekly usage without delaying the primary refresh.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

Keep open for owner sign-off: the implementation is coherent, resolves the prior cross-provider persistence concern, and has direct packaged-app proof, but it adds a new authenticated Grok provider capability whose approval is explicitly still pending.

Priority: P2
Reviewed head: 76f001a4578f819f8c10826bc18e3b6a5c72cd11
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A proof-backed, heavily tested implementation whose remaining gate is explicit product and provider-auth approval.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed Grok strategy feeds the supplemental reset-credit snapshot into the shared menu-card presentation, and the contributor supplied a redacted packaged debug-app screenshot showing the resulting Grok card; focused automated tests are supplemental coverage.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed Grok strategy feeds the supplemental reset-credit snapshot into the shared menu-card presentation, and the contributor supplied a redacted packaged debug-app screenshot showing the resulting Grok card; focused automated tests are supplemental coverage.
Evidence reviewed 5 items Authenticated lookup is bounded and uses the winning context: The web strategy passes only the successful billing result's OAuth credential or winning cookie to the optional coupon lookup, then returns its result as supplemental usage; this preserves the captured-account boundary repaired by the merged related work.
Prior cross-provider persistence finding is fixed: Decode-time removal of the legacy reset row is restricted to snapshots whose identity is Grok, and the new regression test verifies a plugin-defined same-named row survives a sync round trip.
Owner approval remains outstanding: The repository owner stated that the captured-account correction did not approve the coupon feature and requested reconciliation with the shared credential boundary; the current head includes that boundary and its tests, but no approval of the new provider behavior.
Findings None None.
Security None None.

How this fits together

CodexBar refreshes provider usage through provider-specific strategies and turns the resulting snapshot into menu-bar cards. This change adds an optional Grok coupon lookup, then applies its result to the live usage snapshot and shared reset-credit presentation.

flowchart LR
    A[Provider refresh] --> B[Grok billing strategy]
    B --> C[Winning OAuth or cookie context]
    C --> D[Remaining-reset lookup]
    D --> E[Supplemental live snapshot]
    E --> F[Shared reset-credit presentation]
    F --> G[Menu bar and settings cards]
Loading

Decision needed

Question Recommendation
Should CodexBar own a cached, authenticated call to Grok's consumer remaining-reset RPC in order to display reset coupons? Approve the bounded Grok extension: Accept the read-only, credential-scoped, fail-soft coupon lookup as supported Grok provider coverage.

Why: VISION.md requires sign-off for new features and behavior affecting provider authentication or privacy, and the owner's review explicitly withheld approval of this coupon feature.

Before merge

  • Resolve merge risk (P1) - The new authenticated call targets a consumer Grok RPC, so its provider-auth, privacy, and long-term maintenance contract needs explicit owner acceptance even though the primary weekly-usage path fails soft.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Implementation and regression coverage production +1040/-135, tests +1506/-136, docs +13 The optional provider feature is substantial enough to warrant explicit owner approval despite its focused Grok scope.

Merge-risk options

Maintainer options:

  1. Confirm the provider-auth contract (recommended)
    Approve the scoped use of the winning OAuth credential or browser cookie for this optional Grok endpoint before merging.
  2. Defer the authenticated lookup
    Pause this feature if maintaining an undocumented consumer endpoint is outside the intended Grok integration boundary.

Technical review

Best possible solution:

Land the bounded, credential-scoped lookup only after explicit approval that CodexBar should maintain this Grok provider capability; otherwise retain the existing weekly-usage behavior without the extra RPC.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction: this PR adds a new capability, and its supplied packaged-app screenshot directly demonstrates the intended Grok card result.

Is this the best way to solve the issue?

Unclear: the implementation follows the existing provider strategy and shared UI patterns, but VISION.md requires owner sign-off before accepting this new authenticated provider behavior.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 7d502b9eb183.

Labels

Label justifications:

  • P2: This is a bounded optional provider capability with meaningful but non-urgent user impact.
  • merge-risk: 🚨 auth-provider: The PR introduces an authenticated Grok RPC using the successful OAuth credential or browser cookie.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed Grok strategy feeds the supplemental reset-credit snapshot into the shared menu-card presentation, and the contributor supplied a redacted packaged debug-app screenshot showing the resulting Grok card; focused automated tests are supplemental coverage.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed Grok strategy feeds the supplemental reset-credit snapshot into the shared menu-card presentation, and the contributor supplied a redacted packaged debug-app screenshot showing the resulting Grok card; focused automated tests are supplemental coverage.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed Grok strategy feeds the supplemental reset-credit snapshot into the shared menu-card presentation, and the contributor supplied a redacted packaged debug-app screenshot showing the resulting Grok card; focused automated tests are supplemental coverage.

Evidence

What I checked:

  • Authenticated lookup is bounded and uses the winning context: The web strategy passes only the successful billing result's OAuth credential or winning cookie to the optional coupon lookup, then returns its result as supplemental usage; this preserves the captured-account boundary repaired by the merged related work. (Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift:547, 76f001a4578f)
  • Prior cross-provider persistence finding is fixed: Decode-time removal of the legacy reset row is restricted to snapshots whose identity is Grok, and the new regression test verifies a plugin-defined same-named row survives a sync round trip. (Tests/CodexBarTests/SyncModelTests.swift:224, 76f001a4578f)
  • Owner approval remains outstanding: The repository owner stated that the captured-account correction did not approve the coupon feature and requested reconciliation with the shared credential boundary; the current head includes that boundary and its tests, but no approval of the new provider behavior. (Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift:524, d9e950e49c95)
  • Repository policy requires sign-off: VISION.md welcomes provider coverage following existing patterns, but explicitly requires sign-off for new features and behavior affecting provider authentication, privacy, or maintenance complexity. (VISION.md:8, 76f001a4578f)
  • Real user-visible proof was supplied: The contributor's packaged debug-app screenshot in Show Grok usage-limit reset coupons #3188 (comment) directly shows the Grok card with a reset-credit block; the image was supplied as redacted evidence and the PR carries the proof-sufficient label.

Likely related people:

  • steipete: Merged the current captured-credential boundary and has repeatedly maintained Grok usage and menu-path behavior. (role: recent Grok credential-boundary contributor; confidence: high; commits: d9e950e49c95, 79077dd72a2e, 41d904fd6d88; files: Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift)
  • o.akimov: History shows multiple earlier merged changes to Grok source selection, cookie routing, and selected-bearer handling in the affected provider strategy. (role: Grok routing contributor; confidence: medium; commits: d8c4fb4c7a3c, 6982cfa00d10; files: Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Obtain explicit owner sign-off for maintaining the authenticated Grok consumer-RPC lookup.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (7 earlier review cycles)
  • reviewed 2026-08-25T09:48:07.005Z sha dd39a4a :: needs real behavior proof before merge. :: [P2] Do not gate weekly usage on the coupon lookup
  • reviewed 2026-08-25T17:33:51.210Z sha 4583904 :: needs changes before merge. :: [P2] Retain cached coupons on non-200 responses | [P2] Remove cached detail rows after confirmed empty results | [P2] Share the in-flight lookup with replacement refreshes | [P2] Schedule supplemental updates for all token accounts
  • reviewed 2026-08-26T09:03:14.372Z sha 2f4ddc4 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-26T10:40:29.904Z sha c094bb7 :: needs changes before merge. :: [P2] Honor CLI optional-usage completeness | [P3] Remove the release-owned changelog entry
  • reviewed 2026-08-26T12:50:39.041Z sha 93d631e :: needs maintainer review before merge. :: none
  • reviewed 2026-08-26T15:25:44.040Z sha a5b8a15 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-27T11:01:39.309Z sha 38105e2 :: needs changes before merge. :: [P2] Restrict reset-row stripping to Grok snapshots

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: dd39a4ac1d

ℹ️ 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".

Comment thread Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift Outdated
Comment thread Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift Outdated
Comment thread Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift Outdated
Comment thread Sources/CodexBarCore/Providers/Grok/GrokRemainingResetsFetcher.swift Outdated
@Leshabeats
Leshabeats force-pushed the grok-remaining-resets-coupon branch from dd39a4a to 4583904 Compare August 25, 2026 16:46

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 4583904361

ℹ️ 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".

Comment thread Sources/CodexBar/UsageStore+SupplementalUsage.swift Outdated
Comment thread Sources/CodexBar/UsageStore+TokenAccounts.swift
Comment thread Sources/CodexBarCore/Providers/Grok/GrokRemainingResetsFetcher.swift Outdated
@Leshabeats

Copy link
Copy Markdown
Author

Addressed the review feedback in 45839043:

  • rebased onto current main; the PR now merges cleanly
  • decoupled GetRemainingResets from primary weekly usage publication; the coupon arrives as a stale-safe supplemental update
  • reused the exact credential/cookie that produced the usage snapshot, avoiding cross-account enrichment
  • gated both fetch and display on optional usage
  • rendered Grok through the same localized reset-credit block used by Codex

Live proof from the packaged debug app against a real Grok account (account data and tokens redacted):

Grok limit reset credit shown in CodexBar

The weekly card remains available immediately; the reset-credit block then shows 1 доступен with its expiry.

Validation: 47 affected tests across 7 suites pass, make check passes, and ./Scripts/package_app.sh debug builds successfully.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 25, 2026
@Leshabeats
Leshabeats force-pushed the grok-remaining-resets-coupon branch from 4583904 to 2f4ddc4 Compare August 26, 2026 08:59
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 2f4ddc468a

ℹ️ 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".

Comment thread Sources/CodexBar/MenuCardView+CodexResetCredits.swift

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: c094bb7b93

ℹ️ 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".

Comment thread Sources/CodexBarCore/Providers/Grok/GrokProviderDescriptor.swift Outdated
Comment thread Sources/CodexBarCore/Providers/Grok/GrokRemainingResetsFetcher.swift Outdated
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 26, 2026
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 26, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 93d631e64b

ℹ️ 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".

Comment thread Sources/CodexBar/MenuCardView+CodexResetCredits.swift

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a3188cc675

ℹ️ 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".

Comment thread Sources/CodexBar/MenuCardView+CodexResetCredits.swift

@steipete steipete left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

The winning-cookie path has improved, but a5b8a152a5defae78b0cb691a8fd0ab6ff983031 still does not bind OAuth billing, identity, plan and reset inventory to one captured account context.

GrokOAuthFetchStrategy.fetch captures credentials for billing, then its shared wrapper independently reads authCredentials. After awaiting billing, the wrapper reads the auth file again for identity, while reset lookup uses its earlier authCredentials. If a login replaces temporary account A with B during the awaited billing call, the result can contain A's usage and coupons with B's identity. A switch between the first two reads can instead give billing and coupons different credentials. GrokUsageSnapshot.toUsageSnapshot takes identity from the supplied credentials, and credentialsForSnapshot retains them after successful billing; neither repairs that mismatch.

The post-await identity reread already exists on main; the new inventory path inherits and extends the same ownership gap. Please carry the credentials that actually won billing through identity, tier and coupon enrichment, keeping cookie-backed results separate. Add a suspended fake-billing regression that changes only a temporary auth fixture during the await and verifies that the returned primary result and supplemental inventory stay bound to the same account. Publication-generation guards cannot repair an already-mixed fetch result.

Keep reset inventory read-only and optional; no redemption is needed for this proof. The supplied earlier-head screenshot is useful, but does not exercise this current-head account-switch case. I inspected the relevant source and existing credential-to-identity mapping; I did not run tests, access an account, or perform a live probe in this pass.

@Leshabeats

Copy link
Copy Markdown
Author

@steipete Addressed the account-context ownership gap in 38105e25.

  • GrokOAuthFetchStrategy now captures credentials once, and every successful OAuth billing path returns those exact credentials in GrokWebBillingResult.authContext.
  • Identity, settings tier, and remaining-reset lookup now use only that winning context. Cookie-backed results carry only the winning cookie and never inherit auth-file identity or tier.
  • Added the suspended regression oauth billing and supplemental coupons stay on captured account during auth switch: it starts with temporary auth A, suspends billing, atomically replaces the fixture with B (and verifies it now reads as B), then checks that primary usage, email, tier, and supplemental reset inventory all remain bound to A.
  • Reset inventory remains optional, read-only, fail-soft, and deferred for callers that do not require completeness. No redemption path was added.

Validation:

  • make check passes.
  • Focused Grok suites pass: routing 5/5, proxy 28/28, web billing 49/49, remaining resets 18/18.
  • Full make test passed both Grok groups, then stopped later in an unrelated locale-sensitive MiniMax assertion that expects US digit grouping (1,234) while the current Russian locale renders a space-grouped value (1 234).

@steipete

Copy link
Copy Markdown
Owner

Thanks @Leshabeats. I read the 38105e25c7f0c54bf49bd4c46ffabb623e438c82 account-context changes and the suspended account-switch fixture. The source now carries the winning OAuth/cookie context into identity, tier, and coupon lookup; the previous ambient-reread finding should not be repeated as if this revision had not addressed it. I have not independently run this PR's tests.

The pre-existing main-branch account-mixing bug is being repaired separately in #3237, without adding reset-coupon inventory or new local-log reads. Its isolated regression failed before the fix and now passes; focused tests, architecture checks, lint, and independent review are green, while the full suite and CI are still running. It is not merged yet.

Once #3237 lands, please reconcile this branch with that shared credential-capture boundary and retain the winning-cookie behavior your coupon lookup needs. This acknowledges the source correction, not approval of the coupon feature or a claim that its remaining product and live-proof requirements are complete.

@Leshabeats
Leshabeats force-pushed the grok-remaining-resets-coupon branch from 38105e2 to 76f001a Compare August 29, 2026 15:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Aug 29, 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-08-29T15:33:46.922444Z 76f001a 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.

@Leshabeats

Copy link
Copy Markdown
Author

@steipete Reconciled this branch with the shared credential-capture boundary from #3237 and addressed the remaining P2 in 76f001a4.

  • The coupon lookup remains bound to the winning OAuth/cookie context.
  • Legacy reset-row cleanup is now Grok-only, with a non-Grok sync regression test.
  • make check and the focused 96-test suite pass.
  • Codex and ClawSweeper report no remaining actionable findings.

The remaining gate is owner sign-off on the read-only, fail-soft authenticated Grok GetRemainingResets lookup. Could you take another look when convenient?

@Leshabeats
Leshabeats requested a review from steipete August 29, 2026 16:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 auth-provider 🚨 Merging this PR could break OAuth, tokens, provider routing, model choice, or credentials. P2 Normal priority bug or improvement with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants