Repository navigation
fix: conversation reset discards groups, icons, views, and sharing preferences - #126575
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 20, 2026, 3:32 AM ET / 07:32 UTC. ClawSweeper reviewWhat this changesThe PR preserves a conversation’s icon, custom group, preferred Control UI face, and visibility setting when Gateway resets its durable session entry. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open for normal maintainer merge review. No blocking code finding: the PR repairs the durable reset owner that current main demonstrably omits, with a meaningful RPC-plus-store regression test. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (failed) — execution before step 1 Assertions:
How this fits togetherGateway session reset clears a conversation’s run and transcript state, then rebuilds its durable session entry. The Control UI reads that entry to restore sidebar grouping, icon, preferred view, and collaboration visibility. flowchart LR
A[Control UI or command reset] --> B[Gateway reset service]
B --> C[Current durable session entry]
C --> D[Build replacement entry]
D --> E[SQLite session store]
E --> F[Control UI session list]
E --> G[Sharing policy]
Before merge
Agent review detailsSecurityNone. PR surfaceSource +4, Tests +5. Total +9 across 2 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: 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:
Copy recommended automerge instructionTechnical reviewBest possible solution: Land the four explicit carry-forward fields at the reset builder after exact-head validation and maintainer-owned Control UI proof; a net-neutral refactor is not clearer because each field is an independent durable preference. Do we have a high-confidence way to reproduce the issue? Yes—source reproducible: current main’s reset builder preserves label but omits the four persisted preferences. This read-only review did not run tests, and the checkout environment has no pnpm executable. Is this the best way to solve the issue? Yes. The replacement-entry builder is the canonical producer for reset state, so carrying the existing fields there is safer than a Control UI workaround or downstream restoration. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2a79f747019c. 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
|
|
Merged via squash.
|
Channel /reset dropped operator-owned appearance even after openclaw#126575. icon, color, category, boardFace, and visibility now travel with the preserved reset selection. A session without an icon still has none. Closes openclaw#138251
Channel /reset dropped operator-owned appearance even after openclaw#126575. Gateway and channel resets share preserveResetSessionPresentation(), which keeps icon, color, category, boardFace, boardPresentation, visibility, and pinnedAt. Model and auth filtering stay in resolveResetPreservedSelection. A session without an icon still has none. Closes openclaw#138251
Closes #123520
What Problem This Solves
Fixes an issue where users resetting a Control UI conversation with
/resetwould lose its custom sidebar group, chosen icon, preferred chat or dashboard view, and collaboration visibility preference, even though the conversation label and pinned state survived.Why This Change Was Made
The Gateway reset lifecycle rebuilds the durable session entry while clearing conversation and run state. Preserve the four existing operator-owned preferences alongside the session label at that lifecycle boundary, so the returned session and its persisted SQLite record stay consistent without adding a UI workaround, changing storage schemas, or retaining transient run state.
User Impact
Resetting a conversation clears its earlier messages while keeping it in the same custom group with its existing icon, chosen view, draft or sharing preference, name, pinned state, and usage-display preference.
Evidence
Live operator flow against the real local Gateway and Control UI in isolated Chromium: create a custom sidebar group, set a lobster icon, choose the dashboard face, type
/resetin the real composer, and submit it. Before the fix, the session moved to Other and itscategory,icon, andboardFacebecame empty; a separate disposable draft session also reverted to shared visibility while keeping the same session identity.Failing-first existing Gateway integration suite: 21 passed, 1 failed, with the failure showing all four missing preferences while
label,pinnedAt, andresponseUsageremained intact.After the owner-boundary repair, the identical focused suite passed 22/22; the expanded existing regression checks both the Gateway response and the canonical durable SQLite session entry:
Independent owner-boundary review and isolated source review: clean.
Production delta: +4 lines for four existing durable preference fields; existing regression delta: +5 lines net. No protocol, configuration, or database-schema changes.