From e4142a6def95ffbfe4d349bc583867d076ea5b84 Mon Sep 17 00:00:00 2001 From: David Kaya Date: Sat, 28 Mar 2026 23:34:58 +0100 Subject: [PATCH] refactor: move Terminal and Prompts pills into composer Declutter the pill row above the chat composer by relocating Terminal and Prompts pills from the session-config rows into the composer's bottom action bar (left side). The session-config row now only shows session-scoped controls: Tools, Approval, Model, and Thinking. The relocated pills use a lighter, borderless style matching the inner-composer aesthetic alongside the existing Attach, Plan mode, and Send buttons. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- src/renderer/components/ChatPane.tsx | 52 +++++++++---------- src/renderer/components/chat/InlinePills.tsx | 8 +-- .../components/chat/InlinePromptPill.tsx | 4 +- 3 files changed, 30 insertions(+), 34 deletions(-) diff --git a/src/renderer/components/ChatPane.tsx b/src/renderer/components/ChatPane.tsx index 95b5d49..6b6dc57 100644 --- a/src/renderer/components/ChatPane.tsx +++ b/src/renderer/components/ChatPane.tsx @@ -488,14 +488,6 @@ export function ChatPane({ {/* Session config pills — tools/approval left, model/reasoning right */} {isSingleAgent && (
- {onTerminalToggle && ( - - )} {hasConfigurableTools && onUpdateSessionTooling && ( - {onTerminalToggle && ( - - )} {hasConfigurableTools && onUpdateSessionTooling && ( )} - {/* Prompt files pill */} - {!isScratchpad && promptFiles.length > 0 && ( -
- void onSend(content)} - promptFiles={promptFiles} - /> -
- )} - {/* Attachment preview */} {pendingAttachments.length > 0 && (
@@ -643,7 +616,29 @@ export function ChatPane({ : 'Message...' } > -
+ {/* Bottom action bar: left = shortcuts, right = buttons */} +
+ {/* Left: quick actions */} +
+ {onTerminalToggle && ( + + )} + {!isScratchpad && promptFiles.length > 0 && ( + void onSend(content)} + promptFiles={promptFiles} + /> + )} +
+ + {/* Right: attach, plan mode, send */} +
{/* Attachment picker */} +
{isPlanMode && !isSessionBusy && ( diff --git a/src/renderer/components/chat/InlinePills.tsx b/src/renderer/components/chat/InlinePills.tsx index bfaf2f6..cfa8ec6 100644 --- a/src/renderer/components/chat/InlinePills.tsx +++ b/src/renderer/components/chat/InlinePills.tsx @@ -677,17 +677,17 @@ export function InlineTerminalPill({ return ( ); diff --git a/src/renderer/components/chat/InlinePromptPill.tsx b/src/renderer/components/chat/InlinePromptPill.tsx index 0eee617..a24a48b 100644 --- a/src/renderer/components/chat/InlinePromptPill.tsx +++ b/src/renderer/components/chat/InlinePromptPill.tsx @@ -66,14 +66,14 @@ export function InlinePromptPill({ {open && !disabled && (