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.
This commit is contained in:
parent
adb90e4e7c
commit
b218706f76
|
|
@ -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))
|
||||
}
|
||||
|
|
|
|||
Reference in New Issue