Skip to content

Commit eb848b7

Browse files
committed
fix(web): project removal says provider sessions are kept
1 parent 688ee52 commit eb848b7

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

‎apps/web/src/components/LegacySidebar.tsx‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1513,7 +1513,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
15131513
...(member.environmentLabel
15141514
? [`Environment: ${member.environmentLabel}`]
15151515
: []),
1516-
"This permanently clears conversation history for those threads and any archived threads.",
1516+
"Those threads and any archived threads are deleted from T3 Code. Provider sessions are kept.",
15171517
"This removes only this project entry.",
15181518
"This action cannot be undone.",
15191519
].join("\n")
@@ -1523,7 +1523,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
15231523
...(member.environmentLabel
15241524
? [`Environment: ${member.environmentLabel}`]
15251525
: []),
1526-
"This permanently clears any archived conversation history.",
1526+
"Any archived threads are deleted from T3 Code. Provider sessions are kept.",
15271527
"This removes only this project entry.",
15281528
].join("\n"),
15291529
{ variant: "destructive" },
@@ -1571,7 +1571,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
15711571
`Remove project "${member.title}"?`,
15721572
`Path: ${member.workspaceRoot}`,
15731573
...(member.environmentLabel ? [`Environment: ${member.environmentLabel}`] : []),
1574-
"This permanently clears any archived conversation history.",
1574+
"Any archived threads are deleted from T3 Code. Provider sessions are kept.",
15751575
"This removes only this project entry.",
15761576
].join("\n");
15771577
const confirmed = await api.dialogs.confirm(message, { variant: "destructive" });

‎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
@@ -35,8 +35,10 @@ export function planProjectRemoval<
3535
]
3636
: [`This removes ${members.length} grouped project entries.`]),
3737
...(projectThreads.length > 0
38-
? ["This permanently clears conversation history for those threads and any archived threads."]
39-
: ["This permanently clears any archived conversation history."]),
38+
? [
39+
"Those threads and any archived threads are deleted from T3 Code. Provider sessions are kept.",
40+
]
41+
: ["Any archived threads are deleted from T3 Code. Provider sessions are kept."]),
4042
isWholeGroup && !hasOtherMembers
4143
? "This removes only the project entries, not the files on disk."
4244
: "Other entries in this grouped project are unaffected.",

0 commit comments

Comments
 (0)