From d1240dd38df70cbf698e2095b116cb8ea602321c Mon Sep 17 00:00:00 2001 From: Tyler Limbach Date: Fri, 21 Nov 2025 20:00:35 -0600 Subject: [PATCH] fix: make tui session text respect theme fg (#4618) Fixes #4618 In TextPart (packages/opencode/src/cli/cmd/tui/routes/session/index.tsx), pass fg={theme.text} to the assistant block, consistent with other code views. Tested that this fixes the markdown table cell rendering color to respect the rest of the theme, and did not notice any issues with coloring in light or dark mode with several themes. --- packages/opencode/src/cli/cmd/tui/routes/session/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 ba4da4d214e..aafc6f4948b 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1110,7 +1110,7 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass function TextPart(props: { last: boolean; part: TextPart; message: AssistantMessage }) { const ctx = use() - const { syntax } = useTheme() + const { theme, syntax } = useTheme() return ( @@ -1121,6 +1121,7 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess syntaxStyle={syntax()} content={props.part.text.trim()} conceal={ctx.conceal()} + fg={theme.text} />