Skip to content

fix(ui): stabilize terminal opening checks on cold CI workers - #147990

Merged
steipete merged 1 commit into
mainfrom
codex/ci-stability-recurrent-tails
Sep 14, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/ci-stability-recurrent-tails

Conversation

@steipete

@steipete steipete commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes the terminal-panel CI test failing before terminal.open is 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

  • Observed failure: main CI run 34805956255, opens new sessions for the selected agent, expected terminal.open but received undefined.
  • A temporary diagnostic delayed the real dependency import by 1.5 seconds: original test failed with the same assertion; the prepared fixture passed. The diagnostic delay/mock is not included in this PR.
  • Terminal panel, readiness, and reconnect suites: 48 tests passed.
  • Required changed checks passed, including UI test types, lint, formatting, i18n verification, and unused-export scans; independent review found no actionable issues.

Refreshed onto main e27efbd2ed47c5877b884f290bc100a051504ebd after the inherited lint repairs, at head ddc0cb4666a15ad7aa7a9add9cd18ff90ef25157. 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.

@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Sep 14, 2026
@steipete
steipete marked this pull request as ready for review September 14, 2026 06:11
@steipete steipete self-assigned this Sep 14, 2026
@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 14, 2026
@clawsweeper

clawsweeper Bot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 14, 2026, 5:14 AM ET / 09:14 UTC (Revision 3).

ClawSweeper review

What this changes

The 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
Reviewed head: ddc0cb4666a15ad7aa7a9add9cd18ff90ef25157

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused fixture repair with preserved assertions and relevant reported validation.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies maintainer-authored test maintenance, so the external runtime-proof gate does not apply; the reported delayed-import diagnostic directly targets the fixture timing change.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies maintainer-authored test maintenance, so the external runtime-proof gate does not apply; the reported delayed-import diagnostic directly targets the fixture timing change.
Evidence reviewed 7 items Verified introduced change: The pinned base-to-head diff adds only the beforeAll import. Existing assertions, deadlines, production code, and dependency versions remain unchanged.
Production dependency ordering: Session boot awaits the same browser import before creating its controller; the session controller awaits boot before sending terminal.open. This establishes the cold-import timing mechanism and the affirmative dependency signal for inspecting libterminal.
Pinned dependency contract: The v0.3.3 tag resolves to this commit. Its browser entrypoint exports the real color-query responder; Ghostty runtime loading remains inside a function, so importing the module does not create a terminal.
Findings None None.
Security None None.

How this fits together

The 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]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests +5. Total +5 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 6 1 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 6 1 +5

Review metrics

None.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a focused test-fixture reliability improvement with no production behavior change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: The supplied repository state identifies maintainer-authored test maintenance, so the external runtime-proof gate does not apply; the reported delayed-import diagnostic directly targets the fixture timing change.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit b420450 adds ui/src/components/terminal/terminal-panel-session-boot.ts:48 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: b42045004ffc; files: ui/src/components/terminal/terminal-panel-session-boot.ts)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (2 earlier review cycles)
  • reviewed 2026-09-14T06:24:04.576Z sha 997bcb6 :: needs maintainer review before merge. :: none
  • reviewed 2026-09-14T06:45:50.540Z sha 997bcb6 :: needs maintainer review before merge. :: none

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.
@steipete
steipete force-pushed the codex/ci-stability-recurrent-tails branch from 997bcb6 to ddc0cb4 Compare September 14, 2026 08:17
@steipete
steipete merged commit 64f4d26 into main Sep 14, 2026
272 of 282 checks passed
@steipete
steipete deleted the codex/ci-stability-recurrent-tails branch September 14, 2026 09:30
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 15, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant