From b218706f76cd9bd68a9ef5a216705fac5d923c95 Mon Sep 17 00:00:00 2001 From: ollie Date: Sun, 19 Jul 2026 19:02:28 +0200 Subject: [PATCH] remote: use full path to ollie-remote binary SSH non-interactive shells do not source .bashrc/.profile, so ~/.cache/ollie/bin is not in PATH. Use the full path directly. --- pkg/remote/remote.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/remote/remote.go b/pkg/remote/remote.go index 6925d26..bbf054c 100644 --- a/pkg/remote/remote.go +++ b/pkg/remote/remote.go @@ -46,8 +46,9 @@ type Config struct { // Dial opens an SSH connection to the remote host, launches ollie-remote, // and returns a Server ready for tool calls. func Dial(ctx context.Context, cfg Config) (*Server, error) { - // Build the remote command - remoteCmd := fmt.Sprintf("ollie-remote serve --cwd %s", shellEscape(cfg.CWD)) + // Build the remote command — use full path since SSH non-interactive + // shells don't have ~/.cache/ollie/bin in PATH. + remoteCmd := fmt.Sprintf("~/.cache/ollie/bin/ollie-remote serve --cwd %s", shellEscape(cfg.CWD)) if cfg.ToolsPath != "" { remoteCmd += fmt.Sprintf(" --tools %s", shellEscape(cfg.ToolsPath)) }