@@ -12,6 +12,7 @@ import { DialogSelectModelUnpaidV2 } from "@/components/dialog-select-model-unpa
1212import type { PromptInputProps } from "@/components/prompt-input/contracts"
1313import { normalizePromptHistoryEntry , promptLength , type PromptHistoryComment } from "@/components/prompt-input/history"
1414import { createPersistedPromptInputHistory } from "@/components/prompt-input/history-store"
15+ import { promptDesignPlaceholder , promptPlaceholder } from "@/components/prompt-input/placeholder"
1516import { createPromptSubmit } from "@/components/prompt-input/submit"
1617import { selectionFromLines , type SelectedLineRange , useFile } from "@/context/file"
1718import { useComments } from "@/context/comments"
@@ -194,7 +195,16 @@ export function usePromptInputV2Controller(props: PromptInputV2ControllerProps):
194195 return text . trim ( ) . length === 0 && attachments ( ) . length === 0 && commentCount ( ) === 0
195196 } )
196197 const stopping = createMemo ( ( ) => working ( ) && blank ( ) )
197- const designPlaceholder = ( ) => ( mode ( ) === "shell" ? "git status" : "Ask anything, / for commands, @ for context..." )
198+ const placeholder = createMemo ( ( ) =>
199+ promptPlaceholder ( {
200+ mode : mode ( ) ,
201+ commentCount : commentCount ( ) ,
202+ example : mode ( ) === "shell" ? "git status" : "" ,
203+ suggest : false ,
204+ t : ( key , params ) => language . t ( key as Parameters < typeof language . t > [ 0 ] , params as never ) ,
205+ } ) ,
206+ )
207+ const designPlaceholder = ( ) => promptDesignPlaceholder ( mode ( ) , placeholder ( ) )
198208
199209 const historyComments = ( ) => {
200210 const byID = new Map ( comments . all ( ) . map ( ( item ) => [ `${ item . file } \n${ item . id } ` , item ] as const ) )
0 commit comments