FIX: Hide Stop Button Once Response Streaming Begins#67
Merged
wicky-zipstack merged 3 commits intomainfrom Apr 17, 2026
Merged
Conversation
When a prompt is running, the Stop button was shown throughout the entire process (thought chain + response streaming). Now the Stop button is only shown during the thought chain phase. Once the response starts streaming, the Send button is displayed instead. Changes: - Add isResponseStreaming computed state in ExistingChat.jsx - Thread isResponseStreaming prop through InputPrompt, PromptInput - Update button condition in MonacoPromptInput and DefaultPromptInput 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
| Filename | Overview |
|---|---|
| frontend/src/ide/chat-ai/ExistingChat.jsx | Adds isResponseStreaming useMemo with correct dependencies and passes it down to InputPrompt. |
| frontend/src/ide/chat-ai/InputPrompt.jsx | Threads isResponseStreaming prop with a default of false, correctly covering the NewChat use case. |
| frontend/src/ide/chat-ai/PromptInput.jsx | Passes isResponseStreaming to both child components; no default in destructuring but safe given InputPrompt always provides one. |
| frontend/src/ide/chat-ai/MonacoPromptInput.jsx | Correctly updates button condition and Send button disabled state; default for isResponseStreaming now added. |
| frontend/src/ide/chat-ai/DefaultPromptInput.jsx | Mirrors MonacoPromptInput changes for the default (non-Monaco) input path; both conditions updated consistently. |
Reviews (3): Last reviewed commit: "fix: prevent concurrent submissions in M..." | Re-trigger Greptile
- 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>
Add isPromptRunning to disabled condition to match DefaultPromptInput behavior. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Deepak-Gnanasekar
approved these changes
Apr 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
isResponseStreamingcomputed state to detect when response has started streamingWhy
How
isResponseStreaminguseMemo inExistingChat.jsxthat computes:isPromptRunning && lastMessage?.response?.length > 0isResponseStreamingprop through the component hierarchy:ExistingChat.jsx->InputPrompt.jsx->PromptInput.jsx->MonacoPromptInput.jsx/DefaultPromptInput.jsxisPromptRunningtoisPromptRunning && !isResponseStreamingCan this PR break any existing features. If yes, please list possible items. If no, please explain why. (PS: Admins do not merge the PR without this section filled)
false, soNewChat.jsx(which has no chat messages) works without changesDatabase Migrations
Env Config
Relevant Docs
Related Issues or PRs
Dependencies Versions
Notes on Testing
Screenshots
The "Stop" button is replaced by the "Send" button once the response starts streaming.

Checklist
I have read and understood the Contribution Guidelines.