Repository navigation
fix(desktop): attach the key-down screen frame to every voice turn - #12579
Merged
Merged
Conversation
The voice model only saw the screen when it chose to call the screenshot tool, and on Beta 0.12.256/257 it skipped that call (stale in-session image, fresh barge-in session, short ambiguous audio routed to think_deeper) and answered a current-screen question from an earlier turn. The PTT-down frame is now sent as in-turn video on every Gemini turn, buffered frames are tagged with their turn and dropped when they miss it, think_deeper falls back to the same frame's OCR text, and the instruction says the per-turn image is the current screen and earlier images are stale. Failure-Class: none
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
The voice model only saw the screen when it chose to call the
screenshottool. On Beta 0.12.256/257 it skipped that call on ~1 turn in 6 (stale in-session image, fresh barge-in session, short ambiguous audio routed to think_deeper) and answered a current-screen question ("what's the answer to this riddle?", "5+2?") from an earlier turn.realtimeInput.videoon every Gemini turn (attachTurnScreenFrameIfNeeded, called when the frame finishes encoding and on everybeginLiveInputTurn, once per evidence per physical session so barge-in replacements get it too).activityStartonly for the matching turn; frames that miss their window are dropped at commit, never carried into the next turn.think_deeperfalls back to the OCR text of the same PTT-down frame when no screen observation was accepted this turn.screenshotis for a fresh re-look only. Tool description updated in the manifest and regenerated.Restores the turn-start frame delivery from 1d46c82 (vendz, Jun 17) that was dropped in the #9597 refactor.
Verification
Local
omi-doorsbundle built from this patch (2026-09-01 22:20). Nik exercised the real path: Notes with5+5/5+2, and the doors page. 8 PTT turns, every one showsptt_screen_evidence stage=turn_frame_attachedfollowed byscreen frame sent in-turn (~263 KB); answers followed the current screen, including the changed note. Regression tests added:RealtimeHubSessionInputLifecycleTests(frame flushed at activityStart; frame from a finished turn dropped),HubSystemInstructionTests(instruction + tool description),ScreenContextTelemetryTests(snapshot visibleText).Invariants: INV-VOICE-1, INV-AGENT-1, INV-AGENT-2, INV-AGENT-3, INV-CHAT-1.
Failure-Class: none