Repository navigation
fix: resolve issue #146088 — [Bug]: The most recent Linux AppImage does not ship with the correct versions of libs needed to run - #148174
Conversation
The AppImage runtime exports its bundled usr/lib (Ubuntu 22.04, OpenSSL 3.0) through LD_LIBRARY_PATH. The bundled installer drives host tools (curl, wget, tar, git, and the downloaded Node), so a newer host libcurl loaded the older bundled libssl and aborted with "OPENSSL_3.2.0 not found" during first-run setup on Debian Trixie. Remove the inherited LD_LIBRARY_PATH at the installer subprocess boundary so host tools resolve host libraries while the app keeps its bundled runtime. Add a unit test asserting the installer child never inherits the AppImage library path. Fixes openclaw#146088
…Image does not ship with the correct versions of libs needed to run
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Merge upstream/main (619 commits) so the AppImage installer fix builds
against the latest tree. Also fix two checks that failed on the PR's
CI merge run:
- Drop the non-portable `@pnpm/exe` entry that a local pnpm 12 rewrote
into pnpm-lock.yaml's packageManagerDependencies. The environment
lock must stay portable across platforms: pnpm 12 resolves platform
executables through `pnpm`'s optionalDependencies, and committing a
host-resolved `@pnpm/exe` breaks test/package-manager-config.test.ts
("keeps pnpm 12 environment lock portable across platforms").
- Sync the ClawHub plugin fixture expectation in
test/scripts/docker-build-helper.test.ts to main's
`clawhub:@openclaw/plugin-e2e-fixture` (upstream openclaw#148074 renamed the
fixture but left this assertion at the old kitchen-sink id, so the
sweep test failed on the merged tree).
Fixes openclaw#146088
|
Codex review: needs maintainer review before merge. Reviewed September 15, 2026, 3:38 AM ET / 07:38 UTC (Revision 9). ClawSweeper reviewWhat this changesThe Linux companion removes the AppImage library search path from its installer subprocess so host tools load compatible libraries, and adds a regression test. Merge readiness✅ Ready for maintainer review This remains a useful fix: current main and the latest release retain the faulty environment inheritance. The native before/after evidence supports the correction, and no blocking patch defect was found. Priority: P0 Review scores
Verification
How this fits togetherThe Linux companion's Install action launches the bundled installer to provision Node and OpenClaw in the user's home directory. Installer progress returns to the app before CLI discovery and Gateway preparation. flowchart TD
A[Install action and release channel] --> B[Linux companion]
B --> C[Remove child library override]
C --> D[Bundled installer]
D --> E[Host download tools]
E --> F[Managed Node and OpenClaw]
D --> G[Progress or failure in app]
F --> H[CLI discovery and Gateway preparation]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceOther +34. Total +34 across 1 file. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Keep library isolation at the installer spawn boundary so the existing Install and Retry actions recover without terminal environment edits. Do we have a high-confidence way to reproduce the issue? Yes: current-main source preserves the inherited library path into host curl, and supplied native baseline evidence reproduces the OpenSSL failure through the Install action; this review did not execute current main. Is this the best way to solve the issue? Yes: removing the override from the installer child repairs the demonstrated boundary while preserving the app runtime, with native fresh-install, repair, and control evidence supporting compatibility. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7dcdb14e8435. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (8 earlier review cycles)
|
Merge the latest upstream main (incl. openclaw#148129, which fixes the ClawHub sweep expectation upstream; keep its configurable CLAWHUB_PLUGIN_SPEC assertion over the PR's own hard-coded fixture id). Restores a clean mergeable state against the current base. Fixes openclaw#146088
The previous run failed in two places this PR cannot affect: a src/wizard setup-recovery assertion that main has since fixed in openclaw#148195, and the native inline-browser AT-SPI smoke step, which passes on other branches. Empty commit to re-run checks against the current base.
|
@clawsweeper re-review Real behavior proof has been extended in the PR body since the last review: the patched companion now drives complete installs from its own UI, and the same home is installed into twice — fresh, then again over the existing |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Fresh native qualification — exact integrated headVerified Confirmed failure: the actual companion Install action launches host curl with the AppImage-like Ubuntu22 library directory, producing
BeforeActual baseline installer failure: AfterActual installed-CLI success log. The companion is still preparing; this is not a full Gateway-readiness claim. Evidence and limits
Credit: @xydigitLybnnnn authored the retained one-file correction. |
|
Merged via squash.
|
* commit '0945dabbe487213e95e84a72ad1aae3659e0e000': (115 commits) fix: omit automation service aliases from squash coauthors (#148883) test: restore services typecheck shard headroom (#148885) perf(trajectory): avoid native probes for truncation records (#148870) improve(gateway): load cron only when reload requests it (#143500) fix: resolve issue #146088 — [Bug]: The most recent Linux AppImage does not ship with the correct versions of libs needed to run (#148174) refactor(theme): share nonvirtual ANSI color lookup (#148717) perf(gateway): scope exact session row topology reads (#148836) improve(memory): reduce vector replacement overhead (#148201) fix(i18n): keep HTTP headers out of native translations (#147119) refactor(plugins): share source-root display formatting (#148646) fix(cron): reject blank script paths before mutations (#148787) refactor(config): share audit positional scanning (#148643) fix(test): restore infrastructure typecheck shard headroom (#148861) fix(release): harden package validation fallbacks (#148729) refactor(config): share leaf and descendant unset pruning (#148216) test: reuse prepared runtime for pristine preflight (#148858) fix(ui): settle global model drafts across agent switches (#148843) fix(queue): avoid repeated scans when cancelling backlogs (#148754) fix(logging): orphaned \\\\?\\ path markers corrupt redacted Windows diagnostics (#147542) refactor(hooks): share optional reply metadata projection (#148641) ...
…Image does not ship with the correct versions of libs needed to run (openclaw#148174) * fix(linux): keep AppImage installer on host libraries The AppImage runtime exports its bundled usr/lib (Ubuntu 22.04, OpenSSL 3.0) through LD_LIBRARY_PATH. The bundled installer drives host tools (curl, wget, tar, git, and the downloaded Node), so a newer host libcurl loaded the older bundled libssl and aborted with "OPENSSL_3.2.0 not found" during first-run setup on Debian Trixie. Remove the inherited LD_LIBRARY_PATH at the installer subprocess boundary so host tools resolve host libraries while the app keeps its bundled runtime. Add a unit test asserting the installer child never inherits the AppImage library path. Fixes openclaw#146088 * fix: resolve issue openclaw#146088 — [Bug]: The most recent Linux AppImage does not ship with the correct versions of libs needed to run * chore(ci): retrigger checks after infra flake * chore(ci): retrigger CI run * chore(ci): retrigger CI after unrelated native/node flakes The previous run failed in two places this PR cannot affect: a src/wizard setup-recovery assertion that main has since fixed in openclaw#148195, and the native inline-browser AT-SPI smoke step, which passes on other branches. Empty commit to re-run checks against the current base.
…and loads the system OpenSSL (#183661) * fix(linux): AppImage SSH tunnel fails when the SSH config's ProxyCommand loads the system OpenSSL AppRun puts the AppImage's usr/lib first in LD_LIBRARY_PATH, and every program the Linux companion starts inherits it. The SSH tunnel passed it on to the user's ProxyCommand, so a ProxyCommand that loads the system OpenSSL aborted with "OPENSSL_3.3.0 not found" and the saved remote Gateway could not connect. Give the companion one owner for the environment of the host programs its own code starts: host_process::use_host_libraries removes LD_LIBRARY_PATH inside the AppImage, where APPDIR is set, including entries the user set, and changes nothing outside it. The installer, every OpenClawCli command and the SSH tunnel call it, and every program they start inherits that environment. It replaces the installer's own removal from #148174 and the duplicate in the gateway install. * fix(linux): keep AppImage libraries out of SSH commands Use the CLI host-command constructor for the installer and SSH. Preserve the separate bundled-runtime environment cleanup. Co-authored-by: Demos Ra <[email protected]> --------- Co-authored-by: Demos Ra <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…and loads the system OpenSSL (openclaw#183661) * fix(linux): AppImage SSH tunnel fails when the SSH config's ProxyCommand loads the system OpenSSL AppRun puts the AppImage's usr/lib first in LD_LIBRARY_PATH, and every program the Linux companion starts inherits it. The SSH tunnel passed it on to the user's ProxyCommand, so a ProxyCommand that loads the system OpenSSL aborted with "OPENSSL_3.3.0 not found" and the saved remote Gateway could not connect. Give the companion one owner for the environment of the host programs its own code starts: host_process::use_host_libraries removes LD_LIBRARY_PATH inside the AppImage, where APPDIR is set, including entries the user set, and changes nothing outside it. The installer, every OpenClawCli command and the SSH tunnel call it, and every program they start inherits that environment. It replaces the installer's own removal from openclaw#148174 and the duplicate in the gateway install. * fix(linux): keep AppImage libraries out of SSH commands Use the CLI host-command constructor for the installer and SSH. Preserve the separate bundled-runtime environment cleanup. Co-authored-by: Demos Ra <[email protected]> --------- Co-authored-by: Demos Ra <[email protected]> Co-authored-by: Peter Steinberger <[email protected]>
…and loads the system OpenSSL (#183661) * fix(linux): AppImage SSH tunnel fails when the SSH config's ProxyCommand loads the system OpenSSL AppRun puts the AppImage's usr/lib first in LD_LIBRARY_PATH, and every program the Linux companion starts inherits it. The SSH tunnel passed it on to the user's ProxyCommand, so a ProxyCommand that loads the system OpenSSL aborted with "OPENSSL_3.3.0 not found" and the saved remote Gateway could not connect. Give the companion one owner for the environment of the host programs its own code starts: host_process::use_host_libraries removes LD_LIBRARY_PATH inside the AppImage, where APPDIR is set, including entries the user set, and changes nothing outside it. The installer, every OpenClawCli command and the SSH tunnel call it, and every program they start inherits that environment. It replaces the installer's own removal from #148174 and the duplicate in the gateway install. * fix(linux): keep AppImage libraries out of SSH commands Use the CLI host-command constructor for the installer and SSH. Preserve the separate bundled-runtime environment cleanup. Co-authored-by: Demos Ra <[email protected]> --------- Co-authored-by: Demos Ra <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> (cherry picked from commit c00352f) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 39119637c0265e71e909ab90d893076248cc44a3)


Current maintainer verification
Merged: db08d8a79ec868543776aaefeb4ea0d30447bc5a. Exact-head CI and native preparation passed.
Exact integrated head:
bc5ea8fbd0169fe8522a692a7fd46f31bf7aaab2. Fresh native red/green, repeat repair, healthy discovery and no-override control: proof with before/after screenshots. Independent exact-head source review passed. Full Gateway readiness is not claimed in isolated HOME. Contributor ancestry and original one-file correction are preserved.What Problem This Solves
Issue #146088: [Bug]: The most recent Linux AppImage does not ship with the correct versions of libs needed to run
On the affected AppImage (2026.8.2) under Debian Trixie, first-run setup fails immediately:
~/.openclaw.1, so setup cannot complete on that host.Why This Change Was Made
Root cause (from the solution analysis for this issue): this is not an "incomplete packaging" bug but a
mixed-ABI library boundary — the AppImage runtime injects its own
usr/lib(Ubuntu 22.04, OpenSSL 3.0)into the child process library search path, while the host tools the installer drives (
curl,wget,tar,git, downloaded Node) resolve against that older bundled OpenSSL.squashfs-root/usr/lib/libssl.so.3defines onlyOPENSSL_3.0.0(noOPENSSL_3.2.0/OPENSSL_3.3.0).usr/libviaLD_LIBRARY_PATH:AppRun.wrapped(the linuxdeploylauncher) prepends
%s/usr/lib/before exec'ingusr/bin/openclaw-desktop, so the Tauri process andevery child it spawns inherit the bundled library directory.
curl:scripts/install-cli.sh(
detect_downloader) pickscurlfromPATHand executes it directly.installer.rsusedCommand::new("bash")withoutenv_clear/env_remove, so the injectedLD_LIBRARY_PATHwas inherited.libcurl4t64 8.14.1requiresOPENSSL_3.2.0andOPENSSL_3.3.0. Host libcurl (needs 3.2/3.3) + AppImage libssl (only 3.0.0) → symbol resolution fails →curlexits non-zero → the installer exits 1.This change removes
LD_LIBRARY_PATHonly for the installer child command(
configure_installer_environment()→command.env_remove("LD_LIBRARY_PATH"), called right afterCommand::new("bash")). Host tools then resolve host libraries, while the AppImage's own runtime keepsusing its bundled libraries.
User Impact
download step with
OPENSSL_3.2.0 not found, and retries fail the same way (every spawn inherits thesame polluted environment).
AppImage's own runtime is unchanged and still uses its bundled libraries.
Evidence
Real behavior proof — the companion's installer subprocess environment, patched vs unpatched
Built the actual Linux companion (
cargo build --locked) on the CI-matching stack(
ubuntu:22.04,webkit2gtk-4.12.50.4,libsoup-3.03.0.7) and drove its real first-run UIheadlessly with the repository's own AT-SPI driver (
apps/linux/tests/first_run.py), extended toclick Install OpenClaw. The simulated AppImage environment
(
LD_LIBRARY_PATH=<AppImage OpenSSL 3.0 libs>) is inherited by the companion process. For everyprocess the companion spawns whose argv contains
install-cli.sh, the harness records/proc/<pid>/environ.BEFORE — unpatched
main(noconfigure_installer_environment):AFTER — this PR:
Summary: the companion process still receives the AppImage library path, while the installer it
spawns no longer inherits it (0 of 23 children in the A/B run, and 0 of the 15 + 14 + 12 children
observed in the three install-to-completion runs below).
Companion-driven installs run to completion — fresh, then reinstall over the existing
~/.openclawThe patched companion also drives full first-run installs to completion from its own UI. Same headless
session as above; the Stable channel is picked in the real release-channel popup with pointer input
(the Development channel installs from git and runs a full
pnpm install), then Install OpenClaw isclicked and the run is left until the installer exits:
The harness was then run twice against one home that survives the run (
INSTALL_PROOF_HOME), so the secondrun installs into the state the first one left behind:
The companion only offers the installer when it cannot discover a CLI (
OpenClawCli::discoversearches~/.openclaw/binand then~/.openclaw/tools/node/bin), so before the second pass those two CLI entrypoints of the existing install were renamed (
openclaw→openclaw.pre-reinstall); the node toolchain,installed packages,
state/and caches stayed in place, which is what a failed or repaired install leavesbehind. The installer re-created
bin/openclawnext to the renamed entry point and the CLI runs from thesame prefix again.
So on the patched build: the companion spawned the installer without the AppImage library path in every
run, each install ran to completion (installer exit observed, UI advanced to "Preparing your companion"),
and the CLI left in the prefix the companion passed (
--prefix <home>/.openclaw) runs and reportsOpenClaw 2026.9.4 (3a9d69d)— both for a clean home and when installing into an existing one.Installer completion when invoked directly with the companion's argv
Running the installer the companion invokes, with the companion's exact argv:
What was not tested
and the AppImage environment is simulated by pointing
LD_LIBRARY_PATHat the AppImage's OpenSSL 3.0libraries rather than by mounting the AppImage).
existing home used for the reinstall capture had a complete Node toolchain behind it, with only the CLI
entry points removed so the companion would offer the installer again).
Reproduction evidence (before fix):
/media/vdb/AutoDigit/workspace/logs/reproduction/issue-146088-evidence(
MANIFEST.md,version-info.txt,runtime-repro/,squashfs-root/)Companion A/B artifacts:
/media/vdb/AutoDigit/workspace/logs/real_behavior/issue-146088-evidence/harness/EVIDENCE.md.../harness/before-unpatched-run.log,.../harness/after-patched-run.log.../harness/after-patched/installer-child-*.env.txt(full child environments).../harness/after-patched-complete.log+.../harness/after-patched-complete/(
install-proof.json,installer-children.jsonl,installer-child-*.env.txt,choices-passed.png)— companion-driven install to completion in a disposable home
.../harness/after-patched-fresh-home.log+.../harness/after-patched-fresh-home/and.../harness/after-patched-reinstall.log+.../harness/after-patched-reinstall/(
install-proof.json,installer-children.jsonl,installer-child-*.env.txt,choices-passed.png)— the same kept home installed into twice, fresh and then again over the existing
~/.openclaw(
.../harness/reinstall-home-before.txtrecords the state the reinstall started from).../harness/installer-direct-install.txt.../harness/install_proof.py(driver used, extendsapps/linux/tests/first_run.py)Local validation commands:
Linked context
Closes #146088
Tests and validation
apps/linux/src-tauri/src/installer.rs→installer_child_does_not_inherit_the_appimage_library_path(sets
LD_LIBRARY_PATHon the command, calls the production helper, spawns a realsh, asserts thechild sees the variable as unset).
cargo +stable fmt --checkpasses; GitHubLinux Apprunscargo +stable test --locked --all-targets.Local CI equivalent check report:
Risk checklist
LD_LIBRARY_PATHremoved) inapps/linux/src-tauri/src/installer.rs; that environment change is the intended fix.curl/wget/tar/git; only its inherited library search path changes.apps/linuxinstaller subprocess environment.LD_LIBRARY_PATH. Verified on the real companion (23/23, 15/15, 14/14 and 12/12 installer children without the variable, with companion-driven installs that complete — fresh and over an existing~/.openclaw— and leave a runnable CLI) and locked by a unit test.Current review state
~/.openclaw— with the installed CLI verified, the environment-risk answer reports the environment behavior change, and the remaining gaps are stated explicitly.🤖 AI Participation Disclosure
🤖 AI-assisted: This PR was developed with AI assistance (opencode + auto_fix_bot).
Development Process
Problem Reproduction (Human-led)
harness, and collected the evidence set
Solution Generation (AI-led, Human-decided)
LD_LIBRARY_PATHat the spawn boundary)Implementation (AI-led)
Validation (Human-led)
existing
~/.openclaw— and verified the installed CLI in bothRole Breakdown
Human contributions:
AI contributions:
~/.openclaw— and verified the installed CLIRollback Plan
Risk Level: Low
Rollback command:
Observable failure symptoms:
Linux Appworkflow failureAppendix: Evidence Directories
/media/vdb/AutoDigit/workspace/logs/reproduction/issue-146088-evidence/media/vdb/AutoDigit/workspace/logs/real_behavior/issue-146088-evidence/media/vdb/AutoDigit/workspace/logs/real_behavior/issue-146088-evidence/harness/media/vdb/AutoDigit/workspace/logs/opencode/issue-146088-solutions.mdCloses #146088.