Skip to content

Install T3 Code as its self-updating AppImage - #15907

Merged
ryanrhughes merged 2 commits into
quattrofrom
t3code-appimage
Oct 19, 2026
Merged

ryanrhughes merged 2 commits into
quattrofrom
t3code-appimage

Conversation

@ryanrhughes

@ryanrhughes ryanrhughes commented Oct 18, 2026 •

Copy link
Copy Markdown
Collaborator

T3 Code comes from the t3code-bin package, which T3 Code's own updater can't touch: on Linux it only updates an AppImage or a .deb. The app still offers an update that then fails, and Nightly needs a second package (t3code-nightly-bin).

The change:

  • Install: Install > AI > T3 Code asks for Stable or Nightly, then installs the official AppImage at ~/.local/share/t3code/T3-Code.AppImage.
    • The download is checked against the sha512 in the release feed the app's own updater reads (latest-linux.yml / nightly-linux.yml, -arm64 on ARM). SHA256SUMS covers only the CLI archives.
    • The file name carries no version, so electron-updater replaces the file in place and the launcher keeps working. In-app channel switching works the same way.
    • fuse3 provides the setuid fusermount3 the AppImage runtime mounts through.
  • Launcher: written before the AppImage moves into place, so an installed AppImage always means a finished setup. ~/.local/share/applications/t3code.desktop and the hicolor icons come from upstream's entry inside the AppImage, so t3code:// links still open the app. It's named "T3 Code" or "T3 Code (Nightly)". The app's own hidden com.t3tools.T3Code.desktop link handler doesn't collide with it.
  • t3 command: ~/.local/bin/t3 links to ~/.t3/bin/t3, the launcher the app writes when it starts. This is the same link T3's "Install t3 command" makes. A link to the old package's /usr/bin/t3 or /usr/bin/t3-nightly moves over, and a t3 of the user's own is left alone.
  • Theme: the Omarchy palette is still selected before the first launch. The installer runs the CLI bundled in the mounted AppImage, the same invocation the package's /usr/bin/t3 used. A failed selection still stops the install before launch.
  • Migration 1792345511: t3code-nightly-bin becomes Nightly and t3code-bin becomes Stable, for a user who has run T3 Code. ~/.t3 is kept. The package is dropped only once the app is in place, so a failed download keeps the migration pending and the package working. A user who never ran T3 Code leaves the package for those who did.
  • Remove: also takes the app, both launcher entries, the icons, ~/.cache/t3code-updater, ~/.config/t3code-v2 and the t3 link. Either package is dropped too.
  • Menu: the Install row reads as installed once the AppImage exists. The Remove row shows for the AppImage or either package. The manual's AI page now describes T3 Code.

Tests:

  • t3code-install-test.sh covers the channel prompt, the theme selected before launch through the mounted AppImage, and the AppImage being unmounted afterwards, including after a Ctrl-C.
  • The new t3code-app-install-test.sh covers:
    • stable, nightly (skipping drafts and previews) and arm64 releases;
    • a checksum mismatch, which keeps the existing app and the package;
    • a setup that stops partway, which leaves no AppImage so a retry finishes it;
    • a % in the home path;
    • the launcher entry and icons;
    • the t3 link cases.
  • The new t3code-migration-test.sh covers both channels, a user who already has the app, a user who never ran T3 Code, and a failed install staying pending.
  • remove-ai-test.sh covers the new artifacts and keeps a user's own t3.
  • These pass, along with ./test/cli, the menu tests (menu, menu-guards, menu-guard-budget) and the i18n checks (I18N_STRUCTURAL=1, extract-scan --check).
  • The real Stable and Nightly AppImages downloaded into a throwaway home, matched their feed checksums, and produced a launcher that passes desktop-file-validate and registers x-scheme-handler/t3code.
  • A hands-on run on one Omarchy machine passed. A second machine, to check Update Everything across machines, is still to come. shellcheck wasn't available where this was written.

Not in this change:

  • On a machine with several users, the first user's migration removes the package, so another user who also ran T3 Code reinstalls it from the menu. Their data is kept.
  • After switching channels in the app, the launcher keeps the installed channel's name and icon.
  • manual/17-ai.md still says an app's update button doesn't update mise-installed agents. T3 Code's will once ryanrhughes/t3code feat/mise-provider-updates ships upstream. That branch makes T3's provider updates run mise upgrade.

AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5-5; version: 2.1.296.

T3 Code came from the t3code-bin package, which T3 Code's own updater cannot touch: on Linux it only updates an AppImage or a .deb. The app still offered an update that then failed, and Nightly needed a second package.

The installer now asks for Stable or Nightly and installs the official AppImage under ~/.local/share/t3code, verified against the sha512 in the feed the app's updater reads. The file name carries no version, so the updater replaces it in place and the launcher stays valid. fuse3 provides the setuid fusermount the AppImage runtime mounts through. The launcher entry and icons come from upstream's entry inside the AppImage, which carries the t3code:// handlers, and ~/.local/bin/t3 links to the launcher the app writes on start. The palette is still selected before the first launch, through the CLI bundled in the mounted AppImage, the same way the package's /usr/bin/t3 ran it.

A migration replaces t3code-bin with Stable and t3code-nightly-bin with Nightly for a user who has run T3 Code, keeping ~/.t3, and drops the package only once the app is in place. Removal also takes the app, both launcher entries, the icons, the updater cache and the t3 link.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@greptile-apps

greptile-apps Bot commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; all three previous findings are addressed, and no new actionable issue was found.

Summary

T3 Code now installs from its official Stable or Nightly AppImage instead of a package, allowing the app to update itself.

  • T3 Code installs from a Stable or Nightly AppImage that updates itself.
  • The T3 Code migration keeps existing users on their current channel.
  • Remove > AI clears the AppImage and its T3 Code launch files.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Choose Stable or Nightly] --> B[Download release feed and AppImage]
  B --> C{Checksum matches?}
  C -- No --> D[Stop and keep existing app and package]
  C -- Yes --> E[Install icons, desktop entry, and command link]
  E --> F[Move AppImage into place]
  F --> G[Remove old packages]
  G --> H[Select Omarchy theme and open app]
Loading

Reviews (2) · Last reviewed commit: "Finish T3 Code's setup before its AppIma..." · Reviewed by Greptile

Comment thread migrations/1792345511.sh Resolved
Comment thread bin/omarchy-install-t3code-app Resolved
Comment thread bin/omarchy-install-ai-t3-code Resolved
The migration and the Install menu treat an installed AppImage as a finished install. It used to be moved into place before the launcher, icons and `t3` link were written, so a setup that stopped in between left a retry dropping the package without a launcher. The verified download now provides the launcher entry and icons, and moves into place last.

The launcher's Exec doubles a literal % in the AppImage path, since launchers expand %-field codes there. An install interrupted while T3 Code's CLI runs from the mounted AppImage now unmounts it on the way out: the mounter is a background job, which ignores Ctrl-C.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

2 participants