Skip to content

Commit da34e9b

Browse files
committed
install agitation propaganda for refactoring
1 parent 2e4aaff commit da34e9b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

packages/opencode/src/cli/cmd/tui/component/prompt/index.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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,

packages/opencode/src/session/prompt.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff 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
))

0 commit comments

Comments
 (0)