Skip to content

feat(mac): the popup's ticket mark redeems a banked reset after a confirm - #1561

Merged
deathemperor merged 2 commits into
mainfrom
feat/mac-popup-reset
Sep 23, 2026
Merged

deathemperor merged 2 commits into
mainfrom
feat/mac-popup-reset

Conversation

@deathemperor

@deathemperor deathemperor commented Sep 23, 2026 •

Copy link
Copy Markdown
Owner

The Mac popup showed nothing of an account's banked Claude limit resets (#1554 landed them on the fleet, the web and the phone), so a reset could only be spent from the Accounts page or infinitusctl reset.

Now a row whose engine reads the bank draws a ticket and the count beside the pause mark. Pressing it, or the row menu's "Use banked reset" item, stages the reset the way a row click stages a switch, and one popup-level alert commits it, since the provider gives none back. A held bank (not at a limit, cooling down) draws gray and its tip only says why. The demo swapd grows a resets fixture and a reset <slot> verb so the whole flow runs without a real claim; no claim was sent to the provider for this PR.

Screens

Every capture is against the demo swapd (apps/mac/tools/demo-swapd) in a sandboxed dev instance.

Mac popup — before (alpha and charlie spendable, bravo held so gray)
mac popup before

Mac popup — confirm alert after pressing alpha's ticket
mac confirm alert

Mac popup — after "Use reset": alpha's ticket is gone, its 5h window is 0%
mac popup after

Web Accounts — rows (alpha already spent from the Mac: 0; bravo 1; charlie 1). Alpha's 5h reads 37% here while the Mac's after-capture read 0%: the demo swapd clears the window only in the reply to reset, not in later list calls, so the fixture, not the product, disagrees.
web rows

Web — held popover on bravo: the hold text (its Use reset is disabled, which the capture does not make obvious)
web held popover

Web — spendable popover on charlie
web popover

Web — confirm dialog
web confirm

Web — after: charlie 0 banked, 5h 0%
web after

Mac row menu ("Use banked reset (N of M left)", disabled on hold): not captured — an attempt to open it by synthetic right-click landed on a foreground browser window instead, so I stopped rather than keep poking the desktop.

Phone: not captured — simulator device access is turned off for this agent environment. The phone row is unchanged by this PR (it landed in #1558).

Screenshots live on the orphan branch pr-assets/mac-popup-reset, never in the tree.

Built with Claude Fable 5.1 in Claude Code.

🤖 Generated with Claude Code

deathemperor and others added 2 commits September 23, 2026 15:41
…firm

A row whose engine reads the bank shows a ticket and the count beside
the pause mark; pressing it (or the row menu's item) stages the reset the
way a row click stages a switch, and one popup-level alert commits it,
since the provider gives none back. Held banks (not at a limit, cooling
down) draw gray and only say why. The demo swapd grows a resets fixture
and a `reset <slot>` verb so the flow can be exercised without a claim.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Sep 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 53 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository: deathemperor/infinitus/.coderabbit.yaml

Review profile: CHILL

Plan: Advanced

Run ID: 318bd4cd-d6be-4763-8de1-12df0dd42b81

📥 Commits

Reviewing files that changed from the base of the PR and between bfc896b and 7b0a5b3.

📒 Files selected for processing (8)
  • apps/mac/Sources/Infinitus/AppModel.swift
  • apps/mac/Sources/Infinitus/FleetState.swift
  • apps/mac/Sources/Infinitus/InfinitusApp.swift
  • apps/mac/Sources/InfinitusUI/AccountGrid.swift
  • apps/mac/Sources/InfinitusUI/FleetModel.swift
  • apps/mac/changelog.d/mac-popup-reset.md
  • apps/mac/tools/demo-swapd
  • docs/internals/accounts-page.md

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@deathemperor
deathemperor enabled auto-merge (squash) September 23, 2026 08:43
@github-actions github-actions Bot added vouch:trusted PR author is trusted by repo permissions or the VOUCHED list. size:L 100-499 effective changed lines (test files excluded in mixed PRs). labels Sep 23, 2026
@deathemperor
deathemperor merged commit fa2c814 into main Sep 23, 2026
22 checks passed
@deathemperor
deathemperor deleted the feat/mac-popup-reset branch September 23, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 effective changed lines (test files excluded in mixed PRs). vouch:trusted PR author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant