Skip to content

Look at what was said every 0.5 s, not every 4 s - #63

Merged
a-Fig merged 1 commit into
mainfrom
think-sooner
Nov 13, 2026
Merged

a-Fig merged 1 commit into
mainfrom
think-sooner

Conversation

@a-Fig

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

Copy link
Copy Markdown
Owner

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:

Before After
TICK_MS (how often the page checks) 4000 500
QUIET_GAP_MS (pause that counts as done speaking) 2500 800
MAX_WAIT_MS (longest wait during continuous talk) 15000 6000

Unchanged:

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.js passes.
  • Headless Chromium on ?test=1 with /api/think mocked, time from a line being sent to the think request:
    • "I wonder how big the video conferencing market is": 1262 ms. Before: 2.5–6.5 s.
    • "what's the capital of Australia again": 1216 ms.
    • "Cue, show me a map of Europe": 6 ms.
    • "yeah": no call, as before.
  • Not checked: a real call, and how many of the extra looks Jev passes to Claude in a real conversation.

Review

Skipped under the public/-only rule. This is maybeThink'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

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]>
@a-Fig
a-Fig merged commit 769cf19 into main Nov 13, 2026
1 check passed
@a-Fig
a-Fig deleted the think-sooner branch November 13, 2026 21:51
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 waits up to 6.5 s after you speak before it starts thinking

1 participant