From e6d2149d4110f8ccfd9048bb6fd421b1bd999082 Mon Sep 17 00:00:00 2001 From: Sebastian Herrlinger Date: Tue, 28 Oct 2025 13:04:29 +0100 Subject: [PATCH] show textarea placeholder only on home --- .../opencode/src/cli/cmd/tui/component/prompt/index.tsx | 8 ++++++-- packages/opencode/src/cli/cmd/tui/routes/home.tsx | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) 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 7e592f7c6..a79232486 100644 --- a/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx +++ b/packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx @@ -4,7 +4,6 @@ import { TextareaRenderable, MouseEvent, KeyEvent, - SyntaxStyle, PasteEvent, t, dim, @@ -33,6 +32,7 @@ export type PromptProps = { onSubmit?: () => void ref?: (ref: PromptRef) => void hint?: JSX.Element + showPlaceholder?: boolean } export type PromptRef = { @@ -382,7 +382,11 @@ export function Prompt(props: PromptProps) {