Skip to content

Commit 35fead2

Browse files
authored
fix: make tui session text respect theme fg (anomalyco#4618) (anomalyco#4620)
1 parent 9bb2efd commit 35fead2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • packages/opencode/src/cli/cmd/tui/routes/session

packages/opencode/src/cli/cmd/tui/routes/session/index.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1098,7 +1098,7 @@ function ReasoningPart(props: { last: boolean; part: ReasoningPart; message: Ass
10981098

10991099
function TextPart(props: { last: boolean; part: TextPart; message: AssistantMessage }) {
11001100
const ctx = use()
1101-
const { syntax } = useTheme()
1101+
const { theme, syntax } = useTheme()
11021102
return (
11031103
<Show when={props.part.text.trim()}>
11041104
<box id={"text-" + props.part.id} paddingLeft={3} marginTop={1} flexShrink={0}>
@@ -1109,6 +1109,7 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess
11091109
syntaxStyle={syntax()}
11101110
content={props.part.text.trim()}
11111111
conceal={ctx.conceal()}
1112+
fg={theme.text}
11121113
/>
11131114
</box>
11141115
</Show>

0 commit comments

Comments
 (0)