fix(web): delete confirmation no longer says history is cleared #24924
main fromrefs/pull/24924/head·opened View on GitHubProblem#
When you delete a thread, the confirmation says "This permanently clears conversation history for this thread." That isn't what happens. On Orchestrator V2, delete appends a thread.deleted event, sets deleted_at on the thread projection and cancels open work. The thread's messages and turn items stay in statev2.sqlite, and reads filter them out. Main prunes only eligible older events that the projections already cover (#29806).
People delete threads to free space or to get rid of output they don't want kept. The dialog tells them the history is gone when it is still on disk. #17845 has the report, with row counts from three installs in its body and comments.
Change#
The confirmation now says what delete does:
- One thread or side chat: "You can't restore it. Its conversation history stays in T3 Code's database."
- Several threads: "You can't restore them. Their conversation history stays in T3 Code's database."
The new strings replace the old ones in Sidebar (single and bulk delete), useThreadActionMenu (thread header menu), useThreadActions (the archived-threads list) and SideChatPane (deleting a side chat, which uses the same thread delete).
It says "conversation history" on purpose. Delete does remove the thread's terminal history (ResourceCleanupService closes its terminals with deleteHistory: true), so "its history stays" would overclaim in the other direction.
Scope and approval#
Fixes the dialog half of #17845. The issue allows two fixes: make the copy true, or make delete purge the rows. This PR changes the copy because the copy is wrong today, and it leaves retention policy alone. Purging a deleted thread touches projections, fork ancestry and checkpoint refs. Event retention landed in #29806, which keeps projections, so the messages and turn items stay and the new copy stays true. Checkpoint refs of deleted threads are open in #24140. #32378 is an open PR for the other fix: it purges the stored projection rows of threads deleted more than a day ago. If maintainers take that route, the copy should be revised to describe its delayed cleanup and the history kept for forks. This choice awaits maintainer review.
Left unchanged: mobile. Its dialog says the thread "will be permanently deleted, including its terminal history". It makes no claim about conversation history, and terminal history is deleted, so this PR leaves it alone.
Verification#
I ran the same steps on today's main (ba4d01cf7f) first, then on this branch's head (ecf9d1ed50): a web dev build on isolated state named "Test machine", a synthetic project with three Replay (dev) threads started through the test server's CLI, input in T3's Browser panel. Selecting two threads used Ctrl+click events sent from page script in that panel, since its click tool sends no modifier keys.
Sidebar, one thread: main says history is permanently cleared, this branch says it stays.


Sidebar, two threads selected:


Side chat (one message typed in the Browser panel first):


On this branch, the thread header menu's Delete and Settings > Archive > Delete open the same new text:


History stays after delete. I confirmed the side chat delete and the sidebar delete of "Review the README", then read the test database read-only. Both have deleted_at set and keep their messages, turn items and message.updated events.
Main:
$ ./db-counts.sh main-ba4d01cf7f
title deleted_at messages turn_items message_events
------------------------- ------------------------ -------- ---------- --------------
List the README sections. 2026-11-11T05:12:54.249Z 2 4 2
Review the README 2026-11-11T05:13:03.485Z 2 4 2
This branch:
$ ./db-counts.sh head-ecf9d1ed50
title deleted_at messages turn_items message_events
------------------------- ------------------------ -------- ---------- --------------
List the README sections. 2026-11-11T05:15:27.663Z 2 4 2
Review the README 2026-11-11T05:15:35.894Z 2 4 2
vp run check:changed passes on ecf9d1ed50: format, lint, knip, typecheck, 10 test files, React compiler.
Not checked:
- Desktop on ecf9d1ed50, desktop bulk delete, and desktop on macOS and Windows.
- Mobile, which is unchanged.
Prior PRs#
- #15759 by Adamulek123 (closed) wired up projection maintenance and compaction. It kept soft-deleted history on purpose, which is the behavior this copy now describes.
- #22630 by t3dotgg (closed) proposed pruning thread events older than a day. #29806 by juliusmarminge (merged) now prunes events the projections already cover and keeps messages and turn items.
- #32378 by realhasanshoaib (open) purges the projection rows of threads deleted more than a day ago, the other fix #17845 allows.
- #24140 by Zheruel (open) prunes checkpoint refs owned by deleted threads.
Generated with Claude Opus 5.5 in T3 Code Nightly
- 1
github-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:S
Approvability#
Verdict: Approved at
ba106cfMacroscope's review found this PR approvable — This is a small, self-contained copy correction across the existing thread-delete confirmation entry points, with no change to deletion behavior or persistence. A focused test verifies that the confirmation no longer claims conversation history is cleared.
You can add or adjust custom eligibility rules. [Learn more](https://docs.macroscope.com/approvability#example-custom-eligibility-rules).No actionable comments were generated in the recent review.
Walkthrough
-
Delete confirmations for bulk deletion, single threads, and side chats now state that conversation history remains in T3 Code’s database and cannot be restored. The changes update confirmation text; they do not change how the application deletes or retains history.
Changes: Delete confirmations
Layer / File(s) Summary Delete confirmation copy
apps/web/src/components/Sidebar.tsx,apps/web/src/components/chat/SideChatPane.tsx,apps/web/src/hooks/useThreadActionMenu.ts,apps/web/src/hooks/useThreadActions.tsConfirmation messages now state that conversation history remains in the database and cannot be restored. Estimated code review effort: 1 (Trivial) | ~5 minutes
Change: Bug fix · Severity of issue fixed: Low
Possibly related PRs
- pingdotgg/t3code#28842: This PR changes the same web delete confirmations and introduces structured dialog titles and messages.
- pingdotgg/t3code#31127: This PR routes keyboard deletion through
confirmAndDeleteThreadand uses that confirmation method in the thread menu.
Suggested labels:
bugfix
Merge Risk:
Minimal · up toecf9d-
This updates delete confirmation wording so it no longer claims history is permanently cleared. It does not change how deletion or retention works, so merge risk is minimal.
Pre-merge checks:
3 · 1-
Failed checks: 1 inconclusiveCheck name Status Explanation Resolution Description check The description follows the repository template closely. It fills in Problem, Change, Scope and approval, and Verification. The Problem section explains the misleading delete copy and cites #17845. Th…Link the explicit maintainer approval comment for the copy-only direction on #17845, or add a note that the approval exemption applies. The author states that the choice 'awaits maintainer review', so the scope approval is not yet confirmed… Passed checks: 3 passed-
Check name Status Explanation Title check The title clearly and concisely describes the change to the delete-confirmation wording. Linked Issues check #17845permits either purging stored conversation history or correcting the misleading confirmation. This PR updates the single-thread, bulk-thread, archived-thread, and side-chat confirmations to sta…Out of Scope Changes check The changes are limited to delete-confirmation copy in four web files. Each change directly addresses #17845. The PR does not change retention behavior or unrelated functionality.Full details: Linked Issues check
-
Explanation
#17845permits either purging stored conversation history or correcting the misleading confirmation. This PR updates the single-thread, bulk-thread, archived-thread, and side-chat confirmations to state that the conversation history remains in T3 Code’s database and deletion cannot be restored. This implements the copy-correction option. The issue does not require a purge or a specific automated test.
-
Full details: Description check
-
Explanation
The description follows the repository template closely. It fills in Problem, Change, Scope and approval, and Verification. The Problem section explains the misleading delete copy and cites
#17845. The Change section lists the new strings and each file touched. Scope and approval links#17845,#29806,#32378and#24140, and explains why the copy route was chosen over a purge. Verification gives before/after screenshots for every changed dialog, database row counts from main and the branch, and the check command result. It also states what was not checked. Two gaps remain. The title is not a conventional commit title in the template's style, since the PR title is outside this description. The template asks for the agent model and harness at the end, and the author gives 'Claude Opus 5.5 in T3 Code Nightly', which satisfies that. Approval for scope is referenced through#17845but the description does not link an explicit maintainer approval comment; it says the choice 'awaits maintainer review'. That is a possible scope and approval gap under the template.Resolution
Link the explicit maintainer approval comment for the copy-only direction on
#17845, or add a note that the approval exemption applies. The author states that the choice 'awaits maintainer review', so the scope approval is not yet confirmed. Once that approval is linked, the description meets the template.
-
Finishing Touches
-
Generate unit tests (beta)
-
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info-
Run configuration-
- Source mode: Auto
- Repository: pingdotgg/t3code
- Branch: main
- File: .coderabbit.config.ts
- Commit: d313b2a
- Layers: Repository TS config
- Review profile: CHILL
- Plan: Advanced
- Run ID:
e8a60a80-1227-4f66-b0b8-ddd14ffd14dd
Commits-
Reviewing files that changed from the base of the PR and between 7d68fbbf23c5df04f6b40a1a8f6fc482c024ec01 and ecf9d1ed50af84508c37eb9eb1dc30ecf616f1c5.
Files selected for processing: 4-
apps/web/src/components/Sidebar.tsxapps/web/src/components/chat/SideChatPane.tsxapps/web/src/hooks/useThreadActionMenu.tsapps/web/src/hooks/useThreadActions.ts
Files skipped from review as they are similar to previous changes: 4-
- apps/web/src/components/chat/SideChatPane.tsx
- apps/web/src/hooks/useThreadActionMenu.ts
- apps/web/src/components/Sidebar.tsx
- apps/web/src/hooks/useThreadActions.ts
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.
-
-
Note
Written by
gpt-6.1-solon behalf of MariaVerified in a real dev environment#
Verified unchanged head
7d68fbbf23c5df04f6b40a1a8f6fc482c024ec01on a Linux Boat VM, using the real Vite/server app, repository Playwright, and/usr/bin/google-chrome.- Reproduced on
github/main(7195b69954) in a separate worktree. Added a real git project through the UI and completed a Codexgpt-6.1-solturn. The delete dialog claimed conversation history was permanently cleared, but confirming deletion left both messages in SQLite. - On the PR, reused a snapshot of that app-created conversation for matching screenshots, then completed another real Codex
gpt-6.1-solturn and a side chat turn. No mocks, fixtures, or demo provider. - Opened all five changed confirmations: sidebar single delete, sidebar bulk delete of two threads, thread header delete, Settings > Archive delete, and side chat delete. Each states that conversation history stays in the database.
- Cancel preserved the conversation. Archive followed by Unarchive restored it with both real provider responses intact. Confirmed thread deletion removed it from the UI across reloads; SQLite still retained the conversation, matching the new wording.
vp run check:changed 575579d68ac4bae09f8426a345d4a3eac1e90c67passed throughblacksmith-check: format, lint, knip, affected typechecks, 199 tests in eight files, and four compiler checks. Installed the missing Chromium browser on the remote worker before the successful run.
Read-only SQLite checks after confirming deletion:
main: deleted_at = 2026-11-01T05:46:33.596Z; 2 messages remain PR: deleted_at = 2026-11-01T05:53:17.068Z; 4 messages remain user Reply exactly: retention verification ready. Do not use tools or change files. assistant retention verification ready. user Reply exactly: pr provider path confirmed. Do not use tools or change files. assistant pr provider path confirmed. client: deleted thread absent after reload = trueBefore, main:

After, same conversation on the PR:

Cancel preserves the conversation, then Confirm deletes it:




Not verified#
Native desktop shells, iOS/Android, remote relay/tunnel connections, and other providers were not exercised. Bulk, archive-list, and side-chat confirmations were opened and canceled; their destructive completion paths were not separately exercised. No claim of history purging or terminal-history cleanup verification. The archived-thread dialog's existing generic title, "this thread", remains outside this copy-only change.
- Reproduced on
Note
🤖 Opus 5.5 replying on behalf of Victor.
The branch now includes current main through merge commit ecf9d1ed50. It merged with no conflicts, and the diff against main is still the same five confirmation strings in four web files.
This PR and #32378 take the two routes #17845 allows. This one changes only the web delete confirmations so they describe the current soft delete. #32378 changes only the server, purging the stored projection rows of threads deleted more than a day ago, and leaves the dialog text as it is. If #32378 lands, this copy would need to be revised to describe its delayed cleanup and the history kept for forks.
The behavior verified earlier is unchanged by the merge. On the merged head, all five confirmations (sidebar single, sidebar bulk, thread header, Settings > Archive, side chat) show the new text. After Confirm, the deleted thread has
deleted_atset and its messages and turn items are still in the database.tanstack-source added labelsbug
only21mil(GitHub profile, opens in a new tab) linked this to fix #17845
Note
🤖 Opus 5.5 replying on behalf of Victor.
Closing this: it is not a bug fix, and this repository now takes only bug fixes from outside contributors. The branch stays on my fork if it is useful.
only21mil(GitHub profile, opens in a new tab) closed this
Sign in to join this conversation.
macroscopeapp[bot](GitHub profile, opens in a new tab) approved these changes