Repository navigation
refactor(chat): keep web and terminal sessions synchronized - #115377
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 28, 2026 18:46
steipete
force-pushed
the
codex/web-tui-session-sync-stress
branch
from
July 28, 2026 19:23
b68c486 to
2c7215d
Compare
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
…#115377) * refactor(chat): unify web and TUI session synchronization * refactor(chat): extract canonical projection and transcript owners * test(gateway): verify private transcript store identity * test(agents): protect public transcript storage boundary * fix(chat): harden cross-client identity and subscription lifecycles * fix(gateway-client): preserve type-safe release callback rejection * test(ui): complete shared sidebar gateway fixture
This was referenced Aug 28, 2026
This was referenced Oct 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Fixes an issue where users opening the same OpenClaw conversation in the web UI and terminal could see different prompts, missing committed messages, duplicated replies, stale history, or pre-reset messages when clients reconnect, stream, branch, import transcripts, or submit concurrently.
Why This Change Was Made
Makes the existing browser-safe Gateway client the single owner of canonical session projection, source-qualified message identity, bounded run state, snapshot reconciliation, and connection-scoped subscription leases. Dedicated SQLite-sequencing, renderer-identity, and terminal-projection modules preserve ownership boundaries and project lint limits. SQLite turns publish final active-branch messages in committed order; unsafe batches trigger one scoped authoritative refresh. Lease cleanup is safe when release callbacks throw. No new package, dependency, Gateway protocol version, configuration surface, or SQLite schema migration.
User Impact
The web UI and terminal converge on the same conversation during simultaneous sends, identical prompt text, colliding imported source IDs, attachments, streaming and tool finals, resets, history races, throwing subscription callbacks, aliases, reconnects, and multi-message commits. Genuine duplicate deliveries are deduplicated without dropping independently authored messages.
Evidence