Skip to content

Commit b6bd236

Browse files
Apply PR #18551: Upgrade opentui to 0.1.90
2 parents 573a400 + 65e16a2 commit b6bd236

4 files changed

Lines changed: 15 additions & 13 deletions

File tree

bun.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/opencode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@
103103
"@opencode-ai/sdk": "workspace:*",
104104
"@opencode-ai/util": "workspace:*",
105105
"@openrouter/ai-sdk-provider": "1.5.4",
106-
"@opentui/core": "0.1.88",
107-
"@opentui/solid": "0.1.88",
106+
"@opentui/core": "0.1.90",
107+
"@opentui/solid": "0.1.90",
108108
"@parcel/watcher": "2.5.1",
109109
"@pierre/diffs": "catalog:",
110110
"@solid-primitives/event-bus": "1.1.2",

packages/opencode/src/cli/cmd/tui/context/theme.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ export function tint(base: RGBA, overlay: RGBA, alpha: number): RGBA {
428428
function generateSystem(colors: TerminalColors, mode: "dark" | "light"): ThemeJson {
429429
const bg = RGBA.fromHex(colors.defaultBackground ?? colors.palette[0]!)
430430
const fg = RGBA.fromHex(colors.defaultForeground ?? colors.palette[7]!)
431-
const transparent = RGBA.fromInts(0, 0, 0, 0)
431+
const transparent = RGBA.fromValues(bg.r, bg.g, bg.b, 0)
432432
const isDark = mode == "dark"
433433

434434
const col = (i: number) => {

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1471,6 +1471,8 @@ function TextPart(props: { last: boolean; part: TextPart; message: AssistantMess
14711471
streaming={true}
14721472
content={props.part.text.trim()}
14731473
conceal={ctx.conceal()}
1474+
fg={theme.markdownText}
1475+
bg={theme.background}
14741476
/>
14751477
</Match>
14761478
<Match when={!Flag.OPENCODE_EXPERIMENTAL_MARKDOWN}>

0 commit comments

Comments
 (0)