| ... | ... | @@ -1473,13 +1473,13 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec |
| 1473 | 1473 | ); |
| 1474 | 1474 | |
| 1475 | 1475 | const removeProject = useCallback( |
| 1476 | | async (member: SidebarProjectGroupMember, options: { force?: boolean } = {}) => { |
| 1476 | async (member: SidebarProjectGroupMember) => { |
| 1477 | 1477 | const memberProjectRef = scopeProjectRef(member.environmentId, member.id); |
| 1478 | 1478 | const result = await deleteProject({ |
| 1479 | 1479 | environmentId: member.environmentId, |
| 1480 | 1480 | input: { |
| 1481 | 1481 | projectId: member.id, |
| 1482 | | ...(options.force === true ? { force: true } : {}), |
| 1482 | force: true, |
| 1483 | 1483 | }, |
| 1484 | 1484 | }); |
| 1485 | 1485 | if (result._tag === "Failure") { |
| ... | ... | @@ -1547,7 +1547,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec |
| 1547 | 1547 | ...(member.environmentLabel |
| 1548 | 1548 | ? [`Environment: ${member.environmentLabel}`] |
| 1549 | 1549 | : []), |
| 1550 | | "This permanently clears conversation history for those threads.", |
| 1550 | "This permanently clears conversation history for those threads and any archived threads.", |
| 1551 | 1551 | "This removes only this project entry.", |
| 1552 | 1552 | "This action cannot be undone.", |
| 1553 | 1553 | ].join("\n") |
| ... | ... | @@ -1557,6 +1557,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec |
| 1557 | 1557 | ...(member.environmentLabel |
| 1558 | 1558 | ? [`Environment: ${member.environmentLabel}`] |
| 1559 | 1559 | : []), |
| 1560 | "This permanently clears any archived conversation history.", |
| 1560 | 1561 | "This removes only this project entry.", |
| 1561 | 1562 | ].join("\n"), |
| 1562 | 1563 | { variant: "destructive" }, |
| ... | ... | @@ -1565,7 +1566,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec |
| 1565 | 1566 | return; |
| 1566 | 1567 | } |
| 1567 | 1568 | |
| 1568 | | const result = await removeProject(member, { force: true }); |
| 1569 | const result = await removeProject(member); |
| 1569 | 1570 | if (result._tag === "Failure" && !isAtomCommandInterrupted(result)) { |
| 1570 | 1571 | const error = squashAtomCommandFailure(result); |
| 1571 | 1572 | toastManager.add( |
| ... | ... | @@ -1606,6 +1607,7 @@ const SidebarProjectItem = memo(function SidebarProjectItem(props: SidebarProjec |
| 1606 | 1607 | `Remove project "${member.title}"?`, |
| 1607 | 1608 | `Path: ${member.workspaceRoot}`, |
| 1608 | 1609 | ...(member.environmentLabel ? [`Environment: ${member.environmentLabel}`] : []), |
| 1610 | "This permanently clears any archived conversation history.", |
| 1609 | 1611 | "This removes only this project entry.", |
| 1610 | 1612 | ].join("\n"); |
| 1611 | 1613 | const confirmed = await api.dialogs.confirm(message, { variant: "destructive" }); |