Skip to content

fix: keep shared web and TUI chats synchronized under load - #115191

Merged
steipete merged 2 commits into
mainfrom
codex/web-tui-chat-stress-fixes
Jul 28, 2026
Merged

steipete merged 2 commits into
mainfrom
codex/web-tui-chat-stress-fixes

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #115066, #115165

What Problem This Solves

Fixes an issue where people opening the same conversation in the web app and terminal would see missing, duplicated, reversed, or permanently stale messages after history refreshes, socket backpressure, attachment-only sends, full scrollback, reconnects, or temporary subscription failures.

Why This Change Was Made

Keep authoritative persisted transcript events reliable, reconnect overloaded subscribers instead of silently dropping messages, and reconcile live prompts by canonical identity and transcript sequence. Preserve session, agent, reset, and branch isolation; recover terminal subscriptions without ever announcing readiness while unsubscribed; and render canonical persisted attachment-only prompts in the terminal.

The narrow full-scrollback fix from #115165 has already landed. This follow-on builds on it and independently covers stale-history ordering, frozen replies, visible tools, session switches, and reconnect recovery.

User Impact

The web app and terminal show the same shared conversation in the same order, including image and file prompts, under delayed history responses, reconnects, full terminal scrollback, repeated temporary gateway failures, and sustained cross-client messaging.

Evidence

  • Reproduced the browser stale-history failure in real Chromium before the fix; the identical browser regression passes after the fix.
  • Reproduced silent authoritative message loss against a real slow WebSocket and verified that healthy subscribers still receive the event while overloaded subscribers reconnect.
  • Sent a 32-message burst through a real Gateway to independent web and terminal WebSocket clients; verified every canonical message identity and sequence, then verified exact transcript recovery after reconnect.
  • Reproduced terminal stale-history misordering, cross-session leaks, full-scrollback loss, attachment-only omissions, and false-ready subscription failures with failing regressions before fixing them.
  • Remote Blacksmith proof covers the complete affected Gateway, browser-history, and terminal suites; the real Chromium UI E2E lane; and the real terminal PTY lane, including one through four transient subscription failures, exhausted retries, streaming tools, Unicode input, session isolation, and event-gap recovery.
  • No Gateway protocol, schema, configuration, SQLite migration, or plugin contract changes.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui gateway Gateway runtime size: XL maintainer Maintainer-authored PR labels Jul 28, 2026
@steipete
steipete merged commit fda8391 into main Jul 28, 2026
188 of 190 checks passed
@steipete
steipete deleted the codex/web-tui-chat-stress-fixes branch July 28, 2026 13:39
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to christian-lallo/openclaw that referenced this pull request Jul 28, 2026
* origin/main: (150 commits)
  fix: preserve skill proposals across apply crashes and workspace moves (openclaw#114535)
  fix(qa): run maturity Docker scenarios through the aggregate scheduler (openclaw#114447)
  refactor(cli): unify configured model rows onto the shared row pipeline (openclaw#115239)
  fix(ui): stop modal autofocus steal after the open animation (openclaw#115168)
  fix(process): preserve long supervisor timeout deadlines (openclaw#115230)
  fix(slack): preserve pasted inbound tables (openclaw#115163)
  fix(codex): restore trajectory capture for canonical session targets (openclaw#115220)
  refactor(qa): make scenario selection taxonomy-owned (openclaw#114055)
  feat(plugins): match shared models across vendor-namespaced catalog ids (openclaw#115210)
  fix(ios): forgetting a paired gateway does nothing (openclaw#114083)
  test(ui): share pauseVirtualClock e2e helper and de-flake marquee hover-delay asserts (openclaw#115203)
  fix(docs): preserve pure fenced translation chunks (openclaw#115204)
  fix: keep shared web and TUI chats synchronized under load (openclaw#115191)
  fix(auto-reply): require a directed turn for the no-visible-reply fallback
  fix(auto-reply): attest source-routed message-tool sends via the dedupe route matcher
  fix(auto-reply): attest message-tool source replies in every delivery mode and gate eligibility on resolved settlement
  fix(auto-reply): bound turn-ledger settlement and treat started sends as conservatively visible
  fix(auto-reply): abort-aware fallback settlement and straggler drain in turn ledger
  fix(auto-reply): keep turn-ledger types module-local
  test(auto-reply): fix type-check errors in turn-ledger corner tests
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…115191)

* fix: keep shared web and TUI chats synchronized under load

* test: satisfy strict shared-chat ordering types
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 gateway Gateway runtime maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant