Before submitting
- I searched existing issues and did not find a duplicate.
- I included enough detail to reproduce or investigate the problem.
Area
apps/server (packages/provider-muse)
Summary
#33415 / #33448 stopped provider status probes from triggering mise on-demand installs by running them with providerProbeEnvironment (MISE_OFFLINE=1). The Muse usage path was not covered: MuseUsageHome.initialize (called from UsageService.resolveTranscriptDirs → museUsageReader.directories) still starts the Muse SDK with the plain user environment. On Omarchy, muse is a lazy mise tool (muse = { version = "latest", lazy = true, auto_update = "4h" } in /etc/mise/conf.d/omarchy-tools.toml). When Muse isn't installed yet, every usage refresh makes mise start downloading Muse (~467 MB). T3 gives up on the SDK startup and kills the process, and mise leaves an orphaned ~/.cache/mise/invocation-downloads/.tmp* directory behind.
Impact
On one machine with an ~11 MB/s connection this left 233 partial downloads (~36 GB) between Nov 6 and Nov 17 and filled the 58 GB root disk to 100% (28 MB free). With the disk full, the next T3 self-update failed:
ServerSelfUpdateError: Server update failed: Could not prepare [email protected] while writing the t3 release archive.
cloud.pinned_runtime.install_archive → PinnedRuntimeInstallError
The client then sat on "restarting for an update" indefinitely, because the server never handed off to the launcher.
Two other machines with faster connections were not affected: the Muse download finishes inside the startup timeout, so Muse just gets installed silently. This matches the "fast link installs silently, slow link leaks" behaviour described in #33448.
Evidence
~/.t3/userdata/logs/server.trace.ndjson: 35 createMuseSdkHostEffect / MuseUsageHome.initialize failures, MuseSdkError: Muse SDK start failed → Error: Muse SDK initialization timed out. Each lasted exactly 15.0 s on 0.1.9 (4.2 s on later runs).
- The failure timestamps line up one-to-one with the
.tmp* directory mtimes in invocation-downloads (e.g. 11-16 18:58:39, 19:11:06, 20:38:51, 11-17 09:16:59).
~/.local/share/mise/installs/muse/ held three empty version directories; Muse never finished installing.
- Running
mise install muse@latest by hand took 45 s at 11.3 MB/s. After that the failures and the downloads stopped.
Source (v0.1.10 and current main)
packages/provider-muse/src/server/status.ts wraps the environment: providerProbeEnvironment(environment ?? makeMuseEnvironment()) ✅
packages/provider-muse/src/server/usage.ts (~L131–140) does not: usageHome.resolve({ …, environment: makeMuseEnvironment(processEnvironment) }) ❌
MuseUsageHome.ts then calls createMuseSdkHostEffect({ ...input, readOnly: true, startupTimeoutMs: 5_000 }), which spawns the mise shim with that environment.
Steps to reproduce
- Linux with mise and
muse = { version = "latest", lazy = true } (Omarchy default), with Muse not installed yet. The shim on PATH resolves, so the "missing CLI" check in MuseUsageHome.resolve passes.
- Throttle downloads, or use a link where ~467 MB takes longer than the SDK startup timeout.
- Run the T3 Code server and let usage refresh, or open the Usage page.
- Watch
~/.cache/mise/invocation-downloads/ gain a new .tmp* directory each time MuseUsageHome.initialize times out.
Expected behavior
Usage discovery is a background read, like a status probe, and should never install a provider. Passing the usage environment through providerProbeEnvironment (MISE_OFFLINE=1) in usage.ts would make mise fail fast for an uninstalled Muse, the same way the status probe now does. Ideally the other background paths (usage readers for other providers, model discovery) would be checked for the same gap.
Environment
- T3 Code 0.1.9 (serve, systemd user service); code path unchanged in 0.1.10 and
main
- mise 2026.11.2, Omarchy
omarchy-tools.toml
- Linux x86_64 (Arch / Omarchy), btrfs root