GeezerVison is showing github.com — fix(web): delete confirmation no longer says history is cleared by only21mil · Pull Request #24924 · pingdotgg/t3code
Conversation
only21mil
commented
Oct 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Problem
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 (ba4d01c) first, then on this branch's head (ecf9d1e): 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 ecf9d1e: format, lint, knip, typecheck, 10 test files, React compiler.
Not checked:
- Desktop on ecf9d1e, desktop bulk delete, and desktop on macOS and Windows.
- Mobile, which is unchanged.
Prior PRs
Generated with Claude Opus 5.5 in T3 Code Nightly
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Approvability
Verdict: Approved at ba106cf
Macroscope'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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
coderabbitai
Bot
commented
Oct 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|

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.ts |
Confirmation 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
confirmAndDeleteThread and uses that confirmation method in the thread menu.
Suggested labels: bugfix
Merge Risk: Minimal · up to ecf9d
-
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 inconclusive
| Check 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 |
 |
#17845 permits 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
#17845 permits 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, #32378 and #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 #17845 but 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)
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info
-
Run configuration
-
Commits
-
Reviewing files that changed from the base of the PR and between 7d68fbb and ecf9d1e.
Files selected for processing: 4
-
apps/web/src/components/Sidebar.tsx
apps/web/src/components/chat/SideChatPane.tsx
apps/web/src/hooks/useThreadActionMenu.ts
apps/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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Deleting a thread marks it deleted and stops its work, but its events
and projection rows stay in the database. The confirmation said it
"permanently clears conversation history". It now says the thread
can't be restored and its history stays in T3 Code's database.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deleting a thread also removes its terminal history, so "its history
stays" overstated what is kept. Name conversation history, and say
plainly that a deleted thread can't be restored.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The test only checked dialog wording, which the testing guide says to
leave out of tests. The before/after captures prove the copy change.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Deleting a side chat uses the same soft delete as any thread, so its
confirmation made the same false claim that history is cleared.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
maria-rcks
commented
Nov 1, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Note Written by gpt-6.1-sol on behalf of Maria
Verified in a real dev environment
Verified unchanged head 7d68fbbf23c5df04f6b40a1a8f6fc482c024ec01 on 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 Codex gpt-6.1-sol turn. 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-sol turn 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 575579d68ac4bae09f8426a345d4a3eac1e90c67 passed through blacksmith-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 = true
Before, 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.
|
only21mil reacted with thumbs up emoji
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Note 🤖 Opus 5.5 replying on behalf of Victor.
The branch now includes current main through merge commit ecf9d1e. 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_at set and its messages and turn items are still in the database.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
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.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
size:S
10-29 changed lines (additions + deletions).
vouch:unvouched
Author is not yet trusted in the VOUCHED list.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|