Skip to content

refactor(chat): remove duplicate session projection paths - #115461

Merged
steipete merged 1 commit into
mainfrom
codex/web-tui-session-sync-dead-code
Jul 29, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/web-tui-session-sync-dead-code

Conversation

@steipete

Copy link
Copy Markdown
Contributor

Related: #115429\n\n## What Problem This Solves\n\nUsers viewing the same conversation in the browser and terminal could still hit subtle inconsistencies because browser history, Gateway events, pending sends, steering, and resets each reconstructed conversation and branch identity separately after the shared-session redesign. One live-final path also treated an explicitly unbranched session differently from authoritative history.\n\n## Why This Change Was Made\n\nMake the existing pane projection the single owner of browser conversation scope and atomic reducer/transcript publication. Route live messages, authoritative history, pending and acknowledged sends, steer turns, and reset through that owner; canonicalize an explicitly unbranched leaf as null everywhere. Remove repeated transcript clearing, dead current-message terminal filtering, and browser-side tests that duplicate the more comprehensive canonical Gateway-client reducer tests. The result removes 188 lines while adding 172; production code alone is 30 lines smaller. No protocol, config, storage, dependency, or public SDK changes.\n\n## User Impact\n\nThe same conversation stays ordered and synchronized across browser panes, Gateway subscribers, and the terminal through delayed peer messages, stale history, pending-send acknowledgements, session resets, reconnects, attachments, and branch changes. The architecture has one conversation scope and publication path instead of independently maintained copies.\n\n## Evidence\n\n- 1,396 passing focused Gateway, shared-client, browser, and terminal tests across 25 files, including real Gateway tests with web and TUI subscribers attached to the same session.\n- 46 passing real Chromium end-to-end scenarios covering split panes, delayed peer messages, stale history, reconnect, streaming, lost acknowledgements, reset, session navigation, and attachments.\n- 48 passing real terminal PTY scenarios covering subscription recovery, event gaps, streaming, reset, and session switching.\n- Complete production build, browser bundle, plugin-export checks, precompressed assets, and Control UI performance budget.\n- Passing production UI TypeScript and UI-test TypeScript gates.\n- Passing exact changed-file formatting and git whitespace checks.\n- Fresh independent autoreview: no accepted or actionable findings; final deletion of mirrored reducer tests independently reviewed clean.\n- AI-assisted; maintainer-requested deletion-led follow-up to #115429.\n

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Jul 29, 2026
@steipete
steipete merged commit 76c6ec0 into main Jul 29, 2026
100 of 106 checks passed
@steipete
steipete deleted the codex/web-tui-session-sync-dead-code branch July 29, 2026 01:05
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit that referenced this pull request Jul 29, 2026
* origin/main: (57 commits)
  docs: document gateway and memory chat wizards (#115487)
  fix(agents): restore subagent completion delivery on CLI runtimes (#115422)
  fix(sandbox): stop provisioning failures from exhausting fallbacks (#115481)
  refactor: remove duplicate runtime and plugin paths (#115483)
  fix(ui): canonicalize agent model identity (#115480)
  fix(ui): preview model picker interactions live (#115477)
  fix(ui): match disabled microphone picker background (#115472)
  refactor(code-mode): split focused runtime stress suites (#115462)
  fix(gateway): preserve restart intent across coalesced config writes (#110397)
  fix: scope subagent handoff to direct tools (#115466)
  docs: explain native subagent handoff
  fix: clarify native subagent completion handoff
  fix(config): respect agent directory filesystem case (#105402)
  refactor(code-mode): unify safe OpenAI tool filtering (#115460)
  refactor(code-mode): prepare MCP namespaces once per run (#115459)
  fix(ollama): preserve selected model capabilities during onboarding (#115467)
  refactor(chat): remove duplicate session projection paths (#115461)
  refactor(code-mode): make tool catalogs run-owned (#115458)
  fix(cli): preserve mid-turn text in durable replies (#115455)
  fix(memory): fall back to keyword search when embeddings cannot start (#115397)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
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.

1 participant