Skip to content

fix: keep newly created sidebar sessions visible after switching chats - #100981

Merged
shakkernerd merged 1 commit into
mainfrom
fix/sidebar-session-order
Jul 6, 2026
Merged

shakkernerd merged 1 commit into
mainfrom
fix/sidebar-session-order

Conversation

@shakkernerd

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where newly created sessions initially appeared first in the Control UI sidebar but disappeared or lost their position after the user selected another session.

Why This Change Was Made

The shared session capability now notifies UI consumers after a successful creation and list refresh. The sidebar uses that notification to promote the created session in its stable ordering without changing Gateway ordering, the session limit, or the existing sorting controls.

User Impact

Newly created sessions remain at the front of the sidebar after switching between chats, without requiring a page refresh.

Evidence

  • Manually reproduced the failure on current main.
  • Live verification confirmed that creating a session and selecting another session keeps the new session first.
  • git diff --check
  • Autoreview: no accepted or actionable findings.

@shakkernerd shakkernerd self-assigned this Jul 6, 2026
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 6, 2026
@shakkernerd
shakkernerd force-pushed the fix/sidebar-session-order branch from 48164cf to 10bab56 Compare July 6, 2026 15:48
@shakkernerd
shakkernerd merged commit 67ec544 into main Jul 6, 2026
16 checks passed
@shakkernerd
shakkernerd deleted the fix/sidebar-session-order branch July 6, 2026 15:48
@shakkernerd

Copy link
Copy Markdown
Contributor Author

Merged using squash.

What changed after review:

  • Kept newly created sessions at the front of the stable sidebar order after switching chats.
  • Rebased the fix cleanly across the current sidebar refactor.

Verification:

  • Rebased/refreshed onto current origin/main before pushing.
  • Live Control UI behavior verified by @shakkernerd.
  • Prior PR CI: 55 checks passed; no required checks configured.
  • Auto-review: completed earlier in the review cycle.
  • GitHub checks: no required checks configured.

Landed on main:

Thanks @shakkernerd!

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: XS

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant