Repository navigation
refactor(ui): make sessions and navigation reliable across reconnects - #117103
Merged
Merged
Conversation
steipete
marked this pull request as ready for review
July 31, 2026 23:18
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 1, 2026
…openclaw#117103) * refactor(ui): consolidate connection ownership and split control shell * fix(ui): keep terminal session contract with reconciliation owner
This was referenced Aug 8, 2026
This was referenced Aug 24, 2026
This was referenced Aug 28, 2026
This was referenced Oct 8, 2026
This was referenced Oct 22, 2026
This was referenced Nov 1, 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
Control UI sessions, chat panes, agents, and nodes could retain stale asynchronous work across gateway reconnects or client replacement, while the application shell and session capability had grown beyond 2,000 lines each. That made reconnect behavior harder to reason about, left agent-file loading indicators stuck after disconnect, and allowed obsolete authentication or navigation handoffs to overwrite current connection state.
Why This Change Was Made
Establish one shared connection-epoch ownership contract and one shared retry owner, then split the oversized session and application-shell modules into focused owners with explicit, compiler-checked boundaries. Session observation, roster refresh, navigation, rendering, shell chrome, gateway synchronization, and workboard lifecycle retain their existing product contracts while rejecting work from retired connections.
User Impact
Sessions stay visible and correctly selected while the gateway reconnects, even when users rapidly switch chats. Agent-file loading state clears reliably after disconnect, stale authentication responses cannot overwrite the new connection, and navigation cannot consume a handoff from a retired gateway connection.
Evidence