From 35fead2eca3f2159ba30c5f23d91b6682b367ad4 Mon Sep 17 00:00:00 2001 From: Tyler Limbach <63261198+tylimbach@users.noreply.github.com> Date: Sun, 23 Nov 2025 01:34:31 -0600 Subject: [PATCH] fix: make tui session text respect theme fg (#4618) (#4620) --- 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 6eccef4ad..547b9a7d2 100644 --- a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx @@ -1098,7 +1098,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 ( @@ -1109,6 +1109,7 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess syntaxStyle={syntax()} content={props.part.text.trim()} conceal={ctx.conceal()} + fg={theme.text} />