Repository navigation
Let people pause, resume and stop the video Cue is playing - #98
Merged
Merged
Conversation
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]>
Owner
Author
|
Opus review of c043c0f (via eminent-stencil): merge. Optional follow-ups: bound the skip window ( |
This was referenced Nov 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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):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=1andorigin); files usevideo.pause()/play().Claude can do it too: a
pause_videotool (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 carriespaused.No double handling: a think call that saw a line the page already handled skips its own
pause_video,stop_video, or aplay_videoof 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
.playingmode; resuming puts it back.Screenshots
A paused video (the clock keeps its time):
Verified
npm run checkpasses./api/thinkmocked) on a YouTube embed (Big Buck Bunny), an MDN.mp4and a.webm, reading the player itself: YouTube'smovie_player.getPlayerState()(1 → 2 → 1) and the iframe's<video>.paused/currentTime, or the page's<video>. All 29 checks passed:.playing, and the mock's hostilestop_video+ same-URLplay_videofrom that tick are skipped..playingback); "queue pause it", "Cue hold on" pause.pause_videotrue/false (lines with no wake word) pause and resume..playing; a file video that ends drops.playing.pause_video, and a real Recall call.Review
Review: pending (manager). Commit c043c0f.
🤖 Generated with Claude Code