From 483189ab46f5a91f13bd4baa6f251c0c3b24be78 Mon Sep 17 00:00:00 2001 From: Ed McConnell Date: Sat, 14 Dec 2024 10:42:28 -0500 Subject: [PATCH] update readme --- app/commit.json | 2 +- app/components/chat/BaseChat.tsx | 6 ++++-- app/lib/stores/workbench.ts | 1 - 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/commit.json b/app/commit.json index 6f1b111..16c4539 100644 --- a/app/commit.json +++ b/app/commit.json @@ -1 +1 @@ -{ "commit": "f87522f106fc8471a864328cf1b484d27490a51b" } +{ "commit": "5cb693c4158e25c581db519a4dc62e79be160b86" } diff --git a/app/components/chat/BaseChat.tsx b/app/components/chat/BaseChat.tsx index 0ed6a30..adbc06c 100644 --- a/app/components/chat/BaseChat.tsx +++ b/app/components/chat/BaseChat.tsx @@ -425,15 +425,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; }