Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(sharing): abort archive when close fails
DavidShen61e727905bfe
diff --git a/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx b/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsxindex 79763e1d17..f8d6706484 100644--- a/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx+++ b/apps/desktop/src/renderer/features/cc-agent/CCAgentSidebarUpper.tsx@@ -2901,7 +2901,14 @@ function ExpandedView({const closeOwnedSharedTask = useCallback(async (sharedTaskId?: string): Promise<boolean> => {if (!sharedTaskId) return true;try {- await window.electronAPI.sharedTask.account({ action: 'close', sharedTaskId });+ const result = await window.electronAPI.sharedTask.account({ action: 'close', sharedTaskId }) as {+ closed?: unknown;+ failed?: unknown;+ };+ if (!Array.isArray(result?.closed) || !result.closed.includes(sharedTaskId)) {+ toast.error(t('sharedTask.closeFailedToast', { count: 1 }));+ return false;+ }return true;} catch (error) {toast.error(t(sharedTaskErrorKey(error)));