Repository navigation
feat: organize and archive nested conversations explicitly - #168076
Conversation
Separate sidebar placement from conversation ancestry, preserve unarchived children, and add guarded tree archive with scoped Undo. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: feb1e188-049d-46ee-9557-88a90343fc37
|
🦞👀 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: needs maintainer review before merge. What this changesThis PR adds independent placement for nested conversations and explicit, counted tree archiving with Undo. Example: “Plan the release” contains “Research notes” and “Verify the release.”
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: it provides useful, maintainer-directed conversation organization, and the previous archive-outcome finding is resolved without a new actionable defect identified. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherControl UI organization actions enter the existing session RPC mutation owner, which validates current access and placement before updating SQLite-backed session metadata and publishing refreshed rows. flowchart TD
A[Conversation menu or drag] --> B[Session organizer]
B --> C[Session RPC handlers]
C --> D[Current authority and placement guards]
D --> E[Session writer]
E --> F[SQLite session metadata]
E --> G[Row updates and Undo feedback]
Technical reviewBest possible solution: Retain the shared session mutation owner and connection-bound archive outcomes, then land through the normal exact-head gates. Do we have a high-confidence way to reproduce the issue? This is a feature review; source inspection and supplied proof establish the affected flows, and no target code or tests were executed during this read-only review. Is this the best way to solve the issue? The approach fits the existing owners: visual placement is additive metadata, execution ancestry remains intact, and explicit tree archive reuses guarded mutations and connection-scoped outcomes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2f532dfc6942. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (4 earlier review cycles)
Reviewed October 10, 2026, 12:30 AM ET / 04:30 UTC (Revision 5). |
Extract archive preparation types into their dependency leaf and assert additive sidebar placement independently of frozen wire hashes. Exercise promoted child placement and active-session archive confirmation in the existing browser suites. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: ba1895ce-b814-482d-a239-1030eb60db04
Integrate main's organizer changes, preserve independent group placement for children of archived parents, cancel page-owned archive dialogs on navigation, and keep dialog copy lazy within the unchanged startup budget. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 0083afee-0b1b-4220-919e-6bd0a6fe558c
Preserve confirmed archive batches, partial failures and identity-bound Undo across page navigation. Exercise pending sidebar rename through real browser history without clicking through the modal. Co-authored-by: steipete <[email protected]>
Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 2af516fa-d2a0-47b4-9d8e-723894cdb4d2
|
@clawsweeper re-review Head The CI pending-rename fixture failure was also reproduced locally on Node 24.19.0, then corrected with genuine picker and browser-history navigation. All four cases pass in the supported local network-isolated runner, with every original assertion and timeout preserved. Current proof, limits, and test costs are in the updated PR body. Fresh independent review of the combined correction is clean. |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
Update session-management.sidebar.e2e.test.ts after #168076 to expect enabled grouping and top-level promotion while retaining the child pin restriction and existing nesting, status, accessibility and navigation proof. Target the original session's accessible rename button in the mutation-scope sibling so its agent-switch history setup does not match two cached panes. Before: both sidebar nesting variants failed on the obsolete no-group action assertion; mutation-scope's All/rename case failed on an ambiguous selector. After: all 30 cases in the five focused browser files pass, one file per run. Wall seconds: sidebar 37.20, archive 47.09, mutation-scope 27.03, promotion 17.40, chat-header-session-lineage 18.85. Independent local review: clean through P2. Production LOC delta: zero.
…168076) * feat: organize and archive nested conversations explicitly Separate sidebar placement from conversation ancestry, preserve unarchived children, and add guarded tree archive with scoped Undo. Co-authored-by: steipete <[email protected]> * feat: organize and archive nested conversations explicitly Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: feb1e188-049d-46ee-9557-88a90343fc37 * fix: align nested session contracts and browser fixtures Extract archive preparation types into their dependency leaf and assert additive sidebar placement independently of frozen wire hashes. Exercise promoted child placement and active-session archive confirmation in the existing browser suites. Co-authored-by: steipete <[email protected]> * feat: organize and archive nested conversations explicitly Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: ba1895ce-b814-482d-a239-1030eb60db04 * feat: organize and archive nested conversations explicitly Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 0083afee-0b1b-4220-919e-6bd0a6fe558c * fix: retain tree archive outcomes after navigation Preserve confirmed archive batches, partial failures and identity-bound Undo across page navigation. Exercise pending sidebar rename through real browser history without clicking through the modal. Co-authored-by: steipete <[email protected]> * feat: organize and archive nested conversations explicitly Worked on by: - @steipete Co-authored-by: steipete <[email protected]> OpenClaw-Publication: 2af516fa-d2a0-47b4-9d8e-723894cdb4d2 --------- Co-authored-by: steipete <[email protected]>
Update session-management.sidebar.e2e.test.ts after openclaw#168076 to expect enabled grouping and top-level promotion while retaining the child pin restriction and existing nesting, status, accessibility and navigation proof. Target the original session's accessible rename button in the mutation-scope sibling so its agent-switch history setup does not match two cached panes. Before: both sidebar nesting variants failed on the obsolete no-group action assertion; mutation-scope's All/rename case failed on an ambiguous selector. After: all 30 cases in the five focused browser files pass, one file per run. Wall seconds: sidebar 37.20, archive 47.09, mutation-scope 27.03, promotion 17.40, chat-header-session-lineage 18.85. Independent local review: clean through P2. Production LOC delta: zero.
What Problem This Solves
Nested conversations need an explicit way to become independent, and archiving a parent must not make its still-active children disappear.
User Impact
Drag a persistent child to the top level, Pinned, or a custom group, or use Move to top level. Ordinary archive affects only that conversation; Archive session and children… offers an explicit counted confirmation and Undo.
Promotion preserves the conversation URL, transcript, workspace, origin, permissions, and execution relationships. Hidden worker runs remain outside sidebar organization. This feature adds no configuration change or database schema migration. Upgrading from the published stable release uses the existing Doctor migrations, verified below.
Why This Change Was Made
Sidebar placement is now separate from execution ancestry. Tree archive discovers collapsed descendants, excludes independent/grouped/already-archived branches, and checks the selected sessions and their ancestors again before stopping work or writing. Guarded batches settle deepest-first across stores; partial outcomes stay visible and Undo restores only successful targets.
Evidence
Before
After
Explicit tree archive
Verification
Integrated main
334fc6cb8fdato resolve actual organizer conflicts, preserving its patch owner and attempt-local rename handling. Final correction4892ac8277dbhas treeba967a23d5f731fb4237f71f685cb68b54c447fa, tested with the archive-outcome and CI-fixture fixes. Current-head CI and native landing remain separate gates.Regression repairs and test cost
sidebarRoot. They pass after using durable placement facts instead of rendered nesting. Mixed batches preserve order and never promote hidden workers.Final single-worker unit costs (
pnpm test <file> --maxWorkers=1):app-sidebar.session-promotion.test.ts4/4, 3.13s wall;session-organizer-batch-mutations.test.ts44/44, 2.74s;sessions-page.archive-lifetime.test.ts5/5, 3.18s;sessions-page.archive-tree-outcome.test.ts2/2, 8.32s wall / 0.614s test execution. The joint repaired selection passed 69/69 before the last tree-outcome delta. New-head CI timings are not yet available.Investigated failures and limits
76dca73e(test: restore agent artifact and maintenance fixture contracts #168084) repairs the old independently reproduced recovery-owner fixture failure. Local artifact execution passed that former failure; readiness passed in 12.881s.fetch failed/UND_ERR_SOCKET, 38.307s). Its peer matched the ambient proxy, with environment-proxy routing enabled and no loopback exemption. The log cannot distinguish GET, HEAD or Range, or explain the close. Combined artifact/readiness wall was 137.24s, not aggregate green. This is not inherited-CI qualification; no proxy/TLS safeguard changed.isTelegramReadOnlyControlLaneText,buildDirectChatContextandresolveContextTokenspredate the feature; Swift also flagged two unchanged reconnect-backoff hooks with test callers. These do not qualify a new CI attempt.Existing-data upgrade compatibility
Official npm 2026.9.9 (
bcfc88812a35, package integrity verified) → candidateb8974464(tree identical to published0782b739) passed on the same isolated SQLite state without reseeding. Stable created six nested sessions, transcripts, pin/group references and read-only permissions withoutsidebarRoot. Candidate preserved identity, metadata and lineage before writes. Real Chromium promotion/pinning, parent-only/tree archive/Undo and cold restart passed 1/1, 19.054s.Existing supported Doctor migrations completed with backups (state 19→20, agent 24→25). All 12 serialized transcript events stayed byte-identical; both SQLite integrity checks returned
ok. This proves stored-data compatibility through supported migration, not an updater-command invocation. The feature adds no schema migration.Worked on by
Work sessions
View the OpenClaw team session