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)) }