Repository navigation
Look at what was said every 0.5 s, not every 4 s - #63
Merged
Merged
Conversation
Tyler: the wait from speaking to Cue starting to think is far too long for the demo. Without a wake word, a request sat up to 6.5 s before any think call started: a 2.5 s pause, then the next 4 s tick, or 15 s while people kept talking. Those numbers made sense when every look was a full Claude call. With the Jev gate (#53), a look that ends "quiet" costs about $0.00002 and under a second, so the page now looks every 0.5 s, after a 0.8 s pause, and at least every 6 s during continuous talk. Wake words were already immediate (#28), and filler is still skipped without a call (#36). 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 #62
Why
Tyler: the wait from speaking to Cue starting to think is far too long, and it matters for the demo. Without a wake word, a request waited up to 6.5 s before any think call started: 2.5 s for a pause, then up to 4 s for the next tick, or 15 s while people kept talking. Those values date from when every look was a full Claude call. With the Jev gate (#53) a "quiet" look is about $0.00002 and well under a second.
Change
Three constants in
public/app.js, with a comment saying why:TICK_MS(how often the page checks)QUIET_GAP_MS(pause that counts as done speaking)MAX_WAIT_MS(longest wait during continuous talk)Unchanged:
state.busystill keeps calls from overlapping.Spend: more looks reach
/api/think, roughly one per pause in speech. With the gate, most of those stop at Jev. When Jev isn't sure, they go to Claude. That's the same rule as before, just more often.Screenshots
None: nothing visible changes, only timing.
Verified
node --check public/app.jspasses.?test=1with/api/thinkmocked, time from a line being sent to the think request:Review
Skipped under the
public/-only rule. This ismaybeThink's area (#11, climbing-tuna); I've told them. It may raise Claude spend if Jev passes many looks, so eminent-stencil may want Tyler to see it. Tyler asked for this change.🤖 Generated with Claude Code