Skip to content

Commit f960bff

Browse files
tahierhussainclaude
andcommitted
fix: address code review feedback
- Add explicit default `= false` for isResponseStreaming in MonacoPromptInput and DefaultPromptInput - Disable SendButton when isPromptRunning to prevent concurrent prompt submission 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 0e1b610 commit f960bff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

frontend/src/ide/chat-ai/DefaultPromptInput.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { Sender } from "@ant-design/x";
66
function DefaultPromptInput({
77
value,
88
isPromptRunning,
9-
isResponseStreaming,
9+
isResponseStreaming = false,
1010
onSenderChange,
1111
onSubmit,
1212
onCancel,
@@ -52,7 +52,7 @@ function DefaultPromptInput({
5252
/>
5353
}
5454
shape="default"
55-
disabled={!value}
55+
disabled={!value || isPromptRunning}
5656
className={shouldHighlightSend ? "onboarding-send-highlight" : ""}
5757
/>
5858
</Tooltip>

frontend/src/ide/chat-ai/MonacoPromptInput.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const MonacoPromptInput = memo(function MonacoPromptInput({
1212
value,
1313
editorHeight,
1414
isPromptRunning,
15-
isResponseStreaming,
15+
isResponseStreaming = false,
1616
onEditorMount,
1717
onMonacoChange,
1818
onSubmit,

0 commit comments

Comments
 (0)