Skip to content

fix(desktop): restore realtime input and direct delegation - #9749

Merged
Git-on-my-level merged 2 commits into
mainfrom
codex/fix-realtime-screen-freshness
Jul 14, 2026
Merged

Git-on-my-level merged 2 commits into
mainfrom
codex/fix-realtime-screen-freshness

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Jul 14, 2026 •

Copy link
Copy Markdown
Member

Summary

  • Preserve the first push-to-talk turn while a realtime session is warming, and make the actual live screenshot response supersede conflicting warm screen context.
  • Keep Gemini screenshot pixels attached to the matching function response, eliminate the duplicate Home-chat sign-in card, and rewrite/verify staged WebP dylib load paths for named local bundles.
  • Dispatch clear provider-specific agent handoffs in the same turn instead of stopping at an unnecessary confirmation; the realtime spoken heads-up is informational, not a gate.

Root cause and durable guard

  • The realtime cold-start state could finalize or lose a first input before the provider’s activity window was ready, while the live capture result did not consistently have authority over warm context. The input lifecycle and system-instruction tests now cover the cold/warm ordering and live-capture precedence.
  • Home chat rendered the same session-expired recovery state at two composition sites. It now has one shared render site, covered by ChatErrorStateTests.
  • Provider handoff intent reached conversational policy without a dispatch requirement, so a clear OpenClaw request could end at confirmation without invoking spawn_agent. Kernel semantic guidance now requires same-turn dispatch for clear delegation; the realtime prompt explicitly labels the spoken message as non-confirmatory.
  • Named bundles could retain an external WebP dynamic-library path. The launcher rewrites the staged path and verifies it with a focused shell regression test.

Verification

  • cd desktop/macos/agent && npm test -- context-snapshot.test.ts omi-tool-manifest.test.ts — 34 passing.
  • cd desktop/macos && xcrun swift test --package-path Desktop --filter "(AgentPillLifecycleTests|ChatErrorStateTests|HubSystemInstructionTests|RealtimeHubSessionInputLifecycleTests|VoiceTurnCoordinatorTests)" — 148 passing.
  • bash desktop/macos/tests/test-bundled-dylib-rewrite.sh — passing.
  • Exercised the existing omi-qa-openclaw-handoff dev-GCP QA bundle: a PTT request directly invoked spawn_agent with OpenClaw and the spawned run completed successfully.

Product invariants affected

  • INV-AGENT-*
  • INV-CHAT-1
  • INV-VOICE-1

Review in cubic

Root cause: clear provider handoffs could stop at a conversational confirmation before spawn_agent, so OpenClaw never launched.\n\nDurable guard: kernel semantic guidance now requires same-turn dispatch for clear delegation and explicit providers; the realtime tool prompt makes the spoken heads-up non-confirmatory.\n\nEvidence: npm test -- context-snapshot.test.ts (18 passing); xcrun swift test --package-path Desktop --filter HubSystemInstructionTests (13 passing); openclaw config validate.
@Git-on-my-level
Git-on-my-level merged commit be24273 into main Jul 14, 2026
21 of 24 checks passed
@Git-on-my-level
Git-on-my-level deleted the codex/fix-realtime-screen-freshness branch July 14, 2026 19:56
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.

1 participant