Repository navigation
Voice: a long reply is watched for 1.6 s before it starts (16 → 3 of 84 replies with a pause) - #129
Merged
Merged
Conversation
In the first second a long reply's speech often comes at real time and slows once the chat model writes its next sentences beside it, so the start the measured rate allowed then still paused in 16 of 84 long replies measured live on DGX-02. A reply whose text is still being written now waits OBSERVE_MS (1.6 s) from its first piece before the rule may start it: 3 of 84 then pause (0.07 to 0.4 s, each 35 s or more in). The page, the mobile app and voice_e2e's replay change together. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
A reply whose text is still being written is watched for 1.6 s from its first piece before the start rule may release it. This applies to the
/voicepage, the companion (which uses the page), the mobilereplyHoldandvoice_e2e's replay.holdNeed(item): + if (!textDone && now - firstPiece < OBSERVE_MS /* 1600 */) return Infinity // still watching its rate return max(START_MS, rest * (1 - rate) + margin)Why: in the first second, a long reply's speech often arrives at real time. It then slows once the chat model writes its next sentences beside it. A start trusted on that first second ran dry later in the reply.
Evidence
The rule was replayed on the recorded events of every reply.
Live on DGX-02, 2026-10-27/28:
The real page in headless Chrome (DGX-02 daemon at 9902b37, typed long prompts in a call; the old page and this page interleaved):
Checks
zig fmt --check,zig buildandzig build teston DGX-02: exit 0, 287/287 tests.apps/mobile: lint, type-check and test (54) pass.apps/companion:npm run checkpasses.voice_e2e.page_startgives exactly the replay's start on 54 replies (0 s difference).Merge Danger
Door: two-way. Client-side only, with no state or protocol change.
Blast Radius: voice
🤖 Generated with Claude Code