Skip to content

fix(tray): make the recording icon visible on any menu bar and say what is recording - #479

Merged
GeiserX merged 1 commit into
mainfrom
fix/tray-recording-visible
Oct 29, 2026
Merged

GeiserX merged 1 commit into
mainfrom
fix/tray-recording-visible

Conversation

@GeiserX

@GeiserX GeiserX commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

The problem

On macOS the recording icon in the menu bar was close to invisible. While a call recorded, the tray swapped to a plain image: a mid-grey mark with a red dot. A template image can't hold a colour, so we had used a fixed grey. On a translucent dark menu bar that grey fades into the bar, and with the menu open only a smudge of red is left. The menu didn't help either. It never said which call was recording or for how long, and it had no Pause and no way to ask about the call.

The fix

  • Icon. The macOS recording mark is now a template too, so the menu bar inks it for whatever bar it sits on. It is told apart from idle by its shape: a filled disc with the mark cut out. scripts/tray-icons.ts draws it on the same 32-unit grid, 32 px shown at 16 pt. The old grey image is gone. Windows and Linux keep their mark with a red dot.
  • Title. On macOS a recording call shows its elapsed time as h:mm (0:23). It counts from the call's first part in its log, so an app restarted mid-call shows the call's own time. It moves once a minute, on the call's own minute, and stops when the call ends. Paused still shows ❚❚, and a dictation or a share still wins. Windows draws no title next to a tray icon, and an AppIndicator label shows on only some Linux panels, so on those two the menu header carries the time.
  • Menu while a call is live. A disabled header with title · workspace · elapsed (Weekly sync · work · 23 min, title cut at 40 characters). A disabled warning for each capture side that records nothing (⚠ System audio lost, ⚠ Microphone lost, read from the newest part's health the way the window's dots read it). Then ❚❚ Pause / ▶ Resume, ■ Stop recording, and Ask about this call…, which opens the window on the call with the ask box focused. Idle: ● Record, dictation, Show akou, Quit. The tray menu takes no accelerator, so Start dictation puts its key in the label.
  • Open at login has left the tray. It was already in Settings, but only the tray applied it. Now any save that changes app.openAtLogin (Settings, akou config set, PATCH /config) asks the shell to refresh, and the shell applies the new value right away (DK-L2).
  • The status gets live.startedAt and live.lost. The tray sets its title and menu only when they change.

Evidence

  • Tests written first and seen failing against main: 8 failures across tests/shell.test.ts, tests/tray.test.ts and tests/dictation-tray.test.ts.
  • New tests: [DK-T2] An invisible recording mark (both macOS images are templates; the recording one is the cut-out disc; a plain image is the positive control), the trayTitle/trayMenu/minute-timer cases in tests/tray.test.ts, [DK-L2] over a fake app and over the whole app with PATCH /config, and [DK-T4] the tray's Ask about this call, which runs on the real page in Chromium and WebKit.
  • New trap in docs/TRAPS.md: "An invisible recording mark". docs/ux/DESKTOP.md (DK-T2, DK-T3, DK-T4, DK-L2), docs/usage.md and docs/getting-started.md are updated.
  • bun run check and the tray and desktop UI tests pass locally on macOS.

The menu-bar screenshot in docs/usage.md still shows the old menu. It needs a new capture from a real menu bar.

Summary by CodeRabbit

  • New Features
    • The menu bar now shows call details, elapsed time, capture warnings, and pause, resume, stop, and “Ask about this call” actions during a live call.
    • Recording icons are updated on macOS, and dictation’s menu item displays its keyboard shortcut.
    • Changes to “Open at login” settings now apply immediately.
  • Documentation
    • Updated guidance for recording controls, login settings, and uninstalling.
  • Improvements
    • Login-item controls are no longer available from the menu bar.

…at is recording

The macOS recording mark was a plain grey image that vanished on a
translucent dark menu bar. It is now a template of its own shape, a disc
with the mark cut out. While a call is live the macOS title shows its
elapsed time, and the menu names the call, warns of a lost capture side,
and offers Pause or Resume, Stop and Ask about this call. Open at login
moves to Settings, which now applies it at once (DK-L2).
@coderabbitai

coderabbitai Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 5626c5c and e42c2ad.

Files ignored due to path filters: 2
  • src/main/window/tray/akou-recording-macos.png is excluded by !**/*.png
  • src/main/window/tray/akou-recording-template.png is excluded by !**/*.png
Files selected for processing: 21
  • docs/TRAPS.md
  • docs/getting-started.md
  • docs/usage.md
  • docs/ux/DESKTOP.md
  • scripts/smoke-app.ts
  • scripts/tray-icons.ts
  • src/main/index.ts
  • src/main/window/shell.ts
  • src/ui/app.ts
  • src/ui/model.ts
  • src/ui/protocol.ts
  • src/ui/window.ts
  • tests/desktop.test.ts
  • tests/dictation-draft.test.ts
  • tests/dictation-pill.test.ts
  • tests/dictation-tray.test.ts
  • tests/shell-helpers.ts
  • tests/shell.test.ts
  • tests/tray.test.ts
  • tests/ui/desktop-rig.ts
  • tests/ui/desktop.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Walkthrough

The tray now displays a shaped macOS recording icon, live-call details, elapsed time, capture warnings, and call controls. Configuration changes synchronize the login item. The Ask action opens the current call and focuses the ask input.

Changes: Tray redesign

Layer / File(s) Summary
Recording tray icon
scripts/tray-icons.ts, scripts/smoke-app.ts, src/main/window/shell.ts, tests/shell.test.ts, docs/TRAPS.md
macOS recording icons use a template image with a disc and cut-out mark. Asset checks and tests verify the image shape and platform-specific rendering.
Live-call tray status and refresh
src/ui/model.ts, src/ui/protocol.ts, src/main/index.ts, src/main/window/shell.ts, tests/tray.test.ts, tests/shell.test.ts, tests/dictation-tray.test.ts, tests/desktop.test.ts, tests/dictation-draft.test.ts, tests/dictation-pill.test.ts, docs/ux/DESKTOP.md, docs/usage.md, docs/getting-started.md
Live-call status includes its start time and lost capture channels. The tray displays call details, elapsed time, capture warnings, pause and resume controls, and the dictation hotkey. Login-item changes from configuration apply when the setting changes.
Ask about this call
src/main/window/shell.ts, src/ui/protocol.ts, src/ui/window.ts, src/ui/app.ts, tests/tray.test.ts, tests/shell-helpers.ts, tests/ui/desktop-rig.ts, tests/ui/desktop.test.ts, docs/ux/DESKTOP.md
The tray Ask action opens the application window for the current call and focuses the ask input. Tests cover the tray action and the UI message flow.

Priority: Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Bug fix

Merge Risk: Minimal · up to e42c2

The reviewed changes are mergeable after normal checks; no unresolved issue was established.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly describes the main tray changes: a visible recording icon and additional recording details.
Docstring Coverage Passed Docstring coverage is 87.50% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentati…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

Docstring coverage is 87.50% which is sufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 16 functions across 17 files. (4 skipped: 4 unsupported.)

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Warning

Some tools did not complete. Review the errors below.

Biome (2.5.15)
scripts/smoke-app.ts

Biome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins.

scripts/tray-icons.ts

Biome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins.

src/main/index.ts

Biome could not lint this file: configuration resulted in errors. Check the repository's Biome configuration and plugins.

  • 14 others

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.

@GeiserX
GeiserX merged commit b19f933 into main Oct 29, 2026
45 checks passed
@GeiserX
GeiserX deleted the fix/tray-recording-visible branch October 29, 2026 15:19
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