Repository navigation
feat(frontend): condense the prompt composer into one session config surface - #494
Conversation
| {showStopButton && ( | ||
| <button | ||
| onClick={handleStop} | ||
| className="min-h-11 min-w-11 md:min-h-0 md:min-w-0 flex flex-shrink-0 items-center justify-center p-1.5 px-5 md:p-2 md:px-6 rounded-lg transition-all duration-200 active:scale-95 hover:scale-105 bg-destructive hover:bg-destructive/90 text-destructive-foreground border border-destructive/60 hover:border-destructive shadow-md shadow-destructive/30 hover:shadow-destructive/40 ring-1 ring-destructive/20 hover:ring-destructive/30" | ||
| title="Stop" | ||
| > | ||
| <SquareFill className="w-4 h-4 md:w-5 md:h-5" /> | ||
| </button> | ||
| )} |
There was a problem hiding this comment.
Mobile Stop
This PR removes the mobile-only floating Stop from SessionDetail. That button was shown whenever isSessionActive was true. The replacement Stop is rendered only inside the !isVoiceActive part of PromptInput. So on mobile, while a voice conversation is open during an active turn, the composer has no Stop button. Before, mobile always had one. Check that VoiceConversation offers its own way to interrupt the turn, or render Stop outside the voice check.
PR Reviewer Guide 🔍(Review updated until commit bc36df4)Since the last review — 4 findings were open on the previous HEAD
Here are some key observations to aid the review process:
✅ Resolved findingsfrontend/src/components/message/SessionConfigMenu.tsx:633-635ARIA semantics The main and agent views are marked frontend/src/components/message/SessionConfigMenu.tsx:625-631Popover overflow
frontend/src/components/model/ModelPicker.tsx:275-282Dead branch The desktop sidebar and its "all models" list were removed, and |
…n and drop the unreachable model fallback
|
Persistent review updated to latest commit bc36df4 |
User description
Summary
The composer row now carries only what is needed to send a message: the input, the send/mic/stop button, and one session config control.
Tests
Composer, model and session detail command tests are updated; frontend tests, typecheck and lint pass.
PR Type
Enhancement, Tests
Description
Single config surface replaces the composer row controls
Input row keeps only config, textarea and Send/Stop/mic
Wide layouts show a gutter config card with usage
Tests rewritten for config menu, model picker and stop
Diagram Walkthrough
File Walkthrough
5 files
New unified session config menu surfaceCollapse composer controls into single input rowConvert model quick select into embedded pickerAdd Radix popover UI primitiveRemove floating stop and add composer container4 files
Remove IconToggleButton and keep class helperDelete agent quick select dropdownDelete standalone permission toggle componentDelete sandbox dropdown menu component1 files
Add Radix popover dependency9 files
Add permission and sandbox response overridesAdd config surface interaction test suiteUpdate composer layout assertions for config rowRewrite tests for embedded model pickerMove goal assertions into config menuUpdate model command test to config viewAssert a single Stop button now existsExpect config model view from models commandTest single stop button across viewports7 files