Repository navigation
feat(sessions): first-class archived-session handling (tri-state filter, pruning exemption, inline archived UI) - #112554
Merged
Conversation
steipete
marked this pull request as ready for review
July 22, 2026 06:34
Archived sessions are now exempt from every automatic maintenance path (age prune, entry cap, model-run prune, disk budget, cleanup repairs); only explicit sessions.delete removes them. sessions.list gains an additive tri-state archived filter (true | false | "all"). The sidebar gets a persisted Active/Archived/All status filter with inline dimmed archived rows, replacing the nav-away View-archived button; the Sessions page toggle becomes the same tri-state with dimmed+badged rows in All mode; the chat composer's archived notice becomes a full-width banner with an Unarchive action.
steipete
force-pushed
the
claude/archived-sessions-handling-eb4e1f
branch
from
July 22, 2026 06:36
eb68189 to
16e5053
Compare
Contributor
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(sessions): first-class archived-session handling (tri-state filter, pruning exemption, inline archived UI) This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
Contributor
Author
|
Merged via squash.
|
github-actions Bot
pushed a commit
to Desicool/openclaw
that referenced
this pull request
Jul 23, 2026
…er, pruning exemption, inline archived UI) (openclaw#112554) * feat(sessions): first-class archived-session handling Archived sessions are now exempt from every automatic maintenance path (age prune, entry cap, model-run prune, disk budget, cleanup repairs); only explicit sessions.delete removes them. sessions.list gains an additive tri-state archived filter (true | false | "all"). The sidebar gets a persisted Active/Archived/All status filter with inline dimmed archived rows, replacing the nav-away View-archived button; the Sessions page toggle becomes the same tri-state with dimmed+badged rows in All mode; the chat composer's archived notice becomes a full-width banner with an Unarchive action. * chore(protocol): regenerate Swift gateway models for tri-state archived filter
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
Archived sessions were second-class: the sidebar could only bounce you to a separate page to see them, neither surface offered a mixed Active+Archived view (the protocol filter was a plain boolean), and — worst — automatic session-store maintenance silently pruned archived sessions once they aged past the retention window, so "archive" quietly meant "delete later."
Why This Change Was Made
Archive should be a safe long-term shelf: browsable in place, restorable, and kept until the user explicitly deletes it. Modeled on the archived-session UX in Claude Desktop's session sidebar (status filter with Active / Archived / All, inline dimmed rows, and an in-conversation Unarchive banner).
User Impact
sessions.delete, which requiresarchivedOnlyfor write-scope operators) removes them. The SQLite stale-candidate precheck also skips archived rows so they cannot force repeated store loads.sessions.listarchivednow acceptstrue | false | "all"; booleans behave exactly as before.archivedOnlypath. The nav-away "View archived" footer button is removed. The retired internal?showArchived=1dashboard URL is deliberately not parsed (not a shipped contract; noted inline inroute.ts).includeUnknown=false).app-sidebar-session-data.tsexceeded the 700-line cap and was split: the session-catalog concern moved to a newAppSidebarSessionCatalogDataElementlayer (pure move, no behavior change).Docs updated:
docs/concepts/session.md(retention),docs/web/control-ui.md(sidebar/page filters, banner).Evidence
All remote proof on Blacksmith Testbox
tbx_01ky440qxp5entrdfgk32jhxx4(providerblacksmith-testbox, synced from this branch):pnpm check:changedfully green (format, i18n catalog, typecheck core/tests/UI, lint core incl. max-lines, boundaries; 15m19s, wrapper exitCode 0).ui/src/components/app-sidebar.test.ts+app-sidebar-session-types.test.ts: 154 tests passing.refreshSidebarSessions); archived-state handoff claim refuted (chat.historysessionInfo.archiveddrives the banner independent of roster membership); legacy-URL compat consciously rejected per repo compat policy.