summaryrefslogtreecommitdiffhomepage
path: root/packages/app/src/components/prompt-input
diff options
context:
space:
mode:
authorBrendan Allan <[email protected]>2026-04-24 14:04:55 +0800
committerGitHub <[email protected]>2026-04-24 14:04:55 +0800
commit4712f0f3c185fc3a348e2609689130fd2d901954 (patch)
tree7a05f5b581360ff959a6eb32708db2f81b80ddca /packages/app/src/components/prompt-input
parent6c1268f3b18ed289bc524ed10add8c3caa6131d2 (diff)
downloadopencode-4712f0f3c185fc3a348e2609689130fd2d901954.tar.gz
opencode-4712f0f3c185fc3a348e2609689130fd2d901954.zip
feat(prompt): add shell mode UI with cancel button, custom icon, and example placeholder (#24105)
Diffstat (limited to 'packages/app/src/components/prompt-input')
-rw-r--r--packages/app/src/components/prompt-input/placeholder.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/app/src/components/prompt-input/placeholder.ts b/packages/app/src/components/prompt-input/placeholder.ts
index 395fee51b..6669f1361 100644
--- a/packages/app/src/components/prompt-input/placeholder.ts
+++ b/packages/app/src/components/prompt-input/placeholder.ts
@@ -7,7 +7,7 @@ type PromptPlaceholderInput = {
}
export function promptPlaceholder(input: PromptPlaceholderInput) {
- if (input.mode === "shell") return input.t("prompt.placeholder.shell")
+ if (input.mode === "shell") return input.t("prompt.placeholder.shell", { example: input.example })
if (input.commentCount > 1) return input.t("prompt.placeholder.summarizeComments")
if (input.commentCount === 1) return input.t("prompt.placeholder.summarizeComment")
if (!input.suggest) return input.t("prompt.placeholder.simple")