Repository navigation
Install T3 Code as its self-updating AppImage - #15907
Merged
Merged
Conversation
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]>
Contributor
[Medium impact] The PR appears safe to merge; all three previous findings are addressed, and no new actionable issue was found. SummaryT3 Code now installs from its official Stable or Nightly AppImage instead of a package, allowing the app to update itself.
|
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]>
20 of 34 tasks
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
T3 Code comes from the
t3code-binpackage, 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:
~/.local/share/t3code/T3-Code.AppImage.latest-linux.yml/nightly-linux.yml,-arm64on ARM).SHA256SUMScovers only the CLI archives.fuse3provides the setuidfusermount3the AppImage runtime mounts through.~/.local/share/applications/t3code.desktopand the hicolor icons come from upstream's entry inside the AppImage, sot3code://links still open the app. It's named "T3 Code" or "T3 Code (Nightly)". The app's own hiddencom.t3tools.T3Code.desktoplink handler doesn't collide with it.t3command:~/.local/bin/t3links 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/t3or/usr/bin/t3-nightlymoves over, and at3of the user's own is left alone./usr/bin/t3used. A failed selection still stops the install before launch.1792345511:t3code-nightly-binbecomes Nightly andt3code-binbecomes Stable, for a user who has run T3 Code.~/.t3is 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.~/.cache/t3code-updater,~/.config/t3code-v2and thet3link. Either package is dropped too.Tests:
t3code-install-test.shcovers the channel prompt, the theme selected before launch through the mounted AppImage, and the AppImage being unmounted afterwards, including after a Ctrl-C.t3code-app-install-test.shcovers:%in the home path;t3link cases.t3code-migration-test.shcovers 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.shcovers the new artifacts and keeps a user's ownt3../test/cli, the menu tests (menu,menu-guards,menu-guard-budget) and the i18n checks (I18N_STRUCTURAL=1,extract-scan --check).desktop-file-validateand registersx-scheme-handler/t3code.Not in this change:
manual/17-ai.mdstill says an app's update button doesn't update mise-installed agents. T3 Code's will once ryanrhughes/t3codefeat/mise-provider-updatesships upstream. That branch makes T3's provider updates runmise upgrade.AI-assisted — Tool: Claude Code; model: anthropic/claude-opus-5-5; version: 2.1.296.