Repository navigation
Think at once when someone says "Cue, …" - #28
Merged
Merged
Conversation
A direct request used to sit until maybeThink's next 4 s tick, so every "Cue, …" lost 0–4 s before its think call even started. That's the cheapest part of the slow loop Tyler felt in the first real call (#26). A wake word now calls maybeThink immediately. One heard while a call is running gets its turn as soon as that call ends, instead of a tick later. The change stays on the wake path, so #11's work on the tick loop can rebase over it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
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 #27
Why
In the first real Meet call, Tyler said asking Cue for something felt slow (#26). One cheap part of that delay: "Cue, …" set
state.addressed, but nothing called Claude untilmaybeThink's next 4 s tick. So every direct request lost 0–4 s before its think call started.Change
addLinecallsmaybeThink()as soon as it hears a wake word. Local commands such as "Cue, mute" still run first, so the think call sees the new state.maybeThink'sfinallystarts another call if someone addressed Cue while it was busy.The change stays on the wake path, as agreed with the #11 session, which also works in the tick loop.
Screenshots
None: nothing visible changes. Answers to "Cue, …" just arrive sooner.
Verified
npm run checkpasses.?test=1with/api/thinkmocked (1.5 s per call, no Claude spend):/api/thinkin 12 ms. Before, that took up to 4 s.Review
Skipped:
public/-only change (CLAUDE.md skip rule).🤖 Generated with Claude Code