Skip to content

Desktop: ship a complete Linux AppImage - #8695

Merged
danielhanchen merged 9 commits into
unslothai:mainfrom
wasimysaid:complete-appimage
Aug 14, 2026
Merged

danielhanchen merged 9 commits into
unslothai:mainfrom
wasimysaid:complete-appimage

Conversation

@wasimysaid

Copy link
Copy Markdown
Collaborator

Summary

  • replace the host-dependent thin Linux AppImage with Tauri's complete AppImage bundle
  • keep glibc, the ELF loader, Wayland client, and graphics drivers host-owned while verifying the bundled GTK/WebKit runtime
  • prevent the AppImage GUI library path and activated Python overrides from leaking into managed backend/install/update children
  • add shipped-artifact portability coverage for Ubuntu 22.04/24.04, Debian 12, and Fedora 44
  • add a real packaged-WebKit model-picker regression covering download start, visible progress, and cancellation

Closes #8463.

Why

The thin AppImage avoided the earlier Linux Mint mixed-runtime failure by requiring host GTK/WebKitGTK/AppIndicator. That made the artifact unable to start on Fedora and other machines without those libraries, which contradicts normal AppImage expectations. This restores one coherent bundled web runtime without coupling it to host graphics drivers or contaminating the managed Python backend.

Validation

  • built the complete AppImage on Ubuntu 22.04: 118 MiB, GLIBC 2.34
  • the exact artifact passed rendered startup and desktop authentication on Ubuntu 22.04, Ubuntu 24.04, Debian 12, and Fedora 44 without host GTK/WebKitGTK/JavaScriptCore/AppIndicator
  • packaged WebDriver flow selected FLUX.2 Q4_K_M, observed POST /api/hub/download, rendered progress, sent POST /api/hub/download/cancel, and reached the cancelled UI state
  • cd studio/src-tauri && cargo test --no-fail-fast — 343 passed
  • focused AppImage/release/branding tests — 14 passed, 26 platform-specific skipped
  • Python and shell syntax checks plus git diff --check

cargo test reports one pre-existing unused-variable warning in src/main.rs.

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

💡 Codex Review

