Nothing open on GitHub. Fix merged in #22438 on 9 May 2026. Check it covers your case.
The short answer
0open issues
0open PRs
4items grouped
- Known?
- Yes. 4 related items grouped here, 1 issue already closed.
- Fix event
- A fix was merged to main in PR #22438. Check it covers your case. No release data is tracked.
- Tracker
- The maintainers' tracker marks this
resolved, deciding PR #22438. That is separate from the fix event. - Still open
- Nothing open on GitHub.
These issues and PRs address a missing 'webui' entry in PLATFORM_HINTS that prevented MEDIA rendering hints from being applied in the WebUI. The work involves identifying the gap and adding the missing configuration entry.
Open issues0
Open PRs0
Fixes on record
-
#22438 fix(webui): add platform hint for MEDIA rendering
files:
agent/prompt_builder.py,tests/agent/test_prompt_builder.pyShow the diff
-
agent/prompt_builder.py@@ -564,6 +564,18 @@ def _strip_yaml_frontmatter(content: str) -> str: "code fences). Treat this like a conversation, not a document. Keep responses " "brief and natural." ), + "webui": ( + "You are in the Hermes WebUI, a browser-based chat interface. " + "Full Markdown rendering is supported — headings, bold, italic, code " + "blocks, tables, math (LaTeX), and Mermaid diagrams all render natively. " + "To display local or remote media/files inline, include " + "MEDIA:/absolute/path/to/file or MEDIA:https://... in your response. " + "Local file paths must be absolute. Images, audio (with playback speed " + "controls), video, PDFs, HTML, CSV, diffs/patches, and Excalidraw files " + "render as rich previews. Do not use Markdown image syntax like " + " for local files; local paths are not served that way. " + "Use MEDIA:/absolute/path instead." + ), } # --------------------------------------------------------------------------- -
tests/agent/test_prompt_builder.py@@ -789,6 +789,7 @@ def test_platform_hints_known_platforms(self): assert "cron" in PLATFORM_HINTS assert "cli" in PLATFORM_HINTS assert "api_server" in PLATFORM_HINTS + assert "webui" in PLATFORM_HINTS def test_cli_hint_does_not_suggest_media_tags(self): # Regression: MEDIA:/path tags are intercepted only by messaging @@ -826,6 +827,13 @@ def test_platform_hints_feishu(self): assert "MEDIA:" in hint assert "Markdown" in hint + def test_platform_hints_webui(self): + hint = PLATFORM_HINTS["webui"] + assert "WebUI" in hint + assert "MEDIA:" in hint + assert "Markdown" in hint + assert "absolute" in hint + # ========================================================================= # Environment hints
-
2 PRs closed without merging
From the close comments: merged via another change 1 · superseded by another PR 1
Closed issues · 1
- Closed#21883Bug: PLATFORM_HINTS missing "webui" entry — agent never uses MEDIA: in WebUI
How this cluster was grouped
-
Link evidence (
structural links throughout): every member is connected by structural evidence: shared changed files, or a closing/superseded reference. -
Pairwise link density
0.50: the share of item pairs that carry a link, counting a structural link in full and a relevance-only link at 0.36.1.00means every pair is linked.
Pick up a Lab task
Check whether a fix covers the open issues here, with your own agent. Bring back evidence for maintainers.
Open the LabAt a glance
- Merged PRs
- #22438
- Closed issues
- 1
- Attempts
- 2 PRs closed without merging
- Fix link checked
- 9 May 2026