Feature Request: Chat links that open workspace files in the right-side preview pane
Feature Description
Add a supported markdown link format in Hermes WebUI chat messages that opens a workspace file directly in the right-side workspace preview pane.
For example, an assistant could respond with:
[Open product research file](workspace://sample-pantry-product-research-results.md)
or another agreed internal scheme, and clicking the link would call the existing workspace file preview behavior rather than opening the file as a browser attachment/download.
Motivation
Agents often create files in the active workspace, then need to point the user to the result. Today, the assistant can show a path or attach it with MEDIA:/absolute/path, but neither is ideal:
- A plain path is not clickable.
- A
MEDIA: attachment opens/renders as an attachment, not in the workspace pane.
file:// markdown links are rewritten to /api/media?..., which serves the file but does not use the workspace preview pane.
For workflows like client product research, plans, generated reports, markdown summaries, or edited workspace files, the ideal UX is:
- Agent creates/updates a file in the current workspace.
- Agent sends a concise clickable link in chat.
- User clicks the link.
- Hermes WebUI opens that file in the existing right-side workspace preview pane.
This would reduce friction for non-technical users who do not want to hunt through the file tree.
Current Behavior / Findings
While researching the WebUI code, I found:
- The workspace pane already has an
openFile(path) function in static/workspace.js that opens files in the preview pane.
- The file tree calls
openFile(item.path) when a file row is clicked.
- The chat markdown renderer supports normal links and supports
file:// links, but file:// is rewritten through _markdownHref(...) to api/media?path=...&inline=1.
- There does not appear to be a supported chat link scheme that routes a click to
openFile(path).
Proposed Solution
Support a custom internal link scheme for workspace files, such as:
[Open file](workspace://relative/path/to/file.md)
When the user clicks one of these links in a chat message:
- Prevent default navigation.
- Decode the relative workspace path.
- Validate/sanitize the path using the same rules as existing workspace file APIs.
- Call the existing
openFile(path) function.
- Open/show the workspace panel in preview mode if it is currently closed or hidden.
Feature Request: Chat links that open workspace files in the right-side preview pane
Feature Description
Add a supported markdown link format in Hermes WebUI chat messages that opens a workspace file directly in the right-side workspace preview pane.
For example, an assistant could respond with:
or another agreed internal scheme, and clicking the link would call the existing workspace file preview behavior rather than opening the file as a browser attachment/download.
Motivation
Agents often create files in the active workspace, then need to point the user to the result. Today, the assistant can show a path or attach it with
MEDIA:/absolute/path, but neither is ideal:MEDIA:attachment opens/renders as an attachment, not in the workspace pane.file://markdown links are rewritten to/api/media?..., which serves the file but does not use the workspace preview pane.For workflows like client product research, plans, generated reports, markdown summaries, or edited workspace files, the ideal UX is:
This would reduce friction for non-technical users who do not want to hunt through the file tree.
Current Behavior / Findings
While researching the WebUI code, I found:
openFile(path)function instatic/workspace.jsthat opens files in the preview pane.openFile(item.path)when a file row is clicked.file://links, butfile://is rewritten through_markdownHref(...)toapi/media?path=...&inline=1.openFile(path).Proposed Solution
Support a custom internal link scheme for workspace files, such as:
When the user clicks one of these links in a chat message:
openFile(path)function.