Skip to content

fix(provider-muse): Muse on Windows waits longer for its version and model probes - #41920

Open
shivamhwp wants to merge 3 commits into
mainfrom
issue-watch/41897
Open

shivamhwp wants to merge 3 commits into
mainfrom
issue-watch/41897

Conversation

@shivamhwp

Copy link
Copy Markdown
Collaborator

Muse's muse --version probe had a 4 s default, and the model-catalog SDK startup had 8 s. On Windows, muse is the official launcher (muse.cmd → PowerShell → muse-bin), which takes 5–8 s to start inside the server's job object. The version check timed out, and Settings → Providers showed Muse as Unavailable. This raises both defaults by 12 s on win32 only: version check 4 → 16 s, catalog startup 8 → 20 s. Linux and macOS keep their defaults, and T3CODE_MUSE_PROBE_TIMEOUT_MS still only extends them.

Refs #41897

Evidence

  • vp test run src/server/modelCatalog.test.ts src/server/status.test.ts in packages/provider-muse: 6 passed. The new test fails on the base commit with expected 8000 to be 20000.
  • vp run check:changed on a fresh machine, at the same tree content as this commit: format, lint, knip, typecheck across 10 packages, and the test files all passed.

Not shown:

  • Windows behavior. Muse was not run on Windows, so the 16 s and 20 s values are not shown to clear the launcher's real start time. The launcher timings (5.45–7.73 s) are the reporter's, on Windows 11 with Muse Code 1.4.25.
  • Settings → Providers before and after. The change applies only on win32, so the Linux view is the same before and after. No web scenario can show this fix.

Overlap: #35417 edits the same version-probe line in status.ts with a global 10 s default. Whichever PR lands second should keep the per-platform defaults here.

Built with Claude Opus 5.5 via Claude Code; reviewed by a Codex session (gpt-6.1-sol) that did not write the code.

🤖 Generated with Claude Code

…model probes

On Windows, `muse` is the official launcher, which takes 5-8 s to start inside the server's job object. The 4 s version check then timed out and Settings showed Muse as Unavailable. Raise both Muse probe defaults by 12 s on win32 only; Linux and macOS keep theirs, and T3CODE_MUSE_PROBE_TIMEOUT_MS still only extends.

Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Thread transfer impact

✅ Thread transfer remains within every enforced ceiling.

Provider Metric Main baseline This PR Impact PR ceiling
Codex Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Codex Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Codex Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Codex Live turn WebSocket decoded 21.5 KiB 21.5 KiB 0 B (0.0%) 24.4 KiB ✅
Codex Live turn messages 1 1 0 (0.0%) 8 ✅
Claude Total thread wire 5.0 KiB 5.0 KiB 0 B (0.0%) 6.8 KiB ✅
Claude Thread snapshot wire 3.8 KiB 3.8 KiB 0 B (0.0%) 4.9 KiB ✅
Claude Live turn WebSocket wire 1.2 KiB 1.2 KiB 0 B (0.0%) 2.0 KiB ✅
Claude Live turn WebSocket decoded 21.9 KiB 21.9 KiB 0 B (0.0%) 24.4 KiB ✅
Claude Live turn messages 1 1 0 (0.0%) 8 ✅

Other scenarios

All 64 scenario measurements match main.

All 64 scenario measurements
Provider Scenario Metric Main baseline This PR Impact PR ceiling
Codex short turn resume WebSocket decoded 10.5 KiB 10.5 KiB 0 B (0.0%) 12.7 KiB ✅
Codex short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn running, cold open HTTP decoded 281.7 KiB 281.7 KiB 0 B (0.0%) 302.7 KiB ✅
Codex long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Codex long turn running, history page HTTP decoded 92.4 KiB 92.4 KiB 0 B (0.0%) 107.4 KiB ✅
Codex long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Codex long turn finished, cold open HTTP decoded 381.5 KiB 381.5 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, socket cold open WebSocket decoded 381.6 KiB 381.6 KiB 0 B (0.0%) 410.2 KiB ✅
Codex long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Codex long turn finished, work page HTTP decoded 186.2 KiB 186.2 KiB 0 B (0.0%) 200.2 KiB ✅
Codex long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Codex idle thread resume WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell snapshot HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Codex fleet shell subscribe WebSocket decoded 65 B 65 B 0 B (0.0%) 200 B ✅
Codex fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Codex fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Codex fleet shell resume check rows 0 0 0 0 ✅
Codex stale shell reload HTTP decoded 42.4 KiB 42.4 KiB 0 B (0.0%) 53.7 KiB ✅
Codex stale shell reload rows 27 27 0 (0.0%) 27 ✅
Codex stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Codex stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Codex stale todo list cold open HTTP decoded 72.4 KiB 72.4 KiB 0 B (0.0%) 83.0 KiB ✅
Codex stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Codex stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Codex stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Codex stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅
Claude short turn resume WebSocket decoded 10.6 KiB 10.6 KiB 0 B (0.0%) 12.7 KiB ✅
Claude short turn resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn running, cold open HTTP decoded 283.3 KiB 283.3 KiB 0 B (0.0%) 302.7 KiB ✅
Claude long turn running, cold open rows 75 75 0 (0.0%) 75 ✅
Claude long turn running, history page HTTP decoded 93.4 KiB 93.4 KiB 0 B (0.0%) 107.4 KiB ✅
Claude long turn running, history page rows 75 75 0 (0.0%) 75 ✅
Claude long turn finished, cold open HTTP decoded 384.2 KiB 384.2 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, socket cold open WebSocket decoded 384.3 KiB 384.3 KiB 0 B (0.0%) 410.2 KiB ✅
Claude long turn finished, socket cold open WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude long turn finished, socket cold open rows 151 151 0 (0.0%) 151 ✅
Claude long turn finished, work page HTTP decoded 188.1 KiB 188.1 KiB 0 B (0.0%) 200.2 KiB ✅
Claude long turn finished, work page rows 150 150 0 (0.0%) 150 ✅
Claude idle thread resume WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude idle thread resume WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell snapshot HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude fleet shell snapshot rows 27 27 0 (0.0%) 27 ✅
Claude fleet shell subscribe WebSocket decoded 66 B 66 B 0 B (0.0%) 200 B ✅
Claude fleet shell subscribe WebSocket messages 1 1 0 (0.0%) 1 ✅
Claude fleet shell resume check HTTP decoded 18 B 18 B 0 B (0.0%) 100 B ✅
Claude fleet shell resume check rows 0 0 0 0 ✅
Claude stale shell reload HTTP decoded 43.0 KiB 43.0 KiB 0 B (0.0%) 53.7 KiB ✅
Claude stale shell reload rows 27 27 0 (0.0%) 27 ✅
Claude stale shell resume WebSocket decoded 140 B 140 B 0 B (0.0%) 400 B ✅
Claude stale shell resume WebSocket messages 2 2 0 (0.0%) 2 ✅
Claude stale todo list cold open HTTP decoded 73.4 KiB 73.4 KiB 0 B (0.0%) 83.0 KiB ✅
Claude stale todo list cold open rows 75 75 0 (0.0%) 75 ✅
Claude stale todo list cold open nodes 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open subagents 2 2 0 (0.0%) 4 ✅
Claude stale todo list cold open plans 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open providerTurns 1 1 0 (0.0%) 2 ✅
Claude stale todo list cold open checkpoints 1 1 0 (0.0%) 2 ✅

