@devries-cameron20 / t3code-1 / commits / 6ff537f03c
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

fix(web): remove projects with archived threads (#8798)

Nick Anisimov committed Sep 2, 2026 at 11:45 UTC 6ff537f03c4df500da7283c0566fe6f8feca709b
2 files changed +11 -7
apps/web/src/components/LegacySidebar.tsx
+6 -4
@@ -1473,13 +1473,13 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
1473 );
1474
1475 const removeProject = useCallback(
1476 - async (member: SidebarProjectGroupMember, options: { force?: boolean } = {}) => {
1476 + async (member: SidebarProjectGroupMember) => {
1477 const memberProjectRef = scopeProjectRef(member.environmentId, member.id);
1478 const result = await deleteProject({
1479 environmentId: member.environmentId,
1480 input: {
1481 projectId: member.id,
1482 - ...(options.force === true ? { force: true } : {}),
1482 + force: true,
1483 },
1484 });
1485 if (result._tag === "Failure") {
@@ -1547,7 +1547,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
1547 ...(member.environmentLabel
1548 ? [`Environment: ${member.environmentLabel}`]
1549 : []),
1550 - "This permanently clears conversation history for those threads.",
1550 + "This permanently clears conversation history for those threads and any archived threads.",
1551 "This removes only this project entry.",
1552 "This action cannot be undone.",
1553 ].join("\n")
@@ -1557,6 +1557,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
1557 ...(member.environmentLabel
1558 ? [`Environment: ${member.environmentLabel}`]
1559 : []),
1560 + "This permanently clears any archived conversation history.",
1561 "This removes only this project entry.",
1562 ].join("\n"),
1563 { variant: "destructive" },
@@ -1565,7 +1566,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
1566 return;
1567 }
1568
1568 - const result = await removeProject(member, { force: true });
1569 + const result = await removeProject(member);
1570 if (result._tag === "Failure" && !isAtomCommandInterrupted(result)) {
1571 const error = squashAtomCommandFailure(result);
1572 toastManager.add(
@@ -1606,6 +1607,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec
1607 `Remove project "${member.title}"?`,
1608 `Path: ${member.workspaceRoot}`,
1609 ...(member.environmentLabel ? [`Environment: ${member.environmentLabel}`] : []),
1610 + "This permanently clears any archived conversation history.",
1611 "This removes only this project entry.",
1612 ].join("\n");
1613 const confirmed = await api.dialogs.confirm(message, { variant: "destructive" });
apps/web/src/components/settings/ProjectSettingsPanel.tsx
+5 -3
@@ -715,8 +715,10 @@ function ProjectDetail({ group }: { group: SidebarProjectSnapshot }) {
715 ]
716 : [`This removes ${members.length} grouped project entries.`]),
717 ...(projectThreads.length > 0
718 - ? ["This permanently clears conversation history for those threads."]
719 - : []),
718 + ? [
719 + "This permanently clears conversation history for those threads and any archived threads.",
720 + ]
721 + : ["This permanently clears any archived conversation history."]),
722 isWholeGroup
723 ? "This removes only the project entries, not the files on disk."
724 : "Other entries in this grouped project are unaffected.",
@@ -738,7 +740,7 @@ function ProjectDetail({ group }: { group: SidebarProjectSnapshot }) {
740 environmentId: member.environmentId,
741 input: {
742 projectId: member.id,
741 - ...(memberThreads.length > 0 ? { force: true } : {}),
743 + force: true,
744 },
745 }),
746 () => undefined,