Revert "Image tag fix for real this time (#4540)"
Some checks are pending
deploy / deploy (push) Waiting to run
format / format (push) Waiting to run
snapshot / publish (push) Waiting to run
test / test (push) Waiting to run
Update Nix Hashes / update (push) Waiting to run

This reverts commit eb975bb89c.
This commit is contained in:
Aiden Cline 2025-11-20 14:14:02 -06:00
parent d2a61290b9
commit ec5c96e10d
2 changed files with 2 additions and 7 deletions

View file

@ -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: {

View file

@ -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,
})
}