Skip to content

fix(context-drop): audio for drop-video-clip + move Ctrl-C/Ctrl-R hotkeys off terminal keys#1890

Merged
liususan091219 merged 2 commits into
mainfrom
fix/drop-clip-audio-and-hotkeys
Jul 1, 2026
Merged

fix(context-drop): audio for drop-video-clip + move Ctrl-C/Ctrl-R hotkeys off terminal keys#1890
liususan091219 merged 2 commits into
mainfrom
fix/drop-clip-audio-and-hotkeys

Conversation

@liususan091219

Copy link
Copy Markdown
Collaborator

What & why

Two small UX fixes to the drop-video-clip feature added in #1859.

1. Audio in the recorded clip

The capture server ran screencapture -v -x with no audio flag, so dropped clips were silent. Add -g, which records the default audio input — the source follows System Settings > Sound > Input:

  • mic → narration / room audio
  • BlackHole (with output routed there) → system/app audio

New query params on /capture-video?action=start:

  • ?audio=off — record without sound (previous behavior)
  • ?device=<id> — pin a specific input via -G<id>

Default (no params) now captures the default input, so the Swift caller needs no change.

2. Hotkeys off terminal-reserved keys

Two global hotkeys shadowed terminal keys and were intercepting them system-wide:

  • drop_context: Ctrl-CCtrl-Shift-C (was eating SIGINT / cancel)
  • drop_video_clip: Ctrl-RCtrl-Shift-R (was eating reverse-i-search)

Global hotkeys match the exact modifier mask, so plain Ctrl-C / Ctrl-R reach the terminal again; only the shifted variants trigger Sutando. Ctrl-S/Ctrl-V/Ctrl-M unchanged.

Test

Verified end-to-end on macOS: recorded a 2s clip through /capture-video; ffprobe confirms both an h264 video stream and an aac stereo audio track. Screen Recording permission unaffected.

🤖 Generated with Claude Code

liususan091219 and others added 2 commits July 1, 2026 13:33
…f terminal keys

drop-video-clip (added in #1859) recorded silent video: the capture server
ran `screencapture -v -x` with no audio flag. Add `-g` so the clip captures
the default audio input. The source follows System Settings > Sound > Input:
the mic for narration/room audio, or BlackHole (with output routed there) for
system/app audio. `?audio=off` disables sound; `?device=<id>` pins a specific
input via `-G<id>`.

Also move the two global hotkeys that shadowed terminal keys:
- drop_context:    Ctrl-C -> Ctrl-Shift-C (was intercepting SIGINT/cancel)
- drop_video_clip: Ctrl-R -> Ctrl-Shift-R (was intercepting reverse-i-search)

Global hotkeys match the exact modifier mask, so plain Ctrl-C / Ctrl-R still
reach the terminal; only the shifted variants trigger Sutando.

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

Addresses review of #1890: the drop-video-clip start notification read
"Recording screen - press Ctrl-R again to stop", which (a) didn't disclose that
mic audio is now captured and (b) still referenced Ctrl-R after the hotkey moved
to Ctrl-Shift-R. Update to "Recording screen + mic - press Ctrl-Shift-R again to
stop".

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

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

@cla-assistant check

@liususan091219 liususan091219 merged commit 243c619 into main Jul 1, 2026
6 checks passed
@liususan091219 liususan091219 deleted the fix/drop-clip-audio-and-hotkeys branch July 1, 2026 22:01
liususan091219 added a commit that referenced this pull request Jul 2, 2026
Follow-up to #1890 (owner request): while drop-video-clip records, the menu row reads (red dot) Drop Video Clip - recording... and reverts on stop, using the same leading-marker convention as the Mode rows. Hooks the existing isRecordingVideo flips in dropVideoClip. swiftc build verified; deployed and owner-verified live.

Co-Authored-By: Maddy (Claude Opus 4.8) <noreply@anthropic.com>
liususan091219 added a commit that referenced this pull request Jul 2, 2026
#1900)

Follow-up to #1890 (owner request): while drop-video-clip records, the menu row reads (red dot) Drop Video Clip - recording... and reverts on stop, using the same leading-marker convention as the Mode rows. Hooks the existing isRecordingVideo flips in dropVideoClip. swiftc build verified; deployed and owner-verified live.

Co-authored-by: Maddy (Claude Opus 4.8) <noreply@anthropic.com>
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