Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。
TypeScript agentai-agentai-assistantandroidclaude-codecodexelectroniosllmmacosreact-nativetypescriptwindows
fix(provider-group): 启动前绑定超时也保留自动切换
Lizi951e5ef58162
diff --git a/apps/desktop/src/main/provider-group/__tests__/remoteGroup.test.ts b/apps/desktop/src/main/provider-group/__tests__/remoteGroup.test.tsindex 2f32851226..29a26b9175 100644--- a/apps/desktop/src/main/provider-group/__tests__/remoteGroup.test.ts+++ b/apps/desktop/src/main/provider-group/__tests__/remoteGroup.test.ts@@ -488,8 +488,8 @@ describe('old tasks already running on the group computer', () => {expect(h.bindings.get('s1')).toMatchObject({ memberKey: STUDIO.key, groupDeviceId: OWNER });});- it('keeps an existing old-task binding pending when its group read times out before reopening', async () => {- const h = harness({ row: { sdkSessionId: 'native-1' }, live: false });+ it('keeps an existing bound task pending when its group read times out before reopening', async () => {+ const h = harness({ live: false });h.bindings.set('s1', { providerId: 'anthropic', memberKey: OWNER_LOCAL.key, groupDeviceId: OWNER, at: 1 });h.remote.readGroup.mockResolvedValueOnce(undefined);diff --git a/apps/desktop/src/main/provider-group/service.ts b/apps/desktop/src/main/provider-group/service.tsindex 9f62add9c1..c24eecec98 100644--- a/apps/desktop/src/main/provider-group/service.ts+++ b/apps/desktop/src/main/provider-group/service.ts@@ -1184,7 +1184,7 @@ export function createProviderGroupService(deps: ProviderGroupServiceDeps): Prov.catch(() => undefined);const hasRun = Boolean(row.sdkSessionId || (await deps.hasAssistantHistory(sessionId)));if (config === undefined) {- if (!hasRun || deps.hasLiveSession?.(sessionId) !== false) return null;+ if (deps.hasLiveSession?.(sessionId) !== false) return null;const member = pendingMember(existingBinding.memberKey,row.providerId ?? existingBinding.providerId,