From fb4c2d3d4387a6744cee77fb60babe741bd883dd Mon Sep 17 00:00:00 2001 From: Haileyesus <118998054+blackmammoth@users.noreply.github.com> Date: Mon, 18 May 2026 20:50:56 +0300 Subject: [PATCH] feat: make command modal more compact --- .../view/subcomponents/CommandResultModal.tsx | 107 ++++++++++-------- 1 file changed, 57 insertions(+), 50 deletions(-) diff --git a/src/components/chat/view/subcomponents/CommandResultModal.tsx b/src/components/chat/view/subcomponents/CommandResultModal.tsx index 8faa677b..4e0bbe4e 100644 --- a/src/components/chat/view/subcomponents/CommandResultModal.tsx +++ b/src/components/chat/view/subcomponents/CommandResultModal.tsx @@ -9,7 +9,6 @@ import { Command as CommandIcon, Cpu, Gauge, - Layers3, Package, Search, Server, @@ -345,69 +344,77 @@ function ModelsContent({ }; return ( -
-
-
-

Hard refresh provider catalogs

-

- Bypasses the 3-day backend cache and re-fetches models for every provider. -

-

- Last updated for {providerLabel}: {formatUpdatedAt(currentCache?.updatedAt)} -

-
- -
+
+
+
+
+
+ + {providerLabel} + + + {availableOptions.length} models + +
-
- {hasConcreteSessionId - ? 'Selecting a model stores a session override and applies it on the next response for this session.' - : 'Selecting a model updates the default model used for new turns in this provider.'} - {selectionNotice && {selectionNotice}} -
- -
-
-
-
-
-

Active model

-

{currentModel}

+
+

Active Model

+

+ {currentModel} +

{activeOption?.label && activeOption.label !== currentModel && ( -

{activeOption.label}

+

{activeOption.label}

)} {activeOption?.description && ( -

{activeOption.description}

+

{activeOption.description}

)} {pendingSessionModel && pendingSessionModel !== currentModel && ( -

+

Next response: {pendingSessionModel}

)}
- Live
+ +
+
+

Default

+

{defaultModel}

+
+
+

Updated

+

{formatUpdatedAt(currentCache?.updatedAt)}

+
+
+ +
- - +
+ {hasConcreteSessionId + ? 'Selecting a model stores a session override and applies it on the next response for this session.' + : 'Selecting a model updates the default model used for new turns in this provider.'} + {selectionNotice && {selectionNotice}} +
-
- +
+
+ +
- default: {defaultModel} + {filteredOptions.length} shown
@@ -653,13 +660,13 @@ export default function CommandResultModal({
-

+

{activeMeta?.eyebrow}

-

+

{activeMeta?.title}

-

+

{activeMeta?.subtitle}