GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [Bug]: Usage scanning still makes mise download Muse on every refresh, filling the disk with partial downloads (follow-up to #33415) · Issue #38151 · pingdotgg/t3code

[Bug]: Usage scanning still makes mise download Muse on every refresh, filling the disk with partial downloads (follow-up to #33415) #38151

New issue
Copy link
New issue
Copy link
Closed
#38158
Closed
[Bug]: Usage scanning still makes mise download Muse on every refresh, filling the disk with partial downloads (follow-up to #33415)#38151
#38158
Copy link

Description

@SmokeTag
SmokeTag
opened on Nov 17, 2026
Issue body actions

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

  1. 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.
  2. Throttle downloads, or use a link where ~467 MB takes longer than the SDK startup timeout.
  3. Run the T3 Code server and let usage refresh, or open the Usage page.
  4. 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

Activity

  1. juliusmarminge
    closed this as completedin #38158on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.