Muse is still Unavailable by default on Windows: the version check keeps its 4-second timeout

Aberta Para iniciantes
#41,897 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
2/5
Tempo estimado
1-3 horas
Facilidade para iniciantes
70/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
typescript
Domínio
backend

Direção de pesquisa

Comece em packages/provider-muse/src/server/status.ts em checkMuseProviderStatus, que chama resolveProviderProbeTimeoutMs("muse", DEFAULT_TIMEOUT_MS, …); depois leia modelCatalog.ts, onde o orçamento de inicialização mais o de timeout de inicialização da probe do catálogo é definido. Adicione um resolveMuseProbeTimeoutMs ciente de plataforma que soma ~12 s em win32 (4 s → 16 s para a verificação de versão, 8 s → 20 s para a inicialização do catálogo) enquanto ainda permite que T3CODE_MUSE_PROBE_TIMEOUT_MS faça override, e conecte-o em status.ts. Pronto significa que um teste unitário cobrindo win32 vs. outras plataformas e o override por env passa, e os testes existentes da probe do Muse continuam passando.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

via-triage
What happened

On Windows, Settings → Providers shows Muse Code as Unavailable · Muse Code CLI version check timed out. Running muse --version in a terminal works.

This is the same symptom as #24165. That issue was closed after #33275 added T3CODE_MUSE_PROBE_TIMEOUT_MS, but the default is still 4 seconds. On Windows, Muse stays unavailable until the user finds and sets that variable.

Diagnosis

checkMuseProviderStatus (packages/provider-muse/src/server/status.ts) runs muse --version with resolveProviderProbeTimeoutMs("muse", DEFAULT_TIMEOUT_MS, …). That is 4,000 ms unless the env override is set. It is unchanged on main (ae926f6579).

On Windows, muse resolves to the official launcher, muse.cmd. The launcher starts Windows PowerShell 5.1, which runs .muse-launcher.ps1, which then runs muse-bin-<version>.exe. #24165 also found that Muse runs about 4 seconds slower inside a Windows job object, and the T3 server runs inside one.

On this machine the launcher alone exceeds the 4-second budget on every run. Calling the binary directly takes 0.17 s (timings under Evidence).

The model-catalog probe that follows allows 8 s for startup plus 4 s, which is also tight when the launcher takes 5–8 s.

Suggested fix: give Muse a longer default on Windows instead of relying on the opt-in variable. For example, add about 12 s to Muse's probe deadlines on win32: the version check goes from 4 s to 16 s, and catalog startup from 8 s to 20 s, which matches the 20 s session-startup default in sdk.ts. T3CODE_MUSE_PROBE_TIMEOUT_MS would still extend these. The patch is small (a platform-aware resolveMuseProbeTimeoutMs in modelCatalog.ts, used by status.ts, plus a unit test). I can open a PR if that approach works for you.

Steps to reproduce
  1. On Windows 11, install Muse Code with the official installer (%LOCALAPPDATA%\Programs\muse\muse.cmd) and run muse login.
  2. In the T3 Code desktop app (Nightly), enable Muse Code in Settings → Providers.
  3. The status shows Unavailable · Muse Code CLI version check timed out.
  4. Optional: time cmd /d /c muse.cmd --version with MUSE_NO_AUTO_UPDATE=1. It takes 5–8 s.
Version

T3 Code desktop v0.1.12-nightly.20261123.5165, with a local server.

Environment

Windows 11 Pro (build 26300), x64, T3 Code desktop app (Nightly) with a local server, Muse Code 1.4.25 (1.4.25-R9361.1) through the official Windows launcher.

Evidence

muse --version on an idle machine, spawned the way T3 spawns it (cmd /d /c muse.cmd --version, MUSE_NO_AUTO_UPDATE=1, output redirected), from a shell running under the T3 server:

launcher (muse.cmd):  5.45 s, 6.03 s, 6.51 s, 6.78 s, 7.73 s
binary called directly: 0.17 s
Related issues
  • #24165: same symptom; closed as fixed by #33275, and confirmed again after it closed
  • #33275: added T3CODE_MUSE_PROBE_TIMEOUT_MS
Fix applied or workaround

Add T3CODE_MUSE_PROBE_TIMEOUT_MS=20000 to the Muse Code instance's environment variables in Settings → Providers, then refresh its status.

Filed by

Claude Code (Claude Opus 5.5), following the T3 Code triage playbook.

Linguagem predominante
TypeScript
Estrelas
24.8k
Forks
6.4k
Merge médio
1h 27min
PRs com merge (30d)
530

Preparar o ambiente

Abrir no Codespaces

Inicia o contêiner de desenvolvimento do projeto no navegador, com a sua própria conta do GitHub.

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de pingdotgg/t3code

Todas as issues de pingdotgg/t3code

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.