File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
cli/cmd/tui/component/prompt Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,11 @@ export function Prompt(props: PromptProps) {
203203 }
204204 : {
205205 type : "file" as const ,
206+ // NOTE: text/plain is a placeholder that only implies the part is a file and
207+ // not a directory. Binary/image file mentions will be specified as text/plain
208+ // here, like in Autocomplete. There is no actual MIME type detection until the
209+ // simulated ReadTool calls are injected into the prompt. Refer to ReadTool for
210+ // real MIME type handling code.
206211 mime : mention . type === "directory" ? "application/x-directory" : "text/plain" ,
207212 filename : mention . filename ,
208213 url : mention . url ,
Original file line number Diff line number Diff line change @@ -1637,6 +1637,11 @@ export namespace SessionPrompt {
16371637 type : "file" as const ,
16381638 url : mention . url ,
16391639 filename : mention . filename ,
1640+ // NOTE: text/plain is a placeholder that only implies the part is a file and
1641+ // not a directory. Binary/image file mentions will be specified as text/plain
1642+ // here, like in Autocomplete. There is no actual MIME type detection until the
1643+ // simulated ReadTool calls are injected into the prompt. Refer to ReadTool for
1644+ // real MIME type handling code.
16401645 mime : mention . type === "directory" ? "application/x-directory" : "text/plain" ,
16411646 }
16421647 ) )
You can’t perform that action at this time.
0 commit comments