Skip to content

Let people pause, resume and stop the video Cue is playing - #98

Merged
a-Fig merged 1 commit into
mainfrom
video-pause
Nov 13, 2026
Merged

a-Fig merged 1 commit into
mainfrom
video-pause

Conversation

@a-Fig

@a-Fig a-Fig commented Nov 13, 2026 •

Copy link
Copy Markdown
Owner

Closes #97

Why

Tyler: "cue cant pause videos." The page could only stop a video. "Cue, pause" went to Claude, which took seconds and had no pause tool, so at best it stopped or restarted the clip.

Change

  • Instant voice controls (localCommand, after the wake word, only while a video is up):

    • pause: "Cue, pause", "q pause it", "Cue, hold on / hold up / hang on"
    • resume: "Cue, play", "Cue, play it (again)", "Cue, resume / unpause / keep going / continue / carry on / go on"
    • stop: "Cue, stop", "stop the video / stop it / stop playing", "close it / turn it off"

    A bare "play" resumes only when it's the whole request, so "Cue, play the Dune trailer" still goes to Claude for a new video. YouTube takes the commands over its postMessage API (the embed already had enablejsapi=1 and origin); files use video.pause() / play().

  • Claude can do it too: a pause_video tool (paused: true|false) for asks without the wake word, plus two prompt lines (no When does Cue act unprompted, and when does it stay quiet? #10 rule changed). CURRENT SCREEN now carries paused.

  • No double handling: a think call that saw a line the page already handled skips its own pause_video, stop_video, or a play_video of the same URL, so it can't stop or restart what the page just paused.

  • State: a "Paused" pill in the video footer while paused; the mp4 clock keeps its time. Pausing, stopping, or a file video ending drops Give the bot a 4-core machine and keep the page still while video plays #96's .playing mode; resuming puts it back.

Screenshots

A paused video (the clock keeps its time):

paused.png

Verified

  • npm run check passes.
  • Playwright (Chromium 1248, test server on :3041, /api/think mocked) on a YouTube embed (Big Buck Bunny), an MDN .mp4 and a .webm, reading the player itself: YouTube's movie_player.getPlayerState() (1 → 2 → 1) and the iframe's <video>.paused/currentTime, or the page's <video>. All 29 checks passed:
    • "Cue, pause" pauses (currentTime frozen over a second), shows Paused, drops .playing, and the mock's hostile stop_video + same-URL play_video from that tick are skipped.
    • "q play", "Cue, keep going" resume (time advances, pill hidden, .playing back); "queue pause it", "Cue hold on" pause.
    • Claude's pause_video true/false (lines with no wake word) pause and resume.
    • "Cue, close it" stops and clears the pill and .playing; a file video that ends drops .playing.
  • Not checked: a real Claude run choosing pause_video, and a real Recall call.

Review

Review: pending (manager). Commit c043c0f.

🤖 Generated with Claude Code

Cue could only stop a video. "Cue, pause" went to Claude, which took seconds
and had no pause tool, so at best it stopped or restarted the clip (#97).

Pause, resume and stop now run instantly in the page after the wake word,
written loosely as speech-to-text does ("q pause it", "Cue, keep going",
"Cue, close it"), and only while a video is up. A bare "play" resumes only
when it is the whole request, so "Cue, play the Dune trailer" still reaches
Claude. YouTube takes the commands over its postMessage API (the embed already
had enablejsapi=1 and origin); files use video.pause()/play().

Claude gets a pause_video tool for asks without the wake word ("can you pause
that for a sec"), and CURRENT SCREEN carries paused. The think call that sees
a line the page already handled skips its own pause, stop or same-video
replay, so it can't undo the local command.

A "Paused" pill shows while paused. Pausing, stopping or a file video ending
drops #96's .playing mode, since a still frame needs none of its savings.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
a-Fig pushed a commit that referenced this pull request Nov 13, 2026
@a-Fig

a-Fig commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

Opus review of c043c0f (via eminent-stencil): merge. Optional follow-ups: bound the skip window (videoCmdAt <= now), guard negations ("Cue, don't stop it"), and narrow agent.js:55 so a conversational "wait" doesn't pause.

@a-Fig
a-Fig merged commit 2910969 into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the video-pause branch November 13, 2026 23:23
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.

Cue can't pause or resume a video it's playing

1 participant