Repository navigation
fix(ui): stabilize terminal opening checks on cold CI workers - #147990
Conversation
|
🦞👀 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 maintainer review before merge. Reviewed September 14, 2026, 5:14 AM ET / 09:14 UTC (Revision 3). ClawSweeper reviewWhat this changesThe terminal-panel tests preload their browser dependency so cold module loading does not consume the deadline for checking terminal requests. Merge readiness✅ Ready for maintainer review This remains a useful, narrowly scoped test fix absent from current main. No actionable correctness or security defects were found; the maintainer-protected PR should remain open for normal landing. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI terminal panel connects a browser terminal renderer to Gateway terminal sessions. Its tests exercise panel lifecycle and request handling with a mocked renderer and Gateway client. flowchart LR
A[Suite setup] --> B[Load browser dependency]
B --> C[Mount and open terminal panel]
C --> D[Boot session controller]
D --> E[Mock Gateway requests]
E --> F[Assert opening and lifecycle behavior]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +5. Total +5 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep cold dependency preparation in suite setup while retaining production lazy loading and the existing behavioral assertions. Do we have a high-confidence way to reproduce the issue? Yes, source establishes that delaying the awaited browser import can exhaust the opening assertion window; the PR reports a matching delayed-import reproduction. Tests were not executed during this read-only review. Is this the best way to solve the issue? Yes, preparing the existing real dependency is a narrow fixture repair that preserves request assertions and avoids extending deadlines or changing production loading. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 5c12872ea0f0. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
Keep cold libterminal loading in suite setup so the terminal.open assertion retains its short deadline without a dependency-load race. Preserve all terminal behavior assertions and production lazy loading.
997bcb6 to
ddc0cb4
Compare
|
Merged via squash.
|
…claw#147990) Keep cold libterminal loading in suite setup so the terminal.open assertion retains its short deadline without a dependency-load race. Preserve all terminal behavior assertions and production lazy loading.
What Problem This Solves
Fixes the terminal-panel CI test failing before
terminal.openis sent when its first lazy dependency load exceeds the short assertion window. This is maintainer-requested CI stability work.User Impact
No user-visible behavior changes. Terminal CI keeps checking agent selection, input, resize, and lifecycle behavior without charging cold dependency loading to the RPC assertion deadline.
Why This Change Was Made
The terminal boot path imports the real default-color responder before creating its controller and opening the Gateway session. Prepare that dependency in suite setup. Production loading remains lazy, and all existing assertions and deadlines stay intact.
Evidence
opens new sessions for the selected agent, expectedterminal.openbut receivedundefined.Refreshed onto main
e27efbd2ed47c5877b884f290bc100a051504ebdafter the inherited lint repairs, at headddc0cb4666a15ad7aa7a9add9cd18ff90ef25157. Range-diff confirms the reviewed patch is unchanged. Final hosted CI is bound to this new head.Additional Hosted Validation
The broader hosted fallback exposed an SDK report out-of-memory failure, website-dashboard iframe navigation and cloud-reconciliation UI timeouts, and a Windows test-instance readiness/exit-order assertion failure. The SDK renderer starts from unchanged public SDK entrypoints and exhausts its existing 6 GiB child heap. The isolated UI E2E inventory excludes this terminal unit test; its website test and production owners are unchanged. These failures remain recorded for separate investigation; the broader fallback is not claimed green.
The original exact-head PR CI passed before native merge. All known broader failures were retained; remaining fallback execution was stopped only after landing, as redundant validation. The Windows test-instance owner and cloud-reconciliation E2E are also unchanged and do not load this terminal unit test.