Skip to content

The open source coding agent.

TypeScript

fix: input lip visibility for transparent themes (#5544)

Nalin Singh7c1124199ecb
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 784c8648ed3..eefe43d1fee 100644
--- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
+++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx
@@ -873,17 +873,24 @@ export function Prompt(props: PromptProps) {
borderColor={highlight()}
customBorderChars={{
...EmptyBorder,
- vertical: "╹",
+ vertical: theme.backgroundElement.a !== 0 ? "╹" : " ",
}}
>
<box
height={1}
border={["bottom"]}
borderColor={theme.backgroundElement}
- customBorderChars={{
- ...EmptyBorder,
- horizontal: "▀",
- }}
+ customBorderChars={
+ theme.backgroundElement.a !== 0
+ ? {
+ ...EmptyBorder,
+ horizontal: "▀",
+ }
+ : {
+ ...EmptyBorder,
+ horizontal: " ",
+ }
+ }
/>
</box>
<box flexDirection="row" justifyContent="space-between">