Skip to content

Fix stuck recordings, early-dismissed messages and other Mac app bugs - #20

Merged
chiranjeebhub merged 1 commit into
mainfrom
claude/project-thread-57xl46
Nov 3, 2026
Merged

chiranjeebhub merged 1 commit into
mainfrom
claude/project-thread-57xl46

Conversation

@chiranjeebhub

Copy link
Copy Markdown
Owner

Requested by Chiranjeeb · project thread

Bugs found in a read-through of the Mac app, and their fixes.

Recording that never stops

  • Right Option / Right Command were checked with the generic Option/Command flag. Holding the left-hand key at the same time hid the trigger's release, so the mic kept recording. Now uses the right-hand device bits.
  • If macOS pauses the event tap (timeout) and the key is released meanwhile, the recording is now finished instead of left running.
  • An older notice/error dismiss timer was never cancelled when a new message replaced it, so it could fire reset() during the next recording. The mic then kept capturing after release. Each message now cancels the previous timer, and the error timer only clears errors.
  • Changing the trigger key mid-recording cancels the recording first; the hands-free toggle (including from iCloud sync) applies without restarting the key listener.

State and privacy

  • A fast Claude reply could leave the status stuck on "Polishing…" (the .cleaning hop landed after delivery).
  • Waking the Mac reopened an always-ready mic while still on the lock screen. Sleep and lock are tracked separately now.
  • History saves/erases go through one serial queue, so an old save can't overwrite a newer one or resurrect cleared history.

Claude

  • A reply stopped at max_tokens used to replace the transcript with a truncated text; it now falls back to the transcript.
  • HTTP errors read as sentences ("Anthropic didn't accept your API key…") instead of raw JSON. HushtypeCore change, additive, also shared with the keyboard.

UI

  • The overlay panel is wider so longer notices aren't cut off (it's transparent and ignores the mouse).

Tests: added HushtypeErrorTests.


Generated by Claude Code

- Right Option / Right Command: detect the trigger with its device bit, so holding the
  left-hand key too no longer hides the release and leaves the mic recording.
- When macOS pauses the event tap and the key is let go meanwhile, finish the recording.
- An older notice or error timer could reset the app mid-recording, leaving the mic capturing
  after the key was released. Each message now replaces the previous timer.
- A fast Claude reply could leave the status stuck on "Polishing…".
- Waking the Mac reopened an always-ready mic on the lock screen; sleep and lock are now
  tracked apart and the mic opens only when both are over.
- Changing the trigger key mid-recording no longer orphans the recording; the hands-free
  setting applies without restarting the key listener.
- History saves and erases run on one serial queue, so an old save can't overwrite a newer
  one or bring back cleared history.
- A reply cut off at max_tokens falls back to the transcript instead of pasting half of it.
- HTTP errors from Anthropic read as sentences instead of raw JSON.
- The overlay has room for longer notices instead of cutting them off.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01H6HfUULkJhbsoSGxhy2Zhu
@chiranjeebhub chiranjeebhub self-assigned this Nov 3, 2026
@chatgpt-codex-connector

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 ⚠️ Failed 2026-11-03T07:08:58.873101Z
We couldn’t complete this review. Comment @codex review to try again.
d8daadc PR opened
ℹ️ 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@chiranjeebhub
chiranjeebhub merged commit 6469093 into main Nov 3, 2026
1 check passed
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.

2 participants