Skip to content

The open source coding agent.

TypeScript

fix: minor ui bug for transparent backgrounds (#4886)

Dorian Karter7d8d3601382c
diff --git a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
index e749c9c1701..ae11fcc2311 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -809,7 +809,8 @@ export function Prompt(props: PromptProps) {
borderColor={highlight()}
customBorderChars={{
...EmptyBorder,
- vertical: "╹",
+ // when the background is transparent, don't draw the vertical line
+ vertical: theme.background.a != 0 ? "╹" : " ",
}}
>
<box