Repository navigation
fix(linux): prevent blank AppImage windows on current Mesa - #137797
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 4, 2026, 9:38 AM ET / 13:38 UTC. ClawSweeper reviewWhat this changesThe PR removes bundled Wayland client libraries from Linux AppImages and replaces direct Linux release dispatch with a main-only request workflow, isolated artifact signing, and updated release instructions. Merge readiness⛔ Blocked before merge - 4 items remain Keep open for release-owner review: the prior documentation blocker is fixed, and no concrete patch defect was found, but this maintainer-authored PR changes the signing and publication trust boundary and needs explicit acceptance of the supervised first production run. Priority: P1 Review scores
Verification
How this fits togetherThe Linux companion pipeline turns a selected release tag into desktop bundles, then signs and publishes updater artifacts. This PR changes the packaging producer and the release workflow that carries artifacts from build jobs to secret-bearing signing and publication jobs. flowchart LR
A[Release operator] --> B[Release request]
B --> C[Trusted release validation]
C --> D[Selected-tag build]
D --> E[Artifact-only signing]
E --> F[Release publication]
D --> G[Finalized AppImage]
Decision needed
Why: This PR deliberately changes where selected-tag code, signing credentials, and publication authority meet; that release-operating decision cannot be established from source alone. Before merge
Agent review detailsSecurityNone. PR surfaceTests +805, Docs +21, Config +365, Other +100. Total +1291 across 8 files. View PR surface stats
Review metrics
Root-cause clusterRelationship: Members:
Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything. Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Adopt the packaging-owner AppImage repair and isolated signing design only after the release owner explicitly accepts the main-only release procedure and supervises its first production run. Do we have a high-confidence way to reproduce the issue? No local current-main reproduction was executed. The PR supplies an Arch/Mesa before-and-after packaged-artifact claim and focused runtime smoke evidence, but the linked hosted run could not be inspected from this environment. Is this the best way to solve the issue? Yes, subject to release-owner approval: removing the incompatible libraries at the package producer is a cleaner fix than adding runtime rendering flags or fallbacks, and the smoke script rejects their reintroduction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against f670fb5a6803. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
05873e9 to
56ef58a
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. |
sylvesterkaczmarek
left a comment
There was a problem hiding this comment.
The trust boundary is much cleaner now: selected-tag code stays secretless/read-only and signing moves to fresh artifact-only jobs pinned to trusted workflow tooling. Keep production-key compatibility and exact-head CI as explicit final gates.
2207cca to
a5aab31
Compare
|
@clawsweeper re-review Exact head: P1 registry execution is removed from both artifact-only signer jobs. They now use checksum-pinned absolute Tauri and Minisign binaries with no Node, package manager, network access, or package resolution in secret-bearing steps. Ubuntu proof: https://github.com/openclaw/openclaw/actions/runs/33873541113 |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head: The |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head: The P1 release-operator documentation now matches the only manual path: dispatch |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review Exact head: |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Maintainer approval: as an active Clarification on September 5, 2026: I cannot dispatch or own a production release. The actual release owner must run and observe the first production Completed merge conditions:
No release was dispatched. |
|
Merged via squash.
|
Fixes #136148
What Problem This Solves
Linux AppImage users on current Mesa and Wayland systems could see
EGL_BAD_PARAMETER, a blank window, or an aborted WebKit renderer during first launch because the package mixed Ubuntu build-host Wayland libraries with the target system's WebKitGTK and Mesa stack.The release workflow also built product source from a selected release tag while invoking new packaging helpers from that same checkout. Existing tags such as
v2026.8.2do not contain those helpers, so the initial repair could not rebuild and sign a historical selected tag.Fix
libwayland-client,libwayland-cursor,libwayland-egl, andlibwayland-serverfrom Tauri's retained AppDir, then rebuild the AppImage with Tauri's cached AppImage plugin.${{ github.workflow_sha }}into.release-toolingwith pinnedactions/checkout, depth 1, credentials disabled, non-cone sparse checkout, and exactly these files:apps/linux/scripts/stage-appimage-gstreamer.shapps/linux/scripts/tauri-appimage-tools.shapps/linux/scripts/tauri-appimage-tools-x86_64.tsvapps/linux/scripts/finalize-appimage.shapps/linux/tests/packaged_runtime_smoke.pyapps/linux/tests/first_run.py.release-tooling/...; the packaged runtime smoke resolves itsfirst_run.pychild from the same trusted checkout.bundle.createUpdaterArtifacts:false.contents: read; disable persisted checkout credentials.github.workflow_sha, and fail if signing changes final artifact bytes.contents: write; no publishing release was dispatched for this proof.main, inheriting the existing npm advisory outage hardening from fix(ci): reject malformed advisories and bound audit delays #137960 and fix(ci): harden pnpm bulk advisory retries #137989 instead of adding branch-specific CI workarounds.The current exact head
4820f3977f5c03219f0476c2225baf0a586a365dcompletes the workflow-wide trust boundary. A secretless request workflow records the operator-selected tag, a trusted default-branchworkflow_runvalidates that exact request againstgithub.workflow_sha, selected-tag jobs remain secretless/read-only, signing happens on fresh artifact-only runners with no checkout, and only publication has write-token authority.This keeps the repair in the packaging owner. No runtime graphics flags, software-rendering policy, compatibility fallback, or new environment-variable surface was added.
User Impact
Linux AppImage users can launch the companion on current Arch-derived Mesa and Wayland environments without packaged Wayland libraries breaking EGL initialization. Ubuntu 22.04 remains the build floor, while target systems provide one coherent Wayland/Mesa/WebKitGTK stack.
Evidence
Could not create default EGL display: EGL_BAD_PARAMETERapp_alive=trueOpenClawwindow was presentegl_bad_parameter=false/bin/shand/bin/bashprobes passedv2026.8.2product source plus trusted current-workflow helpers:.release-tooling.release-tooling/apps/linux/tests/packaged_runtime_smoke.pyresolves its sibling to the existing.release-tooling/apps/linux/tests/first_run.pytools_path/linuxdeploy-plugin-appimage.AppImage, matching the finalizer's cache path: https://github.com/tauri-apps/tauri/blob/8909f221d1515955fc843808032bdc5d62209c96/crates/tauri-bundler/src/bundle/linux/appimage/linuxdeploy.rs#L233-L257--appdirand mapsLDAI_OUTPUTorOUTPUTinto appimagetool's output argument: https://github.com/linuxdeploy/linuxdeploy-plugin-appimage/blob/536b068787179ea901964bd7dabc7bf61e4941c3/src/main.cpp#L95-L181Workflow trust architecture
4820f3977f5c03219f0476c2225baf0a586a365d, based on main snapshot6b25e18407753fe7c9469b1ccbc3b07452f2ddf1.Linux App Release Requestis the only manual entry point. It haspermissions: {}, no secrets, no checkout, and validates the stable tag input.Linux App Release Requestfrommain, provide the stabletagand optionaldesktop-test-bundlesinput, and rely on its automatic handoff toLinux App Release.Linux App Releaseruns only after a successful request onmain. Its validation gate requires the exact repository, parent repository,workflow_dispatchparent event, workflow name,mainbranch, successful conclusion, and parent head SHA equal to trustedgithub.workflow_sha.validate_release,build_linux,build_macos, andbuild_windowshave explicitcontents: read; selected-tag checkouts setpersist-credentials: false.${RUNNER_TEMP}/binwith mode0555, and preflights their version commands.${RUNNER_TEMP}/bin/cargo-tauriand${RUNNER_TEMP}/bin/minisignpaths, performs no network access or package resolution, and unsetsTAURI_SIGNING_PRIVATE_KEYandTAURI_SIGNING_PRIVATE_KEY_PASSWORDbefore Minisign verification.publishis the only job withcontents: writeand consumes exact artifact IDs from the signing jobs.github.workflow_sha, rejects symlink/non-regular metadata, and requires the selected tag's updater public key to match the trusted current-workflow key.Tauri signer provenance
tauri-cli-v2.11.4points to signed commit8909f221d1515955fc843808032bdc5d62209c96.crates/tauri-cli/src/signer/sign.rs,crates/tauri-cli/src/helpers/updater_signature.rs,crates/tauri-cli/src/main.rs, andcrates/tauri-cli/src/lib.rsare blob-identical to npm provenance commit59585e1....cargo-tauri signer sign <file>invocation.Hosted signer proof
tbx_01m1p6n8zk84mtrc1fkafxxvppTAURI_ALL_ARTIFACT_SIGNER_PROOF_OK.completed.v2026.8.2production release path provide sufficient compatibility evidence.Linux App Release Request->Linux App Releaserequest-to-publish run after merge. Approval is recorded at fix(linux): prevent blank AppImage windows on current Mesa #137797 (comment).workflow_runworkflow when that workflow file exists on the default branch, so this PR cannot exercise the new request-to-release event chain from its own head before landing.AppImage toolchain integrity follow-up
XDG_CACHE_HOME.linuxdeploy-x86_64.AppImage; the manifest records separate verified pre-build and post-build digests for that exact transformation.LDAI_RUNTIME_FILE, preventing appimagetool from downloading a mutabletype2-runtimeasset.bundle.useLocalToolsDir:false, so Tauri cannot redirect execution to an unverified target-local cache.apps/linux/scripts/tauri-appimage-tools.shdid not exist. The final Linux fixture prepares a synthetic five-tool cache atomically, models Tauri's bytes 8-10 mutation, rejects stale/raced caches, mutates every tool and the derived runtime, rejects symlinks and missing executable bits, and proves no plugin execution, Wayland removal, AppImage replacement, or signature deletion occurs before verification.tsgo:test:rootandcheck:workflowspassed: https://github.com/openclaw/openclaw/actions/runs/338865479326b25e18407753fe7c9469b1ccbc3b07452f2ddf1resolved relevant cache-selection, lifecycle-ordering, and transitive runtime findings. Final scoped verdict: correct, no actionable P0/P1 findings, confidence 0.94.Validation
check-test-typesfailure was limited to eight TS18048 diagnostics from optional YAMLrunvalues in the two signer ordering assertions. Both values now narrow throughexpectDefinedwhile preserving sign-before-unset-before-verification checks.tsgowith the exact root-test compiler options: passed. The full localpnpm tsgo:test:rootrerun reached only unrelated missing-module failures from the stale shared dependency install and reported no diagnostics for the touched guard.oxfmtand type-awareoxlinton the touched guard: passed.testRoot,docs, andtoolinglanes; the touched-test faithful root-testtsgoproof passed.actionlinton both Linux release workflow files: passed.bash -nandshellcheckon both Linux packaging helpers: passed.tsgo:test:rootand repositorycheck:workflows: passed.zizmor 1.29.0: passed with no findings.git diff --check: passed.node --import ./scripts/tsx.mjs scripts/check-workflows.mtslocal rerun was blocked only because the configured package index does not provide pinnedpre-commit==4.6.2; it failed before repository workflow checks ran.Diff
Signer-toolchain follow-up:
+72/-25(net+47).+176/-92(net+84).Test-type follow-up: test-only
+10/-8.Documentation follow-up: docs
+11/-8; tests+9/-0; production0.AppImage toolchain-integrity follow-up:
+252/-27(net+225).+358/-19(net+339).+24/-8(net+16).Entire PR against the pinned main snapshot: 10 files,
+2009/-138.Full PR numstat:
.github/workflows/linux-app-release-request.yml.github/workflows/linux-app-release.yml.github/workflows/linux-app.ymlapps/linux/README.mdapps/linux/scripts/finalize-appimage.shapps/linux/scripts/tauri-appimage-tools-x86_64.tsvapps/linux/scripts/tauri-appimage-tools.shapps/linux/tests/packaged_runtime_smoke.pydocs/platforms/linux.mdtest/scripts/ci-workflow-guards.test.tsRemoved artifact paths: the four bundled Wayland library families listed above.