Skip to content

fix(ui): keep explicit navigation ahead of chat canonicalization - #115366

Merged
steipete merged 5 commits into
mainfrom
codex/deflake-checks-ui-e2e
Jul 28, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/deflake-checks-ui-e2e

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Closes #115297

What Problem This Solves

Fixes an issue where an explicit Control UI navigation could be overwritten by a late chat-route canonicalization when the Gateway and lazy route imports settled under load. In CI this appeared as rotating checks-ui-e2e timeouts: the requested URL briefly appeared, then the app returned to the old chat route and the awaited page never mounted.

Why This Change Was Made

Chat route data now carries the exact source location that produced any immediate or deferred canonical rewrite. ChatPage applies the rewrite only while it still owns that source location, with one narrow exception for consuming the source route's own one-shot draft parameter. A newer route or a new/changed draft remains authoritative.

This complements #115320's browser-side route readiness helpers and 8-vCPU CI runner. Those changes make the lane less timing-sensitive; this change removes the production race that the loaded reproducer exposed.

User Impact

Explicit navigation—such as opening Settings while the initial chat route is still resolving—no longer jumps back to chat. Pull requests also stop depending on whether that stale continuation happens to win on the CI runner.

Evidence

  • Before: job 90326823954 observed /settings/general, then timed out after the app returned to /chat/main; the unchanged rerun passed.
  • Root-cause stress: with one of four Testbox CPUs saturated, the old code reproduced within 2-4 runs. Diagnostic router state at timeout was committed chat, no pending match, URL /chat/main.
  • Fixed stress: 10/10 repeated sidebar files passed under the same load (110/110 browser tests), followed by 5/5 on the fix: de-flake Control UI end-to-end checks #115320 base (55/55).
  • Cited set: Codex sessions, sidebar customization, workspace memory, and Workboard routing passed together under load (28/28).
  • Complete lane: 104 files and 367 browser tests passed in Testbox run 30384639661.
  • Final focused proof: 70/70 chat page and route tests passed in Testbox run 30386572718.
  • Fresh Codex autoreview: clean; no accepted/actionable findings.

AI-assisted: yes. The implementation and every reviewer finding were verified against the route owner, the current app code, and @openclaw/uirouter 0.1.0 source/types.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Jul 28, 2026
@steipete steipete self-assigned this Jul 28, 2026
@steipete
steipete merged commit c475209 into main Jul 28, 2026
168 of 170 checks passed
@steipete
steipete deleted the codex/deflake-checks-ui-e2e branch July 28, 2026 19:39
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 28, 2026
…etwork-none

* origin/main: (74 commits)
  fix(ui): make Control UI ownership and permissions reliable (#115364)
  feat(system-agent): host memory import in Ask OpenClaw (#115376)
  fix(chat): preserve literal Markdown image examples (#113904)
  refactor(chat): keep web and terminal sessions synchronized (#115377)
  fix(ui): order model picker by provider strength (#115380)
  feat(ui): make Memory settings a destination page with live overview and dreams (#115383)
  docs(security): fix warning line wrap (#115388)
  fix(memory-core): avoid cubic MMR similarity rescans (#113359)
  fix(discord): preserve code-leading reasoning chunks (#103166)
  fix(slack): protect outbound hooks from previews
  fix(ui): keep explicit navigation ahead of chat canonicalization (#115366)
  fix(exec): safely cancel pending node approvals (#115373)
  fix: make Code Mode reliable across gateway and provider lifecycles (#115379)
  perf(ui): debounce event-driven session list refreshes and right-size child paging (#115374)
  feat(talk): support GPT-Live realtime voice over ChatGPT OAuth (#115226)
  feat(system-agent): guide gateway configuration in Ask OpenClaw (#115363)
  fix(agents): make overflow recovery append-only via branch-and-reappend (#115271) (#115310)
  fix(macos): bound websocket ping so a dropped pong cannot orphan its continuation (#115362)
  fix(codex): isolate native hook relay startup (#115078)
  fix(ci): stop reviving superseded pull request workflows (#115378)
  ...

# Conflicts:
#	CHANGELOG.md
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…nclaw#115366)

* fix(ui): preserve navigation during chat canonicalization

* refactor(ui): extract chat canonicalization ownership

* style(ui): keep chat page within line budget

* refactor(ui): trim chat page layout helpers

* style(ui): format canonicalization changes
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 size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: checks-ui-e2e stalls on cosmetic motion under Linux load

1 participant