Published themes do not appear in Appearance for a paired environment on the same machine #26085
Description#
On Arch Linux, with the T3 Code server running as a service on the same machine, theme files placed in ~/.t3/userdata/themes/ are published correctly, but they do not appear in the Appearance section of the desktop app when the local environment is disabled and the app is connected to the paired environment (archlinux, via LAN). With the local environment enabled, the theme does appear.
Steps to reproduce#
- Place a valid theme in
~/.t3/userdata/themes/senda.json. - Confirm the server publishes it:
t3 theme showprintsPublished themes: senda. - In the desktop app, disable the local environment and keep the paired environment
archlinuxconnected (LAN routehttp://192.168.1.110:3773/). - Open Settings → Appearance.
Expected behavior#
The senda theme appears in the theme list, as it does with the local environment enabled.
Actual behavior#
Appearance only lists the default themes and the themes installed from the interface. senda does not appear.
Notes#
- With the local environment enabled,
sendaappears. - The paired environment is served by the same process that publishes the theme (listening on
0.0.0.0:3773), so the failure seems to be on the client side when listing published themes of a paired environment. - Publishing is handled by the server (
readPublishedThemesand a watcher onthemes/), which picks up file changes without a restart.
Environment#
- OS: Arch Linux, kernel 7.2.11-arch1-1
- Desktop app and server: 0.1.4-nightly.20261027.3783
- Paired environment:
archlinux, two routes (LAN in use, Tailscale)
gpt-5.6-sol responding on behalf of Martin:
Confirmed independently on T3 Code Desktop and server
0.1.5-nightly.20261029.3867with Omarchy on Arch/Hyprland.- The generated source and published
omarchytheme were valid and identical, andt3 theme showreported it as both the environment theme and a published theme. - A fresh browser client connected directly to the server as its primary environment received
omarchyimmediately and rendered the expected canvas and accent. - In the packaged desktop client, with Local environment off and the same server connected through a saved bearer target,
primaryEnvironmentIdwasnull, the environment-theme atom was empty, and resolvingomarchyreturnednull. That missing selection produced the black fallback. - Importing the same palette into the client-local theme library rendered correctly, so this is not a theme-schema or rendering failure.
Turning Local environment back on is not a viable workaround for this topology: the background service already owns the same T3 home, and the desktop's embedded backend refuses the single-owner lock.
A deterministic client-side rule can avoid the multi-environment conflict raised in the earlier report:
- Keep preferring
PrimaryConnectionTargetwhen one exists. - In Desktop only, when no primary exists, use the connected environment whose ID matches the desktop T3 home's
userdata/environment-id. - Do not adopt themes from arbitrary additional environments.
The existing default-theme and environment-theme subscriptions can then use that selected environment, preserving live retinting while the background service remains the sole owner of the T3 home.
GPT-5.6 Sol via T3 Code
- The generated source and published
Yash-Singh1(GitHub profile, opens in a new tab) closed this
#26324 fixed this when the desktop app shares the service's T3 home. It doesn't cover a desktop app running with its own
T3CODE_HOME, which the PR lists as a limit.My setup on Ubuntu,
0.1.11-nightly.20261117.4825:t3code.serviceruns under~/.t3and publishes a theme.t3 theme showlists it, and a browser paired to the service applies it.- The desktop app starts from a launcher with
T3CODE_HOME=~/.t3-desktop, its local environment is off, and it connects to the service through T3 Connect. - Appearance lists only the built-in themes.
The desktop reads its host ID from
~/.t3-desktop/userdata/environment-id, which differs from the service's~/.t3/userdata/environment-id. So the match #26324 added finds nothing, and the theme environment resolves tonull.As a workaround I copied the service's
environment-idinto the desktop home, so the two IDs match, and relaunched the app.Could the desktop also recognize a same-machine service under a different home? For example, it could match a connected environment on the same host, or let Appearance pick which connected environment supplies themes when there's no primary.
Sign in to join this conversation.
Same here on Omarchy (0.1.4-nightly.20261027.3796).
t3code.servicepublishesomarchyandt3 theme showlists it as the environment theme. The desktop app has the local environment off and is connected to that service, and it shows only the standard theme following system light/dark.This looks intended by the current code rather than a listing bug. Environment themes come only from the environment whose catalog entry is a
PrimaryConnectionTarget(apps/web/src/state/primaryEnvironment.ts), and with the local environment off the desktop app has none.docs/user/appearance.mdalso says additional connections don't use them. So the question is whether a paired environment on the same machine, or one the user picks, should supply themes when there's no local environment. Omarchy users who run T3 as a background service are in exactly this setup, so the live palette from #8569 never reaches their desktop app.Opus 5.5 via T3 Code