fix: make tui session text respect theme fg (#4618) (#4620)

This commit is contained in:
Tyler Limbach 2025-11-23 01:34:31 -06:00 committed by GitHub
parent 9bb2efd3ef
commit 35fead2eca
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 (
<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: AssistantMess
syntaxStyle={syntax()}
content={props.part.text.trim()}
conceal={ctx.conceal()}
fg={theme.text}
/>
</box>
</Show>