diff --git a/app/commit.json b/app/commit.json index 2b7141c..1b5212f 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "6ffcdd8b3c54e2560b327ca1b4f4eb33ba54c0db" } +{ "commit": "7a31db904d19e75a68d6a6db8f72fe7949a6f19b" } diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index db4e435..09f3c16 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -436,15 +436,17 @@ export const BaseChat = React.forwardRef( } event.preventDefault(); - + if (isStreaming) { handleStop?.(); return; } + // ignore if using input method engine if (event.nativeEvent.isComposing) { - return + return; } + handleSendMessage?.(event); } }} diff --git a/app/lib/stores/workbench.ts b/app/lib/stores/workbench.ts index bbd537d..0d46057 100644 --- a/app/lib/stores/workbench.ts +++ b/app/lib/stores/workbench.ts @@ -297,7 +297,6 @@ export class WorkbenchStore { const action = artifact.runner.actions.get()[data.actionId]; - if (!action || action.executed) { return; }