Skip to content

Theme existing T3 Code installs without opening T3 Code - #14178

Merged
ryanrhughes merged 6 commits into
omacom:quattrofrom
manuaudio:fix/t3code-migration-no-launch
Oct 20, 2026
Merged

ryanrhughes merged 6 commits into
omacom:quattrofrom
manuaudio:fix/t3code-migration-no-launch

Conversation

@manuaudio

@manuaudio manuaudio commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Anyone with T3 Code installed gets the app opened partway through omarchy update, or when running omarchy-migrate from the login notification. The transcript also says T3 Code was installed even though nothing changed. No other migration launches an app.

Migration 1789091250 only needs to apply the Omarchy theme, but it calls the full omarchy-install-ai-t3-code installer. That installer ends by launching T3 Code and printing its install message.

I changed the migration to run only the theme steps: render the palette if the current theme predates the T3 template, publish it with omarchy-theme-set-t3code, then select it with t3 theme set omarchy. It honors T3CODE_HOME the same way as the installer. Because the migration has not shipped in a tagged release, fixing it in place avoids giving late updaters the broken behavior first.

The focused regression failed on current quattro at the migration does not open T3 Code, with setsid uwsm-app -- gtk-launch t3code in the call log. It now passes installed, missing-palette, custom-home, and absent-package cases. After review found that the missing-palette case mocked the helpers it meant to prove, I replaced those mocks with the real refresh, renderer, and publisher. Removing the mocks first failed at the palette is published to T3 Code; the corrected fixture passes and verifies the rendered file has resolved colors.

The focused migration, installer, and removal tests pass, along with Bash syntax checks and git diff --check. I did not verify the migration against a live T3 Code window.

Users with T3 Code had the app opened in the middle of omarchy update.
The migration that activates the Omarchy theme for existing installs
re-ran the whole installer, and the installer finishes by launching the
app and announcing that T3 Code has been installed.

Run only the installer's theme steps in the migration: render the
palette when the current theme predates the template, publish it, and
select it with the T3 CLI, honouring T3CODE_HOME the same way.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_012cEGKnoy56LPPiFKucTexU
@greptile-apps

greptile-apps Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the custom-home issue is fixed and no new actionable issues were found.

Summary

The PR moves T3 Code theming into the package-to-AppImage migration without opening the app.

  • T3 Code migrations now replace packages after theming the app, without opening it.

No new actionable issues were found. Tests were inspected but not run during this review.

Diagram

%%{init: {'theme': 'neutral'}}%%
flowchart TD
  A[Run T3 Code migration] --> B{Old package installed?}
  B -- No --> C[Exit without changes]
  B -- Yes --> D{User data exists?}
  D -- No --> C
  D -- Yes --> E[Install matching AppImage channel]
  E --> F[Render missing palette]
  F --> G[Publish and select Omarchy theme]
  G --> H[Remove old packages]
  H --> I[Finish without opening T3 Code]
  E -- Failure --> J[Leave package installed for retry]
  G -- Failure --> J
Loading

Reviews (4) · Last reviewed commit: "Count a custom T3CODE_HOME as having run..." · Reviewed by Greptile

@manuaudio

Copy link
Copy Markdown
Contributor Author

Greptile correctly caught that the missing-palette case mocked both helpers it was meant to prove. Commit 79fcff5 now gives the fake home a current Tokyo Night theme and runs the real refresh, template renderer, and T3 publisher. Removing the mocks first failed at the palette is published to T3 Code; the corrected focused test passes all three cases and verifies the rendered palette is published with resolved colors. The related installer and removal tests, Bash syntax checks, git diff --check, and the fresh Codex review also pass.

@omarchybot

Copy link
Copy Markdown
Collaborator

Looked at this at 79fcff5: I read the diff against quattro, the installer it takes the theme steps from (bin/omarchy-install-ai-t3-code), and omarchy-theme-set-t3code. Nothing has been run yet, and nothing has been fixed or pushed.

The review stopped at classification. Two models classify each item separately before it goes further, and the second opinion (Codex Medium) did not answer because its daily review budget was used up. So this one has no bug label and has not been run on a worker yet. The first reading has it as a bug fix: the migration calls the full installer, which launches T3 Code. No other open pull request touches this migration or the T3 Code scripts.

Next: it goes back to the maintainer's queue, to be classified again when a second opinion can run. Then it gets the usual check, reproduced on a worker against quattro and the head. Nothing is needed from you for now.

Migration 1789091250 ran the full installer for t3code-bin users, which
now asks for a channel and opens T3 Code partway through the update.
1792345511 already replaces either package with its own channel, so it
now runs the installer with that channel and --no-launch, which also
selects the Omarchy theme for both channels. 1789091250 never shipped
in a tag, so it goes.
The app installer dropped the package before the theme was selected, so
a failed or interrupted selection left the migration pending with no
package for it to find, and the retry never themed T3 Code. The package
now goes last, so the migration keeps finding it and retries the whole
install.
Comment thread migrations/1792345511.sh Resolved
@ryanrhughes
ryanrhughes merged commit e787ccd into omacom:quattro Oct 20, 2026
2 checks passed
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.

3 participants