Repository navigation
fix(ui): remove archived sessions from active sidebar - #123723
clawsweeper wants to merge 1 commit into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed October 3, 2026, 7:16 PM ET / 23:16 UTC (Revision 10). ClawSweeper reviewWhat this changesThe PR removes archived sessions from the Active sidebar while retaining their open chat and replacing the composer with an archived notice and Undo action. Merge readiness⛔ Blocked before merge - 4 items remain Keep open: strict filtering of cold-opened archived sessions remains distinct from the merged live-archive repair. The protected PR has useful visual evidence, but its confirmed conflicts and remaining navigation-policy choice prevent a merge-ready verdict. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI projects Gateway session records and routed session details into sidebar navigation. Archive visibility determines which rows appear, while the retained session descriptor supplies the open chat’s title, archived notice, and restoration action. flowchart TD
A[Gateway session records] --> C[Session state owner]
B[Open chat route] --> D[Retained session details]
C --> E[Sidebar visibility policy]
D --> E
E --> F[Filtered sidebar tree]
D --> G[Open chat and archived notice]
G --> H[Restore session]
H --> C
Decision needed
Why: The remaining change reverses a documented and tested presentation policy; the contributor’s requester-approval statement does not independently confirm maintainer acceptance of that full scope. Before merge
Agent review detailsSecurityNone. PR surfaceSource +7, Tests -6. Total +1 across 12 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Apply the chosen cold-link policy through the current shared sidebar visibility seam while retaining routed chat details and identity-bound restoration. Do we have a high-confidence way to reproduce the issue? Not applicable as a remaining bug reproduction: current source, tests, and docs intentionally retain the cold-link exception. No runtime tests were executed during this read-only review. Is this the best way to solve the issue? No, the older projection changes are no longer the best integration point; current main’s shared visibility seam can express the remaining policy without duplicating archive lifecycle ownership. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against e87ab44327c0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (9 earlier review cycles; latest 8 shown)
|
|
Landing is blocked by an unrelated current-main Control UI failure already owned by #123705.
Archive-specific proof remains green: 333 focused UI tests, all 9 archive E2E scenarios, changed checks, visual inspection, and clean autoreview. Once the canonical Skills repair reaches |
|
The product decision is explicit: the requester wants the active sidebar row to disappear immediately when the current session is archived, while preserving the open route and an in-place Undo action. That resolves the policy choice raised by ClawSweeper in favor of the active-only sidebar behavior implemented here. Exact-head sanitized visual proof: Before archive — routed session is present in Sessions After archive — row is absent; chat remains open with Undo This addresses both optional rank-up moves from the latest review. The remaining red gate is the unrelated duplicate initial Skills request already owned by #123705; I will refresh and land this PR through |
|
Thanks for the PR. We're closing older pull requests that have gone stale against current This branch conflicts with main, CI is failing, and there have been no commits since August; the sidebar has since been rewritten and the live-archive case was repaired separately. Please open a fresh issue if archived sessions still linger in the active sidebar. |


Closes #121436
What Problem This Solves
Fixes an issue where users who archived the session they were viewing would still see that archived session in the active Control UI sidebar. The archive succeeded, but the selected-row exception made the active list look unchanged.
Why This Change Was Made
The active sidebar now applies its archive filter consistently to routed roots and child sessions while retaining the routed archived descriptor solely for the open chat, title, and Undo state. Archived lineage cache rows are dropped on canonical refresh so a stale pre-archive child cannot be projected back into the active tree.
The prior policy was introduced in #113882. This PR reverses only the sidebar-membership decision: the chat route remains open, cold-loaded archived links still resolve, and Undo restores the row and composer in place.
User Impact
Archiving the current session removes it from the active sidebar immediately. The open chat remains available with a clear archived banner and Undo action; Undo restores the session to the sidebar without navigation.
Evidence
ui/src/lib/sessions/navigation.test.tsreturnedagent:main:archivedin an active-filtered list.node scripts/run-vitest.mjs ui/src/lib/sessions/navigation.test.ts ui/src/components/app-sidebar-session-navigation-logic.test.ts ui/src/components/app-sidebar.test.ts ui/src/pages/chat/chat-composer.test.ts ui/src/pages/chat/chat-composer-disabled-banner.test.ts— 333 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— 9 passed. Browser assertions cover archive, immediate row removal, route/title continuity, cold-load behavior, navigation away/back, Undo restoration, and composer restoration.node scripts/check-changed.mjs -- <12 changed UI paths>— passed after the unavailable remote backend fell back locally; includes format, i18n, typecheck, lint, dead-code, dependency, and repository guard lanes..agents/skills/autoreview/scripts/autoreview --mode branch --base origin/main --stream-engine-output— clean; no accepted/actionable findings.archived-session-before.png,archived-session-hidden-with-undo.png). The after image shows the selected session absent from Sessions while its breadcrumb/chat remain open with the Undo banner. This bot environment has no authenticated GitHub attachment uploader, so the files could not be attached to the PR; the deterministic E2E assertions cover the same states.Production/test LOC: production +23/−16 (net +7), tests/test-support +42/−48 (net −6). The small production growth makes archive filtering an explicit tree-projection contract and prevents archived lineage caches from bypassing it.
AI-assisted: yes. The original Peter-authored implementation was preserved and refreshed against current
main; the current-lineage cache interaction and proof updates were completed with Codex.