Repository navigation
fix(desktop): route Escape in Chat-first shell - #11059
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
There was a problem hiding this comment.
All reported issues were addressed across 4 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
|
Fixed cubic P2 in |
fe29b16 to
e154c10
Compare
|
Rebased the actual branch onto latest |
|
Solid fix — registering the Chat-first shell with the shared window Escape monitor at The cubic P2 (Escape during task rename navigating to Chat) is correctly handled on this head: the rename field's CI passes (Desktop Swift Build & Tests, Static & Test Contracts, Hygiene). Leaving a positive signal here — thanks for the clean, well-scoped fix. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
Escape dispatcher was only wired to the legacy shell; Chat-first now registers with the shared window-scoped monitor. Regression test included, Swift build green. Desktop bug fix — merging (owner-override).
Summary
Fixes #10698.
Chat-first pages were using SwiftUI's focus-dependent
onExitCommand, while theshared window Escape dispatcher was only attached to the legacy shell. Escape
could therefore be swallowed on Chat-first Tasks, Goals, Memories,
Conversations, and More pages.
The Chat-first shell now registers navigation with the shared window-scoped
Escape monitor. Child handlers retain priority, and Escape remains unhandled on
Chat. Navigation behavior is centralized in
ChatFirstShellNavigationandcovered by a regression test.
Verification
xcrun swift test --package-path Desktop --filter ChatFirstShellTests./scripts/swift-format-wrapper.sh lint Desktop/Sources/MainWindow/ChatFirst/ChatFirstRoute.swift Desktop/Sources/MainWindow/ChatFirst/ChatFirstShell.swift Desktop/Tests/ChatFirstShellTests.swiftpython3 scripts/check_desktop_test_quality.pyOMI_APP_NAME="omi-10698-escape" ./run.sh --yolo --full --no-waitwas signed out and
agent-swiftis not installed in this environment.Invariants
No product invariants are affected.
Failure-Class: none