Skip to content

Commit 6b276f5

Browse files
joshkamaria-rcks
andauthored
fix(web): project removal says provider sessions are kept (#22867)
Co-authored-by: maria-rcks <[email protected]>
1 parent 3776dfb commit 6b276f5

2 files changed

Lines changed: 6 additions & 4 deletions

File tree

‎apps/web/src/components/settings/ProjectSettingsPanel.logic.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe("project removal confirmation", () => {
2929
});
3030
expect(plan.projectThreads).toHaveLength(1);
3131
expect(plan.confirmationMessage).toBe(
32-
'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.',
32+
'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.',
3333
);
3434
});
3535

@@ -47,7 +47,7 @@ describe("project removal confirmation", () => {
4747
"Other entries in this grouped project are unaffected.",
4848
);
4949
expect(plan.confirmationMessage).toContain(
50-
"This permanently clears any archived conversation history.",
50+
"Any archived threads are deleted from T3 Code. Provider sessions are kept.",
5151
);
5252
});
5353

‎packages/client-runtime/src/state/projectRemoval.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,10 @@ export function planProjectRemoval<
3838
]
3939
: [`This removes ${members.length} grouped project entries.`]),
4040
...(threadCount > 0
41-
? ["This permanently clears conversation history for those threads and any archived threads."]
42-
: ["This permanently clears any archived conversation history."]),
41+
? [
42+
"Those threads and any archived threads are deleted from T3 Code. Provider sessions are kept.",
43+
]
44+
: ["Any archived threads are deleted from T3 Code. Provider sessions are kept."]),
4345
isWholeGroup && !hasOtherMembers
4446
? "This removes only the project entries, not the files on disk."
4547
: "Other entries in this grouped project are unaffected.",

0 commit comments

Comments
 (0)