Repository navigation
fix(ui): explain transcript retention before deleting sessions - #199184
Conversation
Use the existing session kind to distinguish retained transcript archives from incognito deletion in all ordinary session deletion confirmations. Preserve deletion, retention, and permission behavior. Co-authored-by: vyctorbrzezowski <[email protected]>
|
🦞👀 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: stale review; fresh review needed. Summary Next step Review history (1 earlier review cycle)
|
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
vyctorbrzezowski
left a comment
There was a problem hiding this comment.
Reviewed every changed file, the shared confirmation selector and catalog loading, and the four published dialog captures. The copy matches the existing regular/incognito retention distinction without changing deletion, authority, or storage policy. Existing cancellation and stale-request handling remain intact. The separate automation warning remains preserved after integration. Published owner-level retention tests and green exact-head CI support the unchanged execution path; incognito/mixed screenshots are presentation fixtures, not live deletions.
|
Merged in 8f3d259. Reviewed the complete diff and regular, incognito, and mixed confirmation captures. The messages now explain the existing retention behavior without changing deletion or permissions. Exact-head CI passed; the linked-automation warning and human coauthorship are preserved. |
…law#199184) Distinguish regular transcript archives from incognito deletion across existing confirmation entry points. Preserve deletion requests, retention policy, authority and cancellation behavior; load shared copy with deferred mutation controls. Co-authored-by: vyctorbrzezowski <[email protected]>
What Problem This Solves
Fixes deletion confirmations that say a session transcript is deleted even though regular sessions retain an archived copy, while other entry points describe the same operation differently.
User Impact
Before confirming deletion, users see what happens to the selected transcripts: regular transcripts are archived, incognito transcripts are deleted without an archive, and mixed selections explain both outcomes.
Deletion requests, device cleanup, permissions, and retention policies are unchanged. This does not add a restore control or promise permanent archive retention. Incognito wording concerns OpenClaw’s transcript archive, not external-provider retention.
Why This Change Was Made
The existing deletion owner archives regular transcripts and explicitly skips archival for incognito sessions. The sidebar, chat-header operation, Sessions page, selected-session actions, and Delete all archived now use one presentation helper based on the existing incognito flag/key. Two competing selection-specific copy keys are removed. External-session catalog deletion has a different contract and is unchanged.
The existing confirmation remains the committing step. Cancel does not submit deletion, and failed or stale requests retain their existing recovery behavior. No new persistence, confirmation, or state owner was added. Confirmation copy travels with the existing deferred mutation controls rather than the shared startup catalog.
Evidence
10159aefda9c77cb1036298f9eb886d92c9c2445: chat boot gzip is 224 B below base and New Session boot is 236 B below base; their request counts are unchanged. Initial-entry JS is unchanged. The copy shares the existing deferred confirmation chunk. Inherited absolute-budget debt remains; no limits were raised, and this is not a latency claim. Updated remote CI is pending.bb905f76e55de2934e868434ea23c345893cdc6c. Matched source-served Control UI captures use synthetic session data, light theme, and a 1280×900 viewport. Incognito/mixed images below are supplementary production-dialog fixtures, not live deletion flows. The backend tests, not screenshots, prove retention. The catalog repair changes no wording or rendering, so these verified images are reused.Sidebar deletion confirmation
Open a session’s sidebar menu, then Advanced → Delete.
Before
After
Incognito and mixed selections — production-dialog fixtures
The actual confirmation component and shared copy selector render these synthetic selections. These images prove presentation only.
Worked on by
Work sessions
Linked for team reference; these sessions aren’t public.