if ((workflow.match(/sha256sum -c/g) || []).length < requiredTools.length) {
throw new Error('Desktop Linux release must digest-verify every Tauri AppImage tool');

P1 Badge Count fetch calls instead of checksum source occurrences

This check makes every desktop release build fail before packaging: the workflow contains only one actual sha256sum -c occurrence inside the reusable fetch function, plus this check's own regex literal, so the count is 2 while requiredTools.length is 5. Although fetch is invoked five times, this source-text count does not observe invocations and always throws; validate the five fetch calls or scope the check to the tool step instead.


DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends \
ca-certificates python3 xvfb xauth libgles2 libgl1 fontconfig libfribidi0

P1 Badge Install binutils before invoking the AppImage verifier

In the Ubuntu and Debian container rows, this package list does not install binutils, but verify-complete-appimage.sh later invokes readelf twice. The minimal ubuntu:* and debian:12 images do not provide readelf by default, so the new portability jobs exit with readelf: command not found before they can launch the artifact; add binutils to the container prerequisites.


cmd.env_remove("LD_LIBRARY_PATH");

P2 Badge Preserve host entries when scrubbing the AppImage path

When the AppImage is launched from a shell whose LD_LIBRARY_PATH contains nonstandard CUDA or private runtime directories, AppRun prepends its bundled directories to that existing value, but this removes the entire variable from every managed child. That also discards the caller's host paths, even though studio/prebuilt_core.py:1265-1267 explicitly uses them to locate required CUDA libraries, so such installations can fail backend startup or runtime-library detection only when launched through the AppImage. Strip entries rooted under the AppDir while retaining the original host entries.

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@oobabooga

Copy link
Copy Markdown
Member

Separately from the three findings in the current Codex review, I found two additional merge blockers and one compatibility defect at the current PR head, 373377b.

I built the AppImage from that commit in Ubuntu 22.04 using the versions and pinned AppImage tools in release-desktop.yml. The bundle was produced before the expected release-signing failure caused by the unavailable private signing key:

Unsloth_2026.4.8_amd64.AppImage
123427320 bytes
sha256 e0f37c729903c46a4805bfb21f6fc7ede6362380beea2daa12b78bf80e378678

Compatibility defect: the artifact mixes its bundled Ubuntu 22.04 runtime with host GIO modules

verify-complete-appimage.sh exits successfully on the built artifact.

However, extracting it shows that it bundles Ubuntu 22.04's libnghttp2.so.14 while leaving libcurl host-owned:

./Unsloth_2026.4.8_amd64.AppImage --appimage-extract
find squashfs-root/usr/lib -maxdepth 1 \
  \( -name 'libnghttp2.so*' -o -name 'libcurl*.so*' \) -print
squashfs-root/usr/lib/libnghttp2.so.14
squashfs-root/usr/lib/libnghttp2.so.14.20.1

Ubuntu 22.04's WebKit and libsoup both resolve libnghttp2.so.14, and that copy does not export the symbol required by Ubuntu 24.04's host libcurl-gnutls:

ldd /usr/lib/x86_64-linux-gnu/libwebkit2gtk-4.1.so.0 | grep nghttp2
ldd /usr/lib/x86_64-linux-gnu/libsoup-3.0.so.0 | grep nghttp2
nm -D /usr/lib/x86_64-linux-gnu/libnghttp2.so.14 \
  | grep nghttp2_option_set_no_rfc9113 || true

The first two commands resolve libnghttp2.so.14; the symbol lookup produces no output on Ubuntu 22.04.

I ran the PR's packaged model-download WebDriver flow on Ubuntu 24.04, substituting this branch-built artifact for the published release. The UI rendered, sent /api/hub/download, rendered progress, and sent /api/hub/download/cancel. The test reported:

PASS packaged AppImage model picker sent download, rendered progress, and cancelled

At the same time, tauri-driver.log contained this sequence three times:

/lib/x86_64-linux-gnu/libcurl-gnutls.so.4: undefined symbol: nghttp2_option_set_no_rfc9113_leading_and_trailing_ws_validation
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libgiolibproxy.so
/usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so: undefined symbol: g_assertion_message_cmpint
Failed to load module: /usr/lib/x86_64-linux-gnu/gio/modules/libdconfsettings.so

This demonstrates that the mixed runtime is still present: the host proxy and dconf GIO modules fail to load against the bundled libraries. It does not demonstrate that the primary download path is currently broken. The deterministic local backend does not require proxy resolution, and the download flow completed successfully despite those module failures.

At minimum, remove libnghttp2.so* from the AppDir, reject it in verify-complete-appimage.sh, and make the Ubuntu 24.04 test fail on these loader errors in addition to retaining its functional assertions. The current GIO_EXTRA_MODULES setting is additive, so it does not establish a bundle-only module boundary. Setting GIO_MODULE_DIR to the bundled module directory would prevent this mixing, but it can also disable host gvfs integration. That is a deliberate product choice rather than a drop-in requirement.

Rejecting bundled libcurl*.so*, libstdc++.so*, and libgcc_s.so* would be useful defense, but those libraries are absent in this artifact. They are not the live failure above.

I consider this a release-relevant defect because the PR claims one coherent bundled web runtime. I would not use this evidence alone to claim that model downloading is broken, because the tested download did succeed.

Merge blocker 1: pull requests do not build or test the code under review as an AppImage

The PR adds two shipped-artifact tests:

  1. appimage-portability downloads one published AppImage, runs verify-complete-appimage.sh, and launches it in Ubuntu 22.04, Ubuntu 24.04, Debian 12, and Fedora 44 containers.
  2. appimage-model-download downloads one published AppImage and drives its packaged WebView through model selection, download progress, and cancellation.

Those are useful release-asset tests, but neither builds or downloads an artifact produced from the checked-out PR commit. release-desktop.yml is workflow_dispatch only, and the existing Tauri smoke compiles with --no-bundle. Both new jobs therefore select an already-published release asset. They are also gated by:

if: github.event.pull_request.head.repo.fork != true

This PR is from a fork, and the current check results confirm that both jobs are skipped:

AppImage ${{ matrix.label }}       skipping
AppImage model download E2E       skipping

Even on a same-repository PR, these jobs test a published release instead of the checked-out commit. Therefore none of the artifact evidence above can be caught before release by the added CI.

This does not require building an AppImage on every repository PR or rebuilding it in every matrix lane. Scope the work to PRs that change AppImage-relevant source, configuration, packaging, workflow, or tests. One unprivileged Ubuntu 22.04 job can build the unsigned AppImage once and upload it. The existing portability matrix and WebDriver job can each download and test that same artifact.

For same-repository PRs, the four portability lanes and WebDriver test already run, so changing their artifact source does not materially increase the cost of those tests. The incremental cost is one unsigned AppImage build plus artifact upload and download. Fork PRs currently pay none of this cost because the jobs are skipped; enabling the unprivileged, path-scoped flow would add that cost only to relevant fork PRs such as this one. Release signing keys and release API access are not needed.

Merge blocker 2: the portability smoke omits required host libraries

After locally supplying the already-reported missing verifier tool, I ran the branch artifact in fresh Ubuntu 22.04 and Debian 12 containers with the exact Debian-family package list. Both exited 127 with:

for image in ubuntu:22.04 debian:12; do
  docker run --rm \
    -v "$PWD/Unsloth_2026.4.8_amd64.AppImage:/Unsloth.AppImage:ro" \
    "$image" bash -lc '
      apt-get update -qq
      DEBIAN_FRONTEND=noninteractive apt-get install -y -qq --no-install-recommends \
        ca-certificates python3 xvfb xauth libgles2 libgl1 fontconfig libfribidi0 binutils
      APPIMAGE_EXTRACT_AND_RUN=1 xvfb-run -a /Unsloth.AppImage
    '
done
unsloth-studio: error while loading shared libraries: libwayland-client.so.0: cannot open shared object file: No such file or directory

After installing that library, ldd exposed the other missing host-owned prerequisites:

libharfbuzz.so.0 => not found
libgbm.so.1 => not found
libEGL.so.1 => not found

On Ubuntu 22.04, the same smoke reached the managed desktop backend after adding these packages to the workflow's current list:

libegl1 libgbm1 libwayland-client0 libharfbuzz0b

This follows the PR's own runtime boundary. libEGL.so* and libgbm.so* are forbidden by the verifier, libwayland-client.so* is forbidden and explicitly removed during packaging, and libharfbuzz.so.0 is also absent from the built artifact. These are generic graphics and runtime prerequisites, not the GTK/WebKit runtime that the test intentionally forbids.

The underdeclared package list is also present in the regular clean-machine AppImage lane. The WebDriver lane spells out the same reduced graphics list, but webkit2gtk-driver currently pulls these libraries transitively, so I did not reproduce the launch failure there. Fedora 44 also passed with its current Mesa package set. The direct fix is therefore to add libegl1, libgbm1, libwayland-client0, and libharfbuzz0b to the Debian-family AppImage smoke prerequisites.

The two CI findings block independently because the PR artifact is not tested and the declared portability job cannot execute successfully as written. The mixed GIO runtime is a narrower compatibility defect and test gap whose observed user-visible impact was limited in this run. I would keep the merge conflict as a separate mechanical requirement, and treat immutable plugin URLs plus extra forbidden-library assertions as hardening rather than current failures.

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Bravo.

Reviewed commit: 88c0585477

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 24dac3f5f8

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread studio/src-tauri/src/process.rs Resolved
@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Swish!

Reviewed commit: a38da47b99

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@oobabooga

Copy link
Copy Markdown
Member

I rechecked the current PR head, a38da47. The previously reported AppImage issues are fixed.

The PR now builds one unsigned AppImage from the checked-out pull request commit in appimage-pr-build, verifies it, uploads it as appimage-pr-build, and passes that exact artifact to both the portability matrix and the model-download WebDriver job. The build job has read-only permissions, does not require signing credentials, and is not fork-gated.

I built the current head independently in Ubuntu 22.04 using the PR's pinned AppImage toolchain. The result was:

Unsloth_2026.4.8_amd64.AppImage
123263480 bytes
sha256 e6090f18f7155b69bc6972fdd68984b0a7f30d20e3988ddcc7461d0f598a2d43

The current verifier passed:

Verified complete x86_64 AppImage runtime (GLIBC_2.34)

Inspection of the finished AppImage confirmed that the host-owned libraries covered by the repaired boundary are absent, including libnghttp2.so*, libcurl*.so*, libstdc++.so*, libgcc_s.so*, libEGL.so*, libgbm.so*, libwayland-client.so*, and libharfbuzz.so*.

The generated AppRun hook clears inherited additive GIO modules and selects the bundled module directory:

unset GIO_EXTRA_MODULES
export GIO_MODULE_DIR="$APPDIR/usr/lib/x86_64-linux-gnu/gio/modules"

The managed-child environment regression tests also pass. They confirm that AppDir library paths and the GUI-only GIO variables are removed from managed backend children while caller-provided host paths such as /opt/cuda/lib64 and /private/runtime remain available:

test result: ok. 2 passed; 0 failed

I ran the current artifact through the PR's complete portability smoke in fresh containers using the package lists now declared by the workflow. All four lanes passed verification, rendered the packaged frontend, completed desktop authentication, and reported no loader errors:

PASS complete AppImage rendered startup and completed desktop auth on x11

Passed on:

ubuntu:22.04       X11
ubuntu:24.04       Wayland with Weston
debian:12          X11
fedora:44          X11

I also ran the current artifact through the real packaged model-download WebDriver flow on Ubuntu 24.04. It selected the GGUF, sent POST /api/hub/download, rendered download progress, sent POST /api/hub/download/cancel, and rendered the cancelled state. The prior mixed-runtime GIO loader errors did not recur:

PASS packaged AppImage model picker sent download, rendered progress, and cancelled

One PR-caused CI failure remains. tests/security/test_desktop_release_resolver.py still asserts that the clean-machine workflow contains exactly three resolver calls and three explicit-tag guards:

assert workflow.count("python3 .github/scripts/resolve-desktop-release.py") == 3
assert workflow.count('if [ -z "$REL_TAG" ]; then') == 3

The workflow now correctly has four of each because the new shipped-AppImage path adds a fourth release lookup. This is the sole failure in the current GitHub security regression job:

FAILED tests/security/test_desktop_release_resolver.py::test_clean_machine_workflow_uses_resolver_but_preserves_explicit_tag
AssertionError: assert 4 == 3
1 failed, 393 passed, 6 skipped

Both expected counts should be updated from 3 to 4. After that change and a successful run of the queued branch-built AppImage workflow, I have no remaining AppImage blocker.

@danielhanchen

Copy link
Copy Markdown
Member

Pushed 16cb194 to fix the one remaining PR-caused CI failure.

tests/security/test_desktop_release_resolver.py still pinned the clean-machine workflow to three resolver calls and three explicit-tag guards. The new shipped-AppImage WebDriver lane adds a fourth of each, so both counts are now 4 with a one line note that they track the .dmg, .deb, .AppImage and .exe lanes.

pytest tests/security locally: 394 passed, 6 skipped, previously 1 failed, 393 passed.

I checked the rest of the red checks and none of them come from this PR. Core, Backend CI (Python 3.10 to 3.13 and Repo tests CPU) and pip scan-packages :: hf-stack fail the same way on main. The macOS Chat UI Playwright failure has no clean main baseline right now since the recent Mac Studio runs on main were all cancelled by concurrency, but the only shipped code change here is #[cfg(target_os = "linux")] gated, so it cannot be the cause.

The AppImage work itself looks good. Building the unsigned artifact from the checked-out commit in appimage-pr-build and feeding that exact file to both the portability matrix and the WebDriver job is the right shape, and the verifier drawing the boundary at glibc, the loader, wayland-client and the graphics stack while requiring the bundled GTK/WebKit/libsoup runtime is what #8463 was asking for.

Three non blocking notes for later:

  • linuxdeploy-plugin-appimage is pinned by digest but fetched from the mutable continuous release tag. It fails closed rather than silently, but the build breaks whenever that asset is re-uploaded. An immutable URL would be sturdier.
  • The GIO module lookup in prepare-complete-appimage-tools.sh searches "$APPDIR"/usr/lib. A lib64 layout would exit 1 rather than mispackage, so this is only relevant if we ever build somewhere other than Ubuntu 22.04, but usr/lib* would match the plugin's own find /usr/lib*.
  • The new shipped-artifact download step in the WebDriver job drops the if ! ... ::error:: wrappers its sibling download steps use. set -e still fails the job, just with a less useful message.

@danielhanchen

Copy link
Copy Markdown
Member

Pushed fd34080. It fixes a defect I found by running the artifact your own Build PR AppImage job produced, on a real Ubuntu 24.04 host rather than in a container.

What I found

The complete AppImage changes the environment every child process inherits. I dumped it by replacing usr/bin/unsloth-studio with env inside both extracted AppDirs and running AppRun:

OLD thin AppImage (v0.1.701-beta):
  LD_LIBRARY_PATH=/opt/cuda/lib64:/private/rt      (caller's value, untouched)
  PATH=$APPDIR/usr/bin:/usr/bin:/bin               (AppDir bin holds only unsloth-studio)

NEW complete AppImage (this PR):
  LD_LIBRARY_PATH=$APPDIR/usr/lib/:...:$APPDIR/lib64/:/opt/cuda/lib64
  PATH=$APPDIR/usr/bin/:...                        (AppDir bin now holds xdg-open and xdg-mime)
  PYTHONPATH, GTK_PATH, GTK_EXE_PREFIX, GDK_PIXBUF_MODULE_FILE, GST_PLUGIN_SYSTEM_PATH,
  QT_PLUGIN_PATH, PERLLIB all point into the AppDir

That is the classic AppRun behaviour and it is correct for the app itself. process.rs already scrubs it for the managed Python children. It was not scrubbed for the host launcher processes, and those hand the target to a host binary:

$ LD_LIBRARY_PATH=<AppDir dirs> /usr/bin/gio --version
/usr/bin/gio: symbol lookup error: /usr/bin/gio: undefined symbol: g_string_free_and_steal

gio open is exactly what xdg-open runs on GNOME, for both URLs and directories, and open::that_detached is what open_existing_dir, reveal_path_token and open_path_token use. So "Open folder" and "Reveal in file manager" break on any host whose glib is newer than Ubuntu 22.04's, which is Ubuntu 24.04, Debian 13 and Fedora 38 and later. The same leak reaches a browser launched for an external link.

The fix

process::open_detached replaces open::that_detached at those three call sites. It takes the same launcher list from open::commands(), then for each one:

  • strips the AppDir entries from LD_LIBRARY_PATH, reusing the scrubber already in this PR
  • demotes rather than drops the AppDir PATH entries, so the host's xdg-open wins while the bundled one stays as a fallback for hosts without xdg-utils
  • removes the twelve GUI-only variables plus PYTHONHOME and PYTHONPATH
  • keeps the same double fork plus setsid the open crate uses, and reaps the intermediate child

It returns immediately when APPIMAGE is unset, so the .deb and dev builds behave exactly as before.

Verification

The tauri crate needs WebKit dev headers I do not have locally, so I extracted the new functions and the test module into a standalone crate with the same libc and open dependencies:

  • 3 of 3 unit tests pass, including the new host_launcher_child_keeps_the_bundle_off_the_host_runtime
  • an end to end test with a stub host xdg-open and a stub bundled one confirms the host launcher is the one that runs, with LD_LIBRARY_PATH=/opt/cuda/lib64 only, no GTK_PATH or PYTHONPATH, and the AppDir last in PATH
  • with that scrubbed environment /usr/bin/gio --version returns 2.80.0 and gio open <dir> reaches a real answer instead of a loader crash

CI has now confirmed it in the tree: Rust unit tests (studio/src-tauri) and Tauri Linux debug build (no codesign) both pass on fd34080, along with Build PR AppImage and all four portability lanes plus the model download E2E.

Everything else I checked and found clean

  • published asset names are unchanged. Stage release assets renames every Tauri output, so Unsloth-Desktop-<ver>-Linux.AppImage stays the name whatever the bundler calls the file
  • the updater is unchanged end to end: same linux-x86_64 and linux-x86_64-appimage keys, same minisign pubkey, same endpoint, same base64 and envelope validation in the latest.json builder
  • Windows and macOS cannot be affected by adding appimage to bundle.targets. Settings::package_types() in tauri-bundler intersects the configured targets with the platform list, and AppImage appears only under TargetPlatform::Linux
  • shortcuts and deep links survive. The AppDir is built by debian::generate_data, so the deb desktopTemplate with MimeType=x-scheme-handler/unsloth is what ships inside the AppImage
  • preseeding the toolchain is a security improvement over stock Tauri, which otherwise fetches linuxdeploy-plugin-gtk.sh from master unpinned during the signing build
  • I ran your appimage_portability_smoke.py against the PR artifact on a bare Ubuntu 24.04 host. The packaged WebKit rendered, startup JS ran, preflight completed and the managed backend spawned. It then failed only because another process on that box already holds 127.0.0.1:8888, which the fixture binds exactly

One thing I did not fix

.DirIcon in the new AppImage is an absolute symlink into /home/runner/work/unsloth/unsloth/studio/src-tauri/target/release/bundle/appimage/Unsloth.AppDir/Unsloth.png, so it dangles everywhere except the build machine. The old thin AppImage had a valid relative .DirIcon -> unsloth-studio.png. Desktop integration tools read that file for the launcher icon. It comes from tauri-bundler itself, and the AppDir already contains Unsloth.png next to it, so relinking it relative in the packaging step would settle it. Happy for that to be a follow-up.

External links opened through @tauri-apps/plugin-opener still go through the plugin's own open::that_detached, so they keep the old environment. Desktop login renders in the packaged webview rather than a host browser, so that path is unaffected, and the practical remainder is documentation links.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 20ab5bad57

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread studio/src-tauri/src/process.rs Resolved
@wasimysaid

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Breezy!

Reviewed commit: b4923a62bb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@danielhanchen
danielhanchen merged commit 93a77d4 into unslothai:main Aug 14, 2026
51 of 55 checks passed
@danielhanchen

Copy link
Copy Markdown
Member

Confirmed b4923a6 end to end, and your reuse of APPIMAGE_GUI_ONLY_VARS for the managed children is the right call: those children previously kept GTK_PATH, GDK_PIXBUF_MODULE_FILE and the rest, and none of them mean anything to the backend.

I pulled the artifact Build PR AppImage produced at that commit and checked the icon fix in the shipped file rather than in the script:

$ ./Unsloth.AppImage --appimage-extract '.DirIcon'
$ readlink squashfs-root/.DirIcon
Unsloth.png
resolves: YES

Previously that symlink pointed at /home/runner/work/unsloth/unsloth/studio/src-tauri/target/release/bundle/appimage/Unsloth.AppDir/Unsloth.png, which exists only on the builder. Since Build PR AppImage runs the verifier on its own output, and the verifier now rejects both an unresolvable and an absolute .DirIcon, this cannot silently regress.

Current state at b4923a6:

  • Build PR AppImage pass, all four portability lanes pass, AppImage model download E2E pass
  • Tauri Linux debug build (no codesign) pass, which is the job that runs cargo test for studio/src-tauri
  • pytest tests/security locally: 394 passed, 6 skipped

Nothing further from me. The remaining red checks on this PR are Core, Backend CI and pip scan-packages :: hf-stack, which fail the same way on main, plus the macOS Playwright lane, which passed when I replicated this exact branch onto a staging repo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Linux appimage : "Unsloth cannot start because required Linux libraries are missing"

3 participants