The open source coding agent.
TypeScript
fix: make tui session text respect theme fg (#4618) (#4620)
Tyler Limbach35fead2eca3f
diff --git a/packages/opencode/src/cli/cmd/tui/routes/session/index.tsx b/packages/opencode/src/cli/cmd/tui/routes/session/index.tsxindex 6eccef4addf..547b9a7d2a1 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: Assfunction TextPart(props: { last: boolean; part: TextPart; message: AssistantMessage }) {const ctx = use()- const { syntax } = useTheme()+ const { theme, syntax } = useTheme()return (<Show when={props.part.text.trim()}><box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0}>@@ -1109,6 +1109,7 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMesssyntaxStyle={syntax()}content={props.part.text.trim()}conceal={ctx.conceal()}+ fg={theme.text}/></box></Show>