Repository navigation
Replies: 2 comments
|
Pull request with the prototype and QA evidence: #7318 |
|
Another concrete use case from MDViewer, a Markdown file-panel plugin. On macOS with Paseo 0.16.2, open an agent-generated For this workflow, the acceptance check for #7318 would be: with the native file tab already open, clicking the plugin chip focuses that tab without creating a second one, while keeping the chosen file viewer and any unsaved draft intact. I can help verify that on macOS with a synthetic Markdown fixture if useful. I haven't tested the PR build yet. |
Uh oh!
There was an error while loading. Please reload this page.
What are you trying to do?
Build a plugin that redraws the chat timeline (tool calls, replies, code blocks) and keeps file paths in it clickable the way Paseo's own rows are: a press opens the file in Paseo's file pane, at the line the path names, on desktop and on phones.
How do you do it today?
A timeline renderer only receives
agentId,item,timestamp,theme,hostandlayout. It has no way to open a file in the app:navigation(openAgent,openWorkspace,openBrowser) is not passed to timeline renderers, and none of it opens a file.openPanelopens plugin panels, not the host file pane.openExternalUrlrefuses anything that is not http(s) or mailto.Our plugin falls back to a daemon RPC that reveals the path in the operating system's file manager. That opens a window on the daemon's machine, so on a phone it does nothing useful and the plugin copies the path instead.
Where does Paseo get in the way?
The host already has the whole flow: native reply links and tool cards resolve the path against the agent's directory, open it from the pane that shows the stream (respecting the side-pane preference), jump to the line, open a workspace folder in the explorer, and ignore presses from hidden retained panes. A plugin that replaces those rows loses all of it.
What would a better workflow look like?
Timeline renderers get an optional, stream-bound callback:
pathis absolute or relative to the agent's working directory;lineStart/lineEndare one-based. The app binds it to the stream that renders the item and runs the same opener as native file links, so the file opens on the same host and workspace from the right pane. Plugins feature-detect it on older apps. No protocol or daemon change.A working prototype is on a branch (one commit, with a test and docs): RoundRedDot/paseo@main...RoundRedDot:paseo:feat/plugin-timeline-open-file
On the web build of the prototype, a plugin card opens
src/app.tsat line 12, and in a split layout the file opens from the agent's pane, not the focused one:(Prototype implemented and verified with an AI coding agent on a local web build.)
All reactions