From 5515fff44cfd39a0fcda700896b7b56bbcc99150 Mon Sep 17 00:00:00 2001 From: Caroline di Vittorio <43390382+carolinedivittorio@users.noreply.github.com> Date: Thu, 11 Jun 2026 09:44:10 -0700 Subject: [PATCH] fix: distinguish agent code/shell blocks from user message bubbles (#1497) * fix: distinguish agent code/shell blocks from user message bubbles Code blocks and shell command output shared the same accent bubble background as user message bubbles, making them hard to tell apart at full width. Give them a distinct neutral gray background plus a subtle border. Co-authored-by: open-swe[bot] * fix: apply neutral code bubble to all agent output cards + add second accent Extend the neutral code-bubble background to the remaining agent output cards (files-changed card, reply preview, edited-file diff, todo list, streaming-turn cards) so none of them share the user message bubble background. Introduce a violet --ui-accent-2 used on code/shell header labels so the blocks pop. Co-authored-by: open-swe[bot] --------- Co-authored-by: open-swe[bot] --- ui/src/components/agents/ported/ChatView.tsx | 4 ++-- ui/src/components/agents/ported/CodeBlock.tsx | 4 ++-- ui/src/components/agents/ported/MessageView.tsx | 2 +- ui/src/components/agents/ported/ReplyCard.tsx | 2 +- ui/src/components/agents/ported/ShellCommand.tsx | 4 ++-- ui/src/components/agents/ported/TodoList.tsx | 2 +- ui/src/components/agents/ported/ToolExecution.tsx | 2 +- ui/src/styles/agents.css | 4 ++++ 8 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ui/src/components/agents/ported/ChatView.tsx b/ui/src/components/agents/ported/ChatView.tsx index 01849dd6..11d27d09 100644 --- a/ui/src/components/agents/ported/ChatView.tsx +++ b/ui/src/components/agents/ported/ChatView.tsx @@ -449,7 +449,7 @@ export function ChatView({ tabId }: ChatViewProps) { )} {hasStreamingChangedFiles && (
{streamingChangedFiles.length} file{streamingChangedFiles.length === 1 ? "" : "s"} changed @@ -537,7 +537,7 @@ const LoopManagerBlock = forwardRef(funct {expanded && ( -
+
-
bash
+
bash
$ {command} diff --git a/ui/src/components/agents/ported/TodoList.tsx b/ui/src/components/agents/ported/TodoList.tsx index 0005bb73..e237d575 100644 --- a/ui/src/components/agents/ported/TodoList.tsx +++ b/ui/src/components/agents/ported/TodoList.tsx @@ -54,7 +54,7 @@ export function TodoList({ todos, className = "", runActive = false }: TodoListP const completed = todos.filter((t) => t.status === "completed").length; return ( -
+
-
+
{filePath} diff --git a/ui/src/styles/agents.css b/ui/src/styles/agents.css index bc8dc804..411810b5 100644 --- a/ui/src/styles/agents.css +++ b/ui/src/styles/agents.css @@ -9,7 +9,9 @@ --ui-text-muted: oklch(0.45 0.017 213.2); --ui-text-dim: oklch(0.56 0.021 213.5); --ui-accent: oklch(0.52 0.105 223.128); + --ui-accent-2: oklch(0.52 0.16 295); --ui-accent-bubble: oklch(0.955 0.015 223); + --ui-code-bubble: oklch(0.962 0.002 247.9); --ui-sidebar: oklch(0.987 0.002 197.1); --ui-sidebar-hover: oklch(0.963 0.002 197.1); --ui-success: oklch(0.62 0.17 145); @@ -28,7 +30,9 @@ --ui-text-muted: oklch(0.723 0.014 214.4); --ui-text-dim: oklch(0.56 0.021 213.5); --ui-accent: oklch(0.715 0.143 215.221); + --ui-accent-2: oklch(0.78 0.13 295); --ui-accent-bubble: oklch(0.274 0.04 223); + --ui-code-bubble: oklch(0.248 0.004 228.8); --ui-sidebar: oklch(0.218 0.008 223.9); --ui-sidebar-hover: oklch(0.275 0.011 216.9); --ui-success: oklch(0.62 0.17 145);