Repository navigation
fix: archived threads leave the sidebar immediately - #129153
Merged
roboclaw-bot merged 1 commit intoAug 25, 2026
Merged
Conversation
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
roboclaw-bot
marked this pull request as ready for review
August 25, 2026 08:19
Collaborator
Author
|
Land-ready proof for
Known proof gaps: none. The latest ClawSweeper comment is the active review placeholder and currently publishes no |
roboclaw-bot
deleted the
openclaw/archive-thread-with-instant-sidebar-removal
branch
August 25, 2026 08:32
Collaborator
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Aug 26, 2026
) Co-authored-by: roboclaw-bot <[email protected]>
This was referenced Aug 28, 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 archiving the currently open thread left it visible in the sidebar until the Gateway mutation and subsequent list refresh settled. The delayed removal made the archive action feel unresponsive even though the thread remained intentionally open as the main content.
Why This Change Was Made
The shared session capability now owns a bounded pending/confirmed archive-visibility fact. Active-sidebar projection consumes that fact across root, child, selected-fallback, and cached-lineage rows, while route and pane state remain untouched; canonical unarchive data retires the local visibility fact. This keeps sidebar and chat-header archive entry points on one lifecycle path.
User Impact
The archived row disappears from the sidebar as soon as Archive is activated. The same thread stays selected in the main pane, its content remains visible, and the normal archived notice, Undo action, and Unarchive flow continue to work.
Evidence
node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts ui/src/lib/sessions/index.test.ts— 328 tests passed.OPENCLAW_CAPTURE_UI_PROOF=1 node scripts/run-vitest.mjs run --config test/vitest/vitest.ui-e2e.config.ts --configLoader runner ui/src/e2e/session-management.archive.e2e.test.ts— 10 tests passed in Chromium, including a deferredsessions.patchthat proves removal before the RPC resolves.node scripts/check-changed.mjs -- <changed files>— formatting, structural guards, dead-code, i18n, core/UI typechecks, and lint passed..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main— clean; no accepted/actionable findings.Before
Immediately after activation, while
sessions.patchis unresolvedAfter the Gateway response
Recording
archive-current-thread.webm
AI-assisted: yes. The implementation and proof were reviewed, and the final branch passed the repository autoreview workflow.