mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-28 14:10:37 +00:00
`ArtifactFileDetail` and `loadArtifactContentFromToolCall` re-parsed `write-file:` URLs with `new URL` + `decodeURIComponent` after `parseWriteFileArtifact` had already rejected malformed values. The panel restores its selection from session storage and only type-checks it as a string, so a stale or hand-edited `write-file:%E0%A4%A` (or `write-file://[`) threw `URIError`/`TypeError` during render. Export the guarded parser and read `path` / `tool_call_id` from one parsed result in both places; a rejected URL degrades to the raw string or `undefined` instead of taking the panel down.