Skip to content

macOS: Settings cog (appearance + quit) and tab toggle in the top bar#482

Merged
willwashburn merged 2 commits into
mainfrom
macos/settings-tab-bar
Jun 18, 2026
Merged

macOS: Settings cog (appearance + quit) and tab toggle in the top bar#482
willwashburn merged 2 commits into
mainfrom
macos/settings-tab-bar

Conversation

@willwashburn

@willwashburn willwashburn commented Jun 17, 2026

Copy link
Copy Markdown
Member

Summary

  • Moves the Usage/Live tab toggle up into the top bar, next to the Codex/Claude provider toggle.
  • Adds a Settings cog (gear, right of that bar) that opens a Settings tab with:
    • Appearance — Light / Dark / System (follow system), persisted in the appearance UserDefault and applied to the whole popover (chrome + content) by AppDelegate via popover.appearance, updating live as you change it.
    • Quit Burn button (the global ⌘Q shortcut still works).
  • Selecting Usage/Live also dismisses Settings.

This re-lands the settings work that never reached main — it had been committed to the live-burn branch after #480 was merged.

🤖 Generated with Claude Code

Review in cubic

… bar

- Move the Usage/Live segmented toggle up into the header row, next to the
  Codex/Claude provider toggle.
- Add a gear (settings) button on the right of that bar. It toggles a Settings
  tab with:
  - Appearance — Light / Dark / System (follow system), persisted in the
    "appearance" UserDefault and applied to the whole popover (chrome + content)
    by AppDelegate via popover.appearance, live as it changes.
  - Quit Burn (the global ⌘Q still works too).
- Picking Usage/Live also dismisses Settings.

This re-lands the settings work that never reached main (it was committed to the
live-burn branch after #480 merged).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@gemini-code-assist

Copy link
Copy Markdown

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@coderabbitai

coderabbitai Bot commented Jun 17, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@willwashburn, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 36 minutes and 48 seconds. Learn how PR review limits work.

To continue reviewing without waiting, enable usage-based billing in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan refill rate.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, the refill rate gradually slows as usage increases. The highest same-day bursts are limited more strictly.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ee717fbc-09c2-4a09-8100-f8a1a64a8edb

📥 Commits

Reviewing files that changed from the base of the PR and between 2584f23 and d80e2af.

📒 Files selected for processing (4)
  • apps/macos/Sources/Burn/BurnApp.swift
  • apps/macos/Sources/Burn/BurnLedger.swift
  • apps/macos/Sources/Burn/ContentView.swift
  • apps/macos/Sources/Burn/LiveBurnViewModel.swift
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch macos/settings-tab-bar

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 and usage tips.

Two causes, both fixed:

1. Stale ledger. `burn summary` is read-only now (#479) and the background
   `ingest --watch` doesn't keep up (manual ingest pulled in 3290 backlogged
   turns), so the polled totals didn't move. Replace the watch with a one-shot
   incremental `burn ingest` at the top of each poll (BurnLedger.ingest()) — a
   warm sweep is ~1–3s, so the poll cadence is now 2.5s.

2. Negative/clamped rate. The rate was the delta between two trailing-5-min
   window totals, which dips negative as old turns age out of the window and was
   clamped to 0 — reading as "no usage". Replace with a moving average: each poll
   queries the trailing 60s and divides, which is non-negative and robust to the
   window sliding and to late ingests. The cumulative line is now the integral of
   that rate (a monotonic session total).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@willwashburn willwashburn merged commit 1347b75 into main Jun 18, 2026
4 checks passed
@willwashburn willwashburn deleted the macos/settings-tab-bar branch June 18, 2026 01:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant