Skip to content
TypeScript

fix(web): project removal says provider sessions are kept (#22867)

Josh McKinney6b276f5c4086
diff --git a/apps/web/src/components/settings/ProjectSettingsPanel.logic.test.ts b/apps/web/src/components/settings/ProjectSettingsPanel.logic.test.ts
index 52d4fe6c2f3..6f8ef830daf 100644
--- a/apps/web/src/components/settings/ProjectSettingsPanel.logic.test.ts
+++ b/apps/web/src/components/settings/ProjectSettingsPanel.logic.test.ts
@@ -29,7 +29,7 @@ describe("project removal confirmation", () => {
});
expect(plan.projectThreads).toHaveLength(1);
expect(plan.confirmationMessage).toBe(
- 'Remove checkout "Repo" and delete its 1 thread?\nPath: /work/repo\nEnvironment: Local\nThis permanently clears conversation history for those threads and any archived threads.\nOther entries in this grouped project are unaffected.\nThis action cannot be undone.',
+ 'Remove checkout "Repo" and delete its 1 thread?\nPath: /work/repo\nEnvironment: Local\nThose threads and any archived threads are deleted from T3 Code. Provider sessions are kept.\nOther entries in this grouped project are unaffected.\nThis action cannot be undone.',
);
});
@@ -47,7 +47,7 @@ describe("project removal confirmation", () => {
"Other entries in this grouped project are unaffected.",
);
expect(plan.confirmationMessage).toContain(
- "This permanently clears any archived conversation history.",
+ "Any archived threads are deleted from T3 Code. Provider sessions are kept.",
);
});
diff --git a/packages/client-runtime/src/state/projectRemoval.ts b/packages/client-runtime/src/state/projectRemoval.ts
index 157c0901b12..09c65a772e6 100644
--- a/packages/client-runtime/src/state/projectRemoval.ts
+++ b/packages/client-runtime/src/state/projectRemoval.ts
@@ -38,8 +38,10 @@ export function planProjectRemoval<
]
: [`This removes ${members.length} grouped project entries.`]),
...(threadCount > 0
- ? ["This permanently clears conversation history for those threads and any archived threads."]
- : ["This permanently clears any archived conversation history."]),
+ ? [
+ "Those threads and any archived threads are deleted from T3 Code. Provider sessions are kept.",
+ ]
+ : ["Any archived threads are deleted from T3 Code. Provider sessions are kept."]),
isWholeGroup && !hasOtherMembers
? "This removes only the project entries, not the files on disk."
: "Other entries in this grouped project are unaffected.",