Repository navigation
Replies: 5 comments
|
I have a working patch for this up at master...dvic:herdr:dvic/patch-open-url, seems to be working quite well! @ogulcancelik if there is interest for such a feature i can look in more detail at it and polish it more, but I can imagine that you want to work yourself on such a large change to the codebase, let me know! |
|
Hitting this too, from a slightly different angle than the original post: my herdr server runs on a headless Linux box that I attach to with For agent work this comes up constantly: PR links, CI runs, localhost dev servers, docs. Right now the only workaround is copying every URL out by hand. The remote case feels like more than a preference to me: (Related: I filed #2903 for the silent-failure and zombie side of this, which was accepted as a bug — so this code path is being touched right now.) |
|
I run into this every day too. I use herdr --remote from Ghostty on my MacBook to a Linux server, and when an agent posts a PR link or a localhost URL, clicking it doesn't open it on my laptop. I use cmd+shift-click, because the terminal handles the click instead of passing it to herdr. It's another keybind to remember, though. Copying text already works great. |
|
Another data point, from the opposite setup as the headless case above: my In that setup the failure mode is silent success on the wrong machine. Agents in panes (Claude Code here) open URLs programmatically via Verified on the server side — both test opens landed in the server's running chromium: So a bridge would ideally cover programmatic opens from inside managed panes too, not just routing pane clicks — e.g. herdr injecting a |
|
Another concrete use case for this is an explicit plugin action that opens a web UI. TreeTop provides a Herdr plugin menu with task-specific actions. Some actions start terminal tools, while others should open URLs such as OpenCode Web, VS Code Web, or a task preview. With the Herdr client on my laptop attached to a remote Linux server, the plugin command runs remotely, so the OS browser opener targets the wrong machine (or a headless machine) instead of the laptop where I selected the action. The desired behavior is for a user-invoked plugin action to ask the currently attached Herdr client to open a validated HTTP(S) URL using the same local browser behavior Herdr already uses for Ctrl/Cmd-clicked links. A clear failure when no capable client is attached would be fine. This is narrower than the general client-local actions proposal in #3564: no arbitrary local command execution, just opening a safe web URL on the viewing client. |
Uh oh!
There was an error while loading. Please reload this page.
idea / problem
I realized that some of my plugins/shortcuts that open browser urls (like opening PR) don't work when using
herdr --remote ..., because xdg/opening is not locally on the client.requested change
Add a feature similar to clipboard write event for opening urls.
why you want this
it makes the experience between local and remote herdr more uniform :)
All reactions