You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Chat: local Markdown images in answers still render as file links #2434
Use an agent pane whose working directory contains out/diagram.png.
Have an answer contain .
Open the pane in Chat.
Observe ! plus a file link instead of the picture.
Expected behavior
Show supported local Markdown images inline, as the Codex app does in the reported workflow.
Resolve relative paths against the pane's cwd, and absolute paths / local file:// URIs directly.
Keep unresolved or external references as links, and retain the existing image-size limit.
Diagnosis and proposed fix
Markdown.tsx already has MarkdownImageContext and an asynchronous image renderer.
FileViewer.tsx provides its resolver, but ChatView.tsx does not. With a null context the renderer deliberately uses the link fallback.
Supply Chat with the existing markdownImagePreview resolver through useMachineApi, including the pane ID for stat and file URLs.
Reuse stat-before-load, the 20 MiB inline limit, oversized-image download links, and the existing reserved image layout. No new endpoint or CSP change is needed.
A local patch using this approach successfully rendered two PNGs in an existing conversation. A focused PR will include regression coverage.
Environment
macOS, Apple Silicon
Ovis v0.4.20; source also checked against main at 1a0e441f
Codex conversation containing local Markdown image references
Activity
fix(chat): render local Markdown images inline (#2435)
chore(release): 0.4.21 (#2422)