Repository navigation
test(macos): keep the rendered Quick Chat suite stable on hosted runners - #156134
Conversation
The shortcut check asserted that the process yields activation after NSApplication.deactivate(), which hosted macOS runners never do; the behavior under test (presenting an editor, reopening, disabling) does not depend on it. Poll the hand-off, report it, and keep every behavioral assertion. Frozen release targets also ran the rendered suite in the parallel default lane where other suites take key status and dismiss the panel; give them the isolated lane whenever the suite exists.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs real behavior proof before merge. Reviewed September 22, 2026, 11:21 PM ET / September 23, 2026, 03:21 UTC. ClawSweeper reviewWhat this changesThe PR makes macOS activation handoff diagnostic-only in the Quick Chat test and runs its rendered suite separately on compatible frozen release targets. Merge readiness⛔ Blocked before merge - 2 items remain Keep open: current main still needs this focused test-isolation repair. No concrete patch defect was found, but the reported native runs need inspectable after-fix evidence. Priority: P2 Review scores
Verification
How this fits togethermacOS CI runs Quick Chat tests against real AppKit windows with fixture-backed application data. Test partitioning prevents other suites from taking window focus and invalidating those checks. flowchart TD
A[Checked-out release target] --> B{Rendered suite available?}
B -->|Yes| C[Separate Quick Chat process]
B -->|No| D[Existing default test lane]
C --> E[Record activation handoff]
E --> F[Assert presentation and shortcut behavior]
F --> G[Native test logs and result]
D --> G
Before merge
Agent review detailsSecurityNone. PR surfaceConfig +1, Other +7. Total +8 across 2 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep native presentation assertions intact while isolating the rendered suite and explicitly recording whether each host exercised inactive-app presentation. Do we have a high-confidence way to reproduce the issue? Unclear: source supports the activation-precondition and shared-window failure mechanisms, but this review did not replay the reported hosted failures. Is this the best way to solve the issue? Yes: reusing the existing isolated native-test lane and retaining behavioral assertions is a focused solution; inspectable native output is still needed to substantiate the reported result. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against d5225dd9bdc0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash auto-merge.
|
…ers (openclaw#156134) ## Summary `QuickChatCatalogPresentationTests` › "rendered Quick Chat preserves catalog disclosure and shortcut behavior in order" fails intermittently in the hosted `macos-swift (tests)` job (Full Release Validation runs 35761278329 and 35802234377 for 2026.9.6; passes locally). The uploaded `macos-native-test-logs` artifacts show two failure shapes, both environmental: 1. `QuickChatPresentationTests.swift:304` `Expectation failed: condition()` with the diagnostic `Quick Chat presented: visible=true, active=true, key=true, editorReady=true`. The only wait that can fail with that state is `waitUntil { !application.isActive }` after `application.deactivate()`: the hosted runner never hands activation to another app, so the *precondition* for "presents without foreground ownership" is unattainable there, while the behavior itself (panel visible, editor focused, reopen, disable) is proven. 2. On frozen release targets (`HISTORICAL_TARGET=true`) the rendered suite still runs in the parallel default lane. Parallel suites open key windows, Quick Chat dismisses on focus loss by design, and the test then reports `windowVisible=false windowKey=false` plus a reset `model.speed` (the 5-issue attempt). Current targets already isolate the suite into the `default-rendered` lane; frozen targets did not. ## Changes - `apps/macos/Tests/OpenClawIPCTests/QuickChatPresentationTests.swift`: the activation hand-off before firing the shortcut is a bounded, non-asserting `poll` that prints whether the host yielded activation; every behavioral assertion after it is unchanged. `waitUntil` now delegates to `poll`. - `.github/workflows/ci.yml`: run the isolated `default-rendered` lane for frozen targets too whenever the suite exists in the checked-out tree; older tags without the suite keep the single default lane. ## Proof - Local `swift test --disable-sandbox --filter QuickChatCatalogPresentationTests` (apps/macos): 5/5 passes. - One extra run with another application in the foreground (app deliberately not active) passes. - `swiftformat --lint` clean on the changed file.
…ers (#156134) ## Summary `QuickChatCatalogPresentationTests` › "rendered Quick Chat preserves catalog disclosure and shortcut behavior in order" fails intermittently in the hosted `macos-swift (tests)` job (Full Release Validation runs 35761278329 and 35802234377 for 2026.9.6; passes locally). The uploaded `macos-native-test-logs` artifacts show two failure shapes, both environmental: 1. `QuickChatPresentationTests.swift:304` `Expectation failed: condition()` with the diagnostic `Quick Chat presented: visible=true, active=true, key=true, editorReady=true`. The only wait that can fail with that state is `waitUntil { !application.isActive }` after `application.deactivate()`: the hosted runner never hands activation to another app, so the *precondition* for "presents without foreground ownership" is unattainable there, while the behavior itself (panel visible, editor focused, reopen, disable) is proven. 2. On frozen release targets (`HISTORICAL_TARGET=true`) the rendered suite still runs in the parallel default lane. Parallel suites open key windows, Quick Chat dismisses on focus loss by design, and the test then reports `windowVisible=false windowKey=false` plus a reset `model.speed` (the 5-issue attempt). Current targets already isolate the suite into the `default-rendered` lane; frozen targets did not. ## Changes - `apps/macos/Tests/OpenClawIPCTests/QuickChatPresentationTests.swift`: the activation hand-off before firing the shortcut is a bounded, non-asserting `poll` that prints whether the host yielded activation; every behavioral assertion after it is unchanged. `waitUntil` now delegates to `poll`. - `.github/workflows/ci.yml`: run the isolated `default-rendered` lane for frozen targets too whenever the suite exists in the checked-out tree; older tags without the suite keep the single default lane. ## Proof - Local `swift test --disable-sandbox --filter QuickChatCatalogPresentationTests` (apps/macos): 5/5 passes. - One extra run with another application in the foreground (app deliberately not active) passes. - `swiftformat --lint` clean on the changed file.
Summary
QuickChatCatalogPresentationTests› "rendered Quick Chat preserves catalog disclosure and shortcut behavior in order" fails intermittently in the hostedmacos-swift (tests)job (Full Release Validation runs 35761278329 and 35802234377 for 2026.9.6; passes locally). The uploadedmacos-native-test-logsartifacts show two failure shapes, both environmental:QuickChatPresentationTests.swift:304Expectation failed: condition()with the diagnosticQuick Chat presented: visible=true, active=true, key=true, editorReady=true. The only wait that can fail with that state iswaitUntil { !application.isActive }afterapplication.deactivate(): the hosted runner never hands activation to another app, so the precondition for "presents without foreground ownership" is unattainable there, while the behavior itself (panel visible, editor focused, reopen, disable) is proven.HISTORICAL_TARGET=true) the rendered suite still runs in the parallel default lane. Parallel suites open key windows, Quick Chat dismisses on focus loss by design, and the test then reportswindowVisible=false windowKey=falseplus a resetmodel.speed(the 5-issue attempt). Current targets already isolate the suite into thedefault-renderedlane; frozen targets did not.Changes
apps/macos/Tests/OpenClawIPCTests/QuickChatPresentationTests.swift: the activation hand-off before firing the shortcut is a bounded, non-assertingpollthat prints whether the host yielded activation; every behavioral assertion after it is unchanged.waitUntilnow delegates topoll..github/workflows/ci.yml: run the isolateddefault-renderedlane for frozen targets too whenever the suite exists in the checked-out tree; older tags without the suite keep the single default lane.Proof
swift test --disable-sandbox --filter QuickChatCatalogPresentationTests(apps/macos): 5/5 passes.swiftformat --lintclean on the changed file.