Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(im): merge archive target updates and retain IPC errors
xdc22b382b1791
diff --cc apps/desktop/src/main/im/shared/botImConnectionRuntime.tsindex 13e0e437cc,4153691c78..4e5b957c3f--- a/apps/desktop/src/main/im/shared/botImConnectionRuntime.ts+++ b/apps/desktop/src/main/im/shared/botImConnectionRuntime.ts@@@ -792,14 -797,7 +798,14 @@@ export function registerBotImConnectionif (typeof p.sessionId !== 'string' || !/^[A-Za-z0-9_.:-]{1,200}$/.test(p.sessionId)) {throwIpcError('INVALID_PARAMS', 'sessionId is invalid');}- return archiveBotImConnectionLane(p.id, p.sessionId, laneOptions).catch((error: unknown) => {- return archiveBotImConnectionLane(p.id, p.sessionId, laneOptions());++ return archiveBotImConnectionLane(p.id, p.sessionId, laneOptions()).catch((error: unknown) => {+ if (isIpcError(error)) throw error;+ if (error instanceof Error && (error.message === 'ARCHIVE_CAPACITY_REACHED' || error.message === 'OWNER_CHANGED')) {+ throwIpcError('PRECONDITION_FAILED', error.message);+ }+ // Storage errors can include owner-specific absolute paths; keep them in main.+ throwIpcError('INTERNAL', 'LANE_ARCHIVE_FAILED');+ });});}