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
feat(inspector): let run scripts declare their Open menu URL
Helmor derives the Run tab's Open menu by regex-sniffing stdout for
`http://{localhost,127.0.0.1,0.0.0.0}:PORT` banners. That breaks under a
reverse proxy: with portless, Caddy, ngrok, or Tailscale Funnel the
services behind the proxy print ephemeral ports that are neither
reachable nor stable across boots, while the address users actually need
is a named domain nobody prints in a recognizable banner.
Run scripts can now declare it explicitly by printing a marker line:
echo "helmor:url=https://${HELMOR_WORKSPACE_NAME}.localhost"
Declared URLs accept any host (not just the three local forms), and take
precedence over sniffed ones rather than joining them — a script that
declares its address is telling us the sniffed ports are wrong, not that
they are extra options worth offering. Repeating the marker declares
multiple URLs, which surface in the existing 2+ picker.
Detection waits for the terminating newline before committing a match,
since PTY output splits on arbitrary 4096-byte boundaries and a marker
truncated mid-URL still parses as a well-formed one.
No backend change: HELMOR_WORKSPACE_NAME is already exported into the
script environment, so per-workspace interpolation works with no schema
column and no new CLI flag.
Let run scripts declare their own URL for the Open menu by printing `helmor:url=<URL>` on a line of their own — useful for reverse-proxy dev setups (portless, Caddy, ngrok, Tailscale Funnel) where Helmor's sniffed `localhost:PORT` banners are ephemeral ports that aren't reachable through the proxy. Declared URLs accept any host and fully replace the sniffed ones.
0 commit comments