Skip to content

Open-source Grok Bot alternative with a virtual machine that bots can use

Say which Cursor model is in use even when the pin is skipped.

huiyangwu619bec064475
diff --git a/server/drivers/acp/cursor.ts b/server/drivers/acp/cursor.ts
index c8617382a7..e5a52eb8b8 100644
--- a/server/drivers/acp/cursor.ts
+++ b/server/drivers/acp/cursor.ts
@@ -528,9 +528,6 @@ const support = (run: typeof execCli): AcpSupport => ({
if (currentModelId !== modelId) {
try {
await request("session/set_model", { sessionId, modelId });
- if (match && !match.exact) {
- notice(`Cursor offers ${modelId} rather than ${turn.model} in this session, so this conversation uses ${modelId}.`);
- }
} catch (e) {
const err = e as Error & { code?: unknown };
// -32601: no set_model, so the argv pin holds. -32602: not in this namespace; current CLIs
@@ -551,6 +548,10 @@ const support = (run: typeof execCli): AcpSupport => ({
);
}
}
+ // The sentence is about the model this conversation uses, including a later turn that does not call the setter.
+ if (match && !match.exact) {
+ notice(`Cursor offers ${modelId} rather than ${turn.model} in this session, so this conversation uses ${modelId}.`);
+ }
if (fastOption) await setCursorFast(request, sessionId, wantsFast);
},