Skip to content

fix(ui): explain transcript retention before deleting sessions - #199184

Merged
vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/action-promises-delete-transcripts
Nov 15, 2026
Merged

vyctorbrzezowski merged 3 commits into
mainfrom
openclaw/action-promises-delete-transcripts

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Collaborator

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

  • 108 UI tests and 5 browser scenarios passed on the repaired tree. Five dialog regressions fail before the wording fix for the intended retention distinction, then pass for regular, incognito flag/key, all-incognito, and mixed selections. They also verify no deletion before confirmation or after Cancel. A cold-loading regression fails before the catalog repair and verifies first-use copy, preserved translations, locale, and namespace identity afterward.
  • The original 3 focused backend cases use actual storage owners: normal deletion retains a readable archive file; incognito creation/deletion stays process-local with no archive; deleting nonempty memory-owned history removes its retained reset windows. Their owning code is unchanged by the repair. No real user data was deleted.
  • The real sidebar flow submits the same deletion request once, then preserves the row and visible recovery on rejection. Existing selection, archived-only, stale-scope, and partial-failure checks remain intact.
  • UI typecheck, scoped UI/script lint, formatting, i18n baseline/verification, and diff checks passed. The complete composed English catalog, including key order, is byte-identical before and after relocation. Generated translation memory is untouched.
  • The initial CI performance failure was reproduced with CI's Node 24.22.1, Vite 8.3.5, and Pako 3.0.3. After the repair, the unchanged base-relative performance gate passes against 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.
  • Before: verified main 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.
  • Simplification: one 28-line presentation helper replaces competing copy selection across six call sites. A small existing-pattern English registrar keeps confirmation-only copy out of shared startup. Net production growth is 51 lines; test growth is 101 lines; no deletion/storage code changes. Final focused UI checks took 11.02s and the browser file took 33.92s. Original backend runs include cold compilation.

Sidebar deletion confirmation

Open a session’s sidebar menu, then Advanced → Delete.

Before

Before: deletion incorrectly claims the transcript is deleted

After

After: regular-session deletion explains the retained archive

Incognito and mixed selections — production-dialog fixtures

The actual confirmation component and shared copy selector render these synthetic selections. These images prove presentation only.

Incognito: transcript deletion without an archive

Mixed selection: regular and incognito outcomes are distinguished

Worked on by

Work sessions

Linked for team reference; these sessions aren’t public.

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]>
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@roboclaw-bot
roboclaw-bot marked this pull request as ready for review November 14, 2026 20:41
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 14, 2026
@clawsweeper

clawsweeper Bot commented Nov 14, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head 143b8f8f6eb80181bc6d0c18619f6387762e27ac, but the PR head is now 0a3b5eb8f0370d6a100d8e4c82522caa03b51b22. Its old verdict and PR readiness labels are no longer current.

Next step
Comment @clawsweeper re-review when the current head is ready; pushes after the first review are not reviewed automatically.

Review history (1 earlier review cycle)
  • reviewed 2026-11-14T20:57:58.840Z sha 143b8f8 :: needs changes before merge. :: [P2] Keep the changed bundles within the existing growth allowance

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 14, 2026
@clawsweeper clawsweeper Bot removed proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. labels Nov 15, 2026

@vyctorbrzezowski vyctorbrzezowski left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@vyctorbrzezowski
vyctorbrzezowski merged commit 8f3d259 into main Nov 15, 2026
123 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the openclaw/action-promises-delete-transcripts branch November 15, 2026 05:13
@vyctorbrzezowski

Copy link
Copy Markdown
Member

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.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 16, 2026
…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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. scripts Repository scripts size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants