Skip to content

Video pause follow-ups: negations, skip window, prompt wording - #100

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

a-Fig merged 1 commit into
mainfrom
pause-followups

Conversation

@a-Fig

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

Copy link
Copy Markdown
Owner

Closes #99

Why

The Opus review of #98 found three ways the new video controls could do the wrong thing: "Cue, don't stop it" stopped the video, a pause spoken while a think call was in flight made the page drop that call's own video move, and the prompt's "hold on, wait" could pause a video at a conversational "wait, what?".

Change

  • public/app.js: a video pause, resume or stop is skipped when don't / do not / no / never comes up to two words before the matched phrase. Claude still sees the line. "No, keep going" still resumes because the comma ends the negation, but a transcript that drops the comma ("no stop the video") is now left to Claude.
  • public/app.js: the think call skips its pause, stop or same-video replay only for commands from after the last look and before the call started (videoCmdAt > lastLook && videoCmdAt <= now), so it only skips moves the call could have seen.
  • agent.js: the pause_video line now reads "only when someone asks you to pause the video ("hold on", "wait") or to resume it, not at a conversational "wait, what?"". Nothing else in the prompt changed.
  • panel/panel.js: the feed says "Paused the video" / "Resumed the video".

Screenshots

None: nothing visible changes on Cue's screen.

Verified

  • npm run check passes.
  • Playwright on a test server (:3042, ?test=1, /api/think mocked), 13/13 checks passed. With a video up, "don't stop it", "do not close it", "don't pause", "never pause the video" and "no don't stop the video" left it playing, and "don't resume yet" left it paused. "Cue, pause" and "Cue, no, keep going" worked. "Cue, pause it" started a call that returned stop_video, and the page skipped it. A pause spoken while a slow call was in flight paused the video, and that call's stop_video still applied when it returned.
  • Not checked: a real Claude run against the new prompt line, or a real call.

Review

Review: pending (manager). This PR touches agent.js.

🤖 Generated with Claude Code

…ommand

From the Opus review of #98. "Cue, don't stop it" ran the stop it
negated, so a video command right after don't / do not / no / never is
now left to Claude. The skip that stops a think call from repeating a
spoken pause also caught commands spoken while the call was in flight,
on lines it never saw, dropping a move it made for its own reasons; it
now counts only commands from before the call started. The pause_video
prompt line asked for a pause on any "wait", so it now names a request
to pause the video and rules out a conversational "wait, what?". The
panel feed names pause_video actions instead of "pause video".

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@a-Fig

a-Fig commented Nov 13, 2026

Copy link
Copy Markdown
Owner Author

Review (eminent-stencil, Opus 5.5) of d888d57: read in full. The negation guard is anchored to the two words before the match, and the regexes have no g flag, so exec carries no state between calls. The window bound is correct. The agent.js change is the one pause_video line. Merge.

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

Video pause follow-ups from #98's review: negations, skip window, prompt wording

1 participant