summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-02 16:59:31 -0600
committerAiden Cline <[email protected]>2025-12-02 16:59:31 -0600
commita4e3451d5cb53e9f5c6186ca28b4c7457057649f (patch)
tree0ca85721ba7d9aad720a92b9a8729737faa2816a
parent53a7c2885bc3d8dc8db25dadd39c57bd9c058311 (diff)
downloadopencode-a4e3451d5cb53e9f5c6186ca28b4c7457057649f.tar.gz
opencode-a4e3451d5cb53e9f5c6186ca28b4c7457057649f.zip
tweak: make message border match color of agent it was sent to
-rw-r--r--packages/opencode/src/cli/cmd/tui/routes/session/index.tsx3
1 files changed, 2 insertions, 1 deletions
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
index b0860c0b8..54020af93 100644
--- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx
@@ -957,13 +957,14 @@ function UserMessage(props: {
pending?: string
}) {
const ctx = use()
+ const local = useLocal()
const text = createMemo(() => props.parts.flatMap((x) => (x.type === "text" && !x.synthetic ? [x] : []))[0])
const files = createMemo(() => props.parts.flatMap((x) => (x.type === "file" ? [x] : [])))
const sync = useSync()
const { theme } = useTheme()
const [hover, setHover] = createSignal(false)
const queued = createMemo(() => props.pending && props.message.id > props.pending)
- const color = createMemo(() => (queued() ? theme.accent : theme.secondary))
+ const color = createMemo(() => (queued() ? theme.accent : local.agent.color(props.message.agent)))
const compaction = createMemo(() => props.parts.find((x) => x.type === "compaction"))