Repository navigation
fix(desktop): harden startup PTT and chat recovery - #10441
Merged
Merged
Conversation
Keep speculative voice-context loading controller-owned so a canceled first-turn waiter cannot cancel hub warm-up. Forced post-persistence refreshes still replace older reads. Failure-Class: FC-split-mutation-authority
Treat adapter errors as progress inside an admitted kernel run and emit only the correlated canonical failed result, preventing Swift from dropping the request before terminal journal material arrives. Failure-Class: FC-split-mutation-authority
Recognize scoped web-search prohibitions in both gateway and agent routing while preserving explicit search requests that merely mention results, webpack, or naming. Failure-Class: none
Keep the useful insights hub visible while canonical history loads, then animate loaded conversations upward into Home once the atomic snapshot is ready. Failure-Class: none
Move the voice-context flight owner and Home stage transitions out of oversized controllers, ratcheting both line-count baselines downward without changing behavior.
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: e4b125982b
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
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.
What changed and why
Cold-start PTT now shares controller-owned voice-context readiness instead of letting a timed-out turn cancel the warm-up needed by the next turn. The same PR also keeps one authoritative chat terminal result, honors explicit no-web wording, and shows the useful Home hub while canonical history restores before the loaded conversation rises into place.
The Beta trace proved a failed first-turn web-search request and a later log gap, but it did not prove a macOS main-thread deadlock. Main already fixed the Beta request-shape 400; this PR repairs the remaining reproducible lifecycle and presentation boundaries without claiming the unproven freeze mechanism.
Product invariants affected
How it was verified
cd desktop/macos && ./test.sh— all launcher checks, 396 Rust tests, and 373 isolated Swift suites passedcd desktop/macos && ./scripts/agent-logic-harness.sh --cross-surface-smoke— Swift, Node, and Rust cross-surface contracts passed/Applications/omi-qa-main.appon the development backend — immediate cold PTT admitted capture and allowed the shared hub warm-up to connect without a second press; an exact “Do not call web search” main-chat turn returned one terminal response with no sending or streaming state left behindhomeMode=hubduring restore andhomeMode=chatafter loaded history became availableTests
RealtimeVoiceContextSingleFlightTestscovers canceled waiters, forced post-fence freshness, and failed-flight retry orderingjsonl-transport.test.tscovers adapter error-before-throw ordering and one correlated terminal resultHomeHistoryPresentationPolicyTestscovers loading, loaded-history, and empty-history Home statesFailure class (fixes)
Failure-Class: FC-split-mutation-authority
Scoped cleanups