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): Tab 填入推荐词前检查语音忙碌态,防止 race 插入

Shinkud0fd2bfb67d3
diff --git a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx
index b4014c536d..2fd8157db2 100644
--- a/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx
+++ b/apps/desktop/src/renderer/components/new-chat/ChatInput.tsx
@@ -2263,7 +2263,8 @@ export function ChatInput({
!event.repeat &&
!event.isComposing &&
showRecommendationRef.current &&
- recommendedPromptRef.current
+ recommendedPromptRef.current &&
+ !voiceInputBusyRef.current
) {
if (composerFullyEmptyRef.current()) {
event.preventDefault();