mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
Revert "Image tag fix for real this time (#4540)"
This reverts commit eb975bb89c.
This commit is contained in:
parent
d2a61290b9
commit
ec5c96e10d
2 changed files with 2 additions and 7 deletions
|
|
@ -124,10 +124,9 @@ export function Autocomplete(props: {
|
|||
(item): AutocompleteOption => ({
|
||||
display: Locale.truncateMiddle(item, width),
|
||||
onSelect: () => {
|
||||
const mime = Bun.file(item).type || "text/plain"
|
||||
insertPart(item, {
|
||||
type: "file",
|
||||
mime,
|
||||
mime: "text/plain",
|
||||
filename: item,
|
||||
url: `file://${process.cwd()}/${item}`,
|
||||
source: {
|
||||
|
|
|
|||
|
|
@ -638,11 +638,7 @@ export namespace MessageV2 {
|
|||
state: "output-available",
|
||||
toolCallId: part.callID,
|
||||
input: part.state.input,
|
||||
output: part.state.attachments?.length
|
||||
? "[Image content moved to user message]"
|
||||
: part.state.time.compacted
|
||||
? "[Old tool result content cleared]"
|
||||
: part.state.output,
|
||||
output: part.state.time.compacted ? "[Old tool result content cleared]" : part.state.output,
|
||||
callProviderMetadata: part.metadata,
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue