Repository navigation
fix(desktop): make open_ask_omi report the chat-first composer it actually opens - #13234
Conversation
There was a problem hiding this comment.
All reported issues were addressed across 20 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
…ication CI's XCTest host has no NSApplication, so ShellSummon.shellWindow() crashed on the NSApp IUO. Guard the new automation path instead of changing product summon behavior (#13201, #13234). Failure-Class: none Co-authored-by: Cursor <[email protected]>
|
Correction on the Test-only fix: #13260. Nothing in this PR touches owner or defaults state; once #13260 lands, a rebase or rerun of this job should be green. |
…ually opens Typed Ask Omi is the main-window composer, not the retired notch panel. The action now selects Chat, reuses the home_open_chat caret claim, and returns target=main_chat without calling revealForUser, so quiet automation stays quiet instead of timing out (#13201). Failure-Class: none Co-authored-by: Cursor <[email protected]>
The action moved into Desktop/Sources/Automation/; flow lint only discovers names from that inventory, so the updated YAML flows were reported as unknown actions. Failure-Class: none Co-authored-by: Cursor <[email protected]>
…ication CI's XCTest host has no NSApplication, so ShellSummon.shellWindow() crashed on the NSApp IUO. Guard the new automation path instead of changing product summon behavior (#13201, #13234). Failure-Class: none Co-authored-by: Cursor <[email protected]>
… disclose the resting surface on close Addresses cubic-dev-ai review feedback on #13234: - isComposerPresented now reads visibleRoute (the mounted destination's markRouteVisible acknowledgement), so a navigation command is no longer reported as an already-open composer; wait=true waits (bounded) for the mount before recording openMs instead of returning an instant openMs for a composer that is not on screen yet (P1). - close_ask_omi still closes the floating panel, but when the chat-first composer is presented it reports mainChatPresented/mainChatClosed so a paired flow cannot read a floating-bar-only result as Ask Omi closed (P2). - ask-omi-animation-benchmark S4 close capture retargeted to main, matching the open step's surface (P3). - Quiet-contract test now asserts focusMs is nil (omitted), not merely != timeout which passed trivially (P3). - Presentation-mode defers restore the exact previous value (P3). - ask-omi-open-benchmark covers: drops DesktopAutomationActivationActions, which the flow never exercises; chat-paste covers it via paste_clipboard_into_chat/chat_composer_snapshot (P3).
165b2b5 to
89e025f
Compare
|
Addressed all six unresolved cubic review threads in 89e025f (branch rebased onto latest main first; patch-equivalent by range-diff):
Verification (worktree at 89e025f): focused suites All six review threads resolved as addressed. CI is running on the new head. |
What changed and why
open_ask_omistill polled the retired notch composer (showingAIConversation), sowait=truealways returnedopenMs=timeoutandwait=false'striggered=truelied about what opened. Typed Ask Omi is the chat-first main-window composer. This retargets the bridge action and snapshot to that surface without changing product UX or remounting a notch composer. Fixes #13201.Product invariants affected
How it was verified
Swift unit tests only, from this worktree at
fix/open-ask-omi-automation-contract.CI job Desktop Swift Static & Test Contracts crashed
HomeStageCloseSemanticsTestswith signal 5:ShellSummon.shellWindow()readsNSApp.windows, andNSAppis a nil IUO in the headless XCTest host. Local GUI sessions hid this. Follow-up commit keepsOpenAskOmiAutomationnil-safe (shellWindowIfAppRunning/runningApplication) and never createsNSApplication.sharedor opens a window when AppKit is not running.ShellSummonproduct behavior is unchanged.Selected tests: 83 passed, 0 failed (was 82; added
testOpenAskOmiStaysNilSafeWithoutNSApplication).Isolated CI-style runner (
desktop/macos/scripts/swift-test-suites.sh, discovery restricted to these two suites,OMI_SWIFT_TEST_SUITE_BATCH_SIZE=1):HomeStageCloseSemanticsTestsandDesktopAutomationBridgeRouteTestsboth passed.Also:
python3 desktop/macos/scripts/check_desktop_test_quality.py(OK),./scripts/swift-format-wrapper.sh linton changed Swift files (OK),OMI_PR_BODY_FILE=/tmp/pr-body-13201.md make preflight(25 checks passed).The same CI run's
KernelTurnRecordedProjectionTests.testAnOwnerTransitionDissolvesAnOutstandingRevocationfailure is a main-branch flake also seen on an unrelated PR. It is not caused by this change and was not touched.Installed app binaries were not rebuilt, relaunched, or live-tested. Three authenticated QA sessions on this machine took precedence. Pre-fix live evidence (quiet automation,
openMs=timeout,triggered=truewithaskOmiOpen=false) is in issue #13201 (slot omi-e2e-1, source9ff63a63b047, 2026-09-08).Tests
Regression coverage that would have caught #13201:
HomeStageCloseSemanticsTests.testOpenAskOmiUnderQuietDoesNotTimeOutOrExitQuiet— quiet stays quiet; noopenMs/focusMstimeoutHomeStageCloseSemanticsTests.testOpenAskOmiWaitFalseReturnsMainChatTarget—wait=falsereturnstarget=main_chatHomeStageCloseSemanticsTests.testOpenAskOmiContractOmitsFocusTimeoutWhenQuietBlocksFocusHomeStageCloseSemanticsTests.testOpenAskOmiStaysNilSafeWithoutNSApplication— noNSAppIUO crash / no window open in a headless hostDesktopAutomationWindowPresentationTests.testOpenAskOmiLeavesQuietWindowsMountedAndUnrevealedDesktopAutomationBridgeRouteTests.testOpenAskOmiIsRegisteredOnTheMainChatSurfaceQueryShellTests.testChatComposerSnapshotExposesPlaceholderAndModeFailure class (fixes)
Failure-Class: none