fix(rain): keep Goose agent turns on DeepSeek, not Cursor chat bridge.
Memind CI / Test, build, and release guards (push) Failing after 13m25s

Cursor bridge PoC rejects tool calls; Rain and other agent sessions must not
apply it during session provider selection.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
john
2026-09-04 14:33:55 +08:00
parent ab557ac8c7
commit 7cc3fb7f8a
3 changed files with 39 additions and 4 deletions
+17 -4
View File
@@ -1572,7 +1572,7 @@ export function createTkmindProxy({
: null,
},
);
await applySessionLlmProvider(session.id, { userId });
await applySessionLlmProvider(session.id, { userId, intentKind: 'agent_orchestration' });
return session;
}
@@ -2053,7 +2053,14 @@ export function createTkmindProxy({
forceDeepReasoning,
disableImageReading: disableImageReading || visionHandlesThisTurn,
});
await applySessionLlmProvider(sessionId, { userId });
await applySessionLlmProvider(sessionId, {
userId,
intentKind:
userMessage?.metadata?.memindRun?.rainHandoff === true
|| userMessage?.metadata?.memindRun?.rainMode === true
? 'rain'
: 'agent_orchestration',
});
await repairSessionToolHistory(sessionId);
const user = await userAuth.getUserById(userId);
@@ -2432,7 +2439,10 @@ export function createTkmindProxy({
});
return;
}
await applySessionLlmProvider(session.id, { userId: req.currentUser.id });
await applySessionLlmProvider(session.id, {
userId: req.currentUser.id,
intentKind: 'agent_orchestration',
});
}
res.status(upstream.status).json(session);
} catch (err) {
@@ -2517,7 +2527,10 @@ export function createTkmindProxy({
}
}
await applySessionLlmProvider(sessionId, { userId: req.currentUser.id });
await applySessionLlmProvider(sessionId, {
userId: req.currentUser.id,
intentKind: 'agent_orchestration',
});
res.status(upstream.status).json(payload);
} catch (err) {