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(new-chat): 「最近使用」保留 Ultrafast 三态

Zhang Yunjin06a2f734ce5f
diff --git a/apps/desktop/src/renderer/components/new-chat/useUnifiedRowActions.ts b/apps/desktop/src/renderer/components/new-chat/useUnifiedRowActions.ts
index 2f35fc6d71..c56b0e2aa2 100644
--- a/apps/desktop/src/renderer/components/new-chat/useUnifiedRowActions.ts
+++ b/apps/desktop/src/renderer/components/new-chat/useUnifiedRowActions.ts
@@ -447,7 +447,8 @@ export function useUnifiedRowActions(options: UnifiedRowActionsOptions): Unified
modelId: entry.modelId,
agent: config.engine,
...(config.effort ? { effort: config.effort } : {}),
- ...(config.fast ? { fast: true as const } : {}),
+ // 三态:`'ultrafast'` 必须原样存,写成 `true` 会让「最近」里再应用变成普通 Fast。
+ ...(config.fast ? { fast: config.fast } : {}),
});
}
return applied;