Baseline: d068997 · PR result: d7a3665 · Source CI: success

Scenario and decoded snapshot size

10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.

  • Codex decoded thread snapshot: 108.5 KiB
  • Claude decoded thread snapshot: 108.8 KiB

Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.

@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

Muse startup and probe timeout resolvers now account for the host platform. Model discovery and provider status checks use these resolvers. Tests cover Linux and Windows values, including a configured probe timeout.

Changes: Muse timeout handling

Layer / File(s) Summary
Resolve timeouts by platform
packages/provider-muse/src/server/modelCatalog.ts, packages/provider-muse/src/server/modelCatalog.test.ts
The startup timeout helper now accepts a platform. The probe timeout helper adds 12,000 ms to the default on Windows before resolving the environment. Tests cover Linux and Windows values, including a configured probe timeout.
Apply timeouts to discovery and status
packages/provider-muse/src/server/modelCatalog.ts, packages/provider-muse/src/server/status.ts
Model discovery passes the host platform to the startup timeout helper. Status checks use the Muse-specific probe and startup timeout helpers with the host platform. The catalog timeout retains an additional 4,000 ms.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Bug fix · Severity of issue fixed: Medium

Possibly related issues

  • Issue 41897 reports that Muse on Windows shows Unavailable after the version probe times out. This PR applies the described Windows-specific probe and catalog timeout increases; the PR does not state that it closes the issue.

Suggested reviewers: juliusmarminge

Merge Risk: Minimal · up to d7a36

This change raises the Muse version-probe and SDK startup timeouts on Windows and leaves other platforms unchanged. It is small and reversible, and there is no concrete merge-blocking risk. The Windows behavior has not been exercised directly.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the change (Muse on Windows gets longer timeouts for its version and model probes) and the provider it affects. It uses the conventional commit form. It matches the raw summary, which …
Description check Passed The description follows the template's main sections. Problem, Change, Scope, and Verification are present, and the Problem section gives the environment and cause (the launcher chain on Windows insid…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the change (Muse on Windows gets longer timeouts for its version and model probes) and the provider it affects. It uses the conventional commit form. It matches the raw summary, which adds a 12,000 ms win32-only increase to the probe timeout and a platform-aware startup timeout.

Full details: Description check

Explanation

The description follows the template's main sections. Problem, Change, Scope, and Verification are present, and the Problem section gives the environment and cause (the launcher chain on Windows inside the job object). The Change section states the per-platform defaults. Scope cites a reference (#41897) but does not state that the PR is a bug fix for an existing issue, and it does not say whether a maintainer asked for the PR. Verification lists focused tests with results and states what was not checked. The description does not name the model and harness, but it does include that line. It also lists a related PR (#35417) that touches the same line.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between bf47848 and d7a3665.

Files selected for processing: 1

  • packages/provider-muse/src/server/modelCatalog.test.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 2 remain after this review.

@juliusmarminge juliusmarminge added the takeover:in-progress A takeover lead is working on this PR label Nov 24, 2026
@juliusmarminge

Copy link
Copy Markdown
Member

The automated pipeline stopped on this pull request and will not merge it:

the fix is written and reviewed, but proving it needs something no worker has:

  • Permanent blocker: Muse Code and an authenticated Muse account are unavailable on all workers, as explicitly stated in the environment brief. The comparison requires the real Windows Muse Code 1.4.25 launcher taking 5–8 seconds. Neither the base timeout nor successful version and model catalog probes on the head was observed.

It stays open for a person to finish or close.

@juliusmarminge juliusmarminge added takeover:blocked Takeover blocked; reason in the PR body and removed takeover:in-progress A takeover lead is working on this PR labels Nov 24, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 30-99 changed lines (additions + deletions). takeover:blocked Takeover blocked; reason in the PR body vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants