feat(prompt): add shell mode UI with cancel button, custom icon, and example placeholder (#24105)

This commit is contained in:
Brendan Allan 2026-04-24 14:04:55 +08:00 committed by GitHub
commit 4712f0f3c1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
21 changed files with 40 additions and 29 deletions

View file

@ -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")