From 2fbb49ac30852325390b23c5e321fa7d87d6963e Mon Sep 17 00:00:00 2001 From: Dax Raad Date: Mon, 10 Nov 2025 00:08:05 -0500 Subject: [PATCH] tui: render reasoning parts with syntax highlighting instead of plain text --- .../src/cli/cmd/tui/routes/session/index.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 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 50bf21e0..c7f08014 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -945,7 +945,8 @@ const PART_MAPPING = { } function ReasoningPart(props: { part: ReasoningPart; message: AssistantMessage }) { - const { theme } = useTheme() + const { theme, syntax } = useTheme() + const ctx = use() return ( - {props.part.text.trim()} +