fix: use openclaw curl installer to prevent fly ssh hang (#1640)

bun install -g openclaw spawns child processes that keep stdout/stderr
FDs open, preventing fly ssh console from detecting EOF. Replace with
the official curl installer (--no-onboard) which handles Node detection
and cleanup without leaving orphan processes on the pipe.

See: https://docs.openclaw.ai/install

Co-authored-by: Claude <claude@anthropic.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
A 2026-02-21 15:58:05 -08:00 committed by GitHub
parent c55483d16d
commit 09d9f597ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{
"name": "@openrouter/spawn",
"version": "0.5.27",
"version": "0.5.28",
"type": "module",
"bin": {
"spawn": "cli.js"

View file

@ -349,7 +349,7 @@ export const agents: Record<string, AgentConfig> = {
install: () =>
installAgent(
"openclaw",
"source ~/.bashrc && { (bun install -g openclaw >/dev/null 2>&1) || npm install -g openclaw@latest; }",
"curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard",
),
envVars: (apiKey) => [
`OPENROUTER_API_KEY=${apiKey}`,

View file

@ -34,7 +34,7 @@ _parse_args() {
_maybe_inject_error() {
[ -n "${MOCK_ERROR_SCENARIO:-}" ] || return 1
case "$URL" in
*openrouter.ai*|*raw.githubusercontent.com*|*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*opencode*|*zeroclaw*|*pip.pypa.io*|*get.docker.com*|*npmjs.org*|*github.com/*/releases*)
*openrouter.ai*|*raw.githubusercontent.com*|*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*openclaw.ai*|*opencode*|*zeroclaw*|*pip.pypa.io*|*get.docker.com*|*npmjs.org*|*github.com/*/releases*)
return 1 ;;
esac
case "${MOCK_ERROR_SCENARIO}" in
@ -65,7 +65,7 @@ _maybe_inject_error() {
_handle_special_urls() {
case "$URL" in
*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*opencode*install*|*zeroclaw*install*|\
*claude.ai/install*|*bun.sh*|*nodesource*|*nodejs.org*|*openclaw.ai*|*opencode*install*|*zeroclaw*install*|\
*pip.pypa.io*|*get.docker.com*|*install.python-poetry.org*|\
*npmjs.org*|*deb.nodesource.com*|*github.com/*/releases*|*cli.github.com*)
printf '#!/bin/bash\nexit 0\n'