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(desktop): 禁用推荐指令模型的短预算推理

DavidShenf5eaed66fe29
diff --git a/apps/desktop/src/main/maker-ipc/__tests__/promptPredictionRevision.test.ts b/apps/desktop/src/main/maker-ipc/__tests__/promptPredictionRevision.test.ts
index eb5918875d..71296581f9 100644
--- a/apps/desktop/src/main/maker-ipc/__tests__/promptPredictionRevision.test.ts
+++ b/apps/desktop/src/main/maker-ipc/__tests__/promptPredictionRevision.test.ts
@@ -235,6 +235,7 @@ describe('prompt prediction completion revision guard', () => {
providerId: 'openrouter',
agentKind: 'codex',
model: 'openai/gpt-5-mini',
+ disableReasoning: true,
systemPrompt: expect.any(String),
}),
);
diff --git a/apps/desktop/src/main/maker-ipc/promptPrediction.ts b/apps/desktop/src/main/maker-ipc/promptPrediction.ts
index 9e4466918a..6d3616d671 100644
--- a/apps/desktop/src/main/maker-ipc/promptPrediction.ts
+++ b/apps/desktop/src/main/maker-ipc/promptPrediction.ts
@@ -334,6 +334,9 @@ export async function generatePromptPrediction(
model: auxiliarySelection.model,
maxTokens: 96,
timeoutMs: 12_000,
+ // Recommendation outputs share a short token budget with provider-native
+ // thinking. Disable it so reasoning-first models still return body text.
+ disableReasoning: true,
systemPrompt,
responseInstructions:
'Output only the predicted next user message — no quotes, markdown, or commentary.',