Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

fix(provider-group): 本机起不来换下一台时只放掉真正预占过的负载

Lizi491977a1c90c
diff --git a/apps/desktop/src/main/remote-agent/host/runHost.ts b/apps/desktop/src/main/remote-agent/host/runHost.ts
index 5180d7af65..83ac797f25 100644
--- a/apps/desktop/src/main/remote-agent/host/runHost.ts
+++ b/apps/desktop/src/main/remote-agent/host/runHost.ts
@@ -1086,7 +1086,7 @@ export function createRemoteAgentHost(deps: RemoteAgentHostDeps) {
reserve: true,
}).catch(() => null);
if (next?.kind !== 'member' || run.closing) {
- next?.load?.release();
+ if (next && next.kind !== 'unavailable') next.load?.release();
return false;
}
deps.log?.warn('remote agent: this computer did not start the shared task; trying the next computer in the provider group', {