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 — fix(server): update mise-managed providers through mise by kristofferR · Pull Request #9225 · pingdotgg/t3code

Conversation

@kristofferR

@kristofferR kristofferR commented Sep 2, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

What Changed

Provider update detection now recognises tools that mise manages and updates them with mise upgrade --bump <tool> instead of npm install -g.

Detection covers the three ways a mise-managed binary shows up on PATH:

  • binaries under mise's install tree (~/.local/share/mise/installs/<tool>/<version>/, including the latest symlink and the npm: backend, which maps back to the npm package)
  • mise shims (~/.local/share/mise/shims/<tool>, also on Windows)
  • small wrapper scripts that mise x the tool, which is what Omarchy's omarchy-mise-install writes to ~/.local/bin/<tool>

Binaries under mise's own node install are plain npm globals and keep the npm command. The mise check runs before the native-installer check because an Omarchy wrapper for claude lives at ~/.local/bin/claude, which the native check matched.

Why

Ref #8051. On Omarchy, codex and claude are installed through mise by default, and several commenters on the issue report the same setup. The resolver only knew npm, bun, pnpm, vp, Homebrew, and native installers, so mise installs fell through to the npm command. That either fails or installs a second copy next to the one mise runs. Worse, for claude the wrapper path matched the native-installer check, so T3 Code would run claude update against a binary mise owns.

Reading the resolved command file is limited to files under 4 KiB and is skipped for binaries, so provider creation cost is one stat and one small read next to the existing realPath call.

Checklist

  • This PR is small and focused
  • I explained what changed and why
  • I included before/after screenshots for any UI changes
  • I included a video for animation/interaction changes

Note

Medium Risk
Changes which executable runs for one-click provider updates and reorders detection ahead of native installers; wrong classification could run the wrong upgrade command on user machines.

Overview
Provider maintenance now detects mise-managed CLIs and offers mise upgrade --bump <tool> (lock key mise) instead of defaulting to npm install -g, which could fail or install a duplicate copy.

Detection covers binaries under mise/installs/ (including npm- backends mapped to npm:<package>), mise shims (including Windows .exe), and small wrapper scripts that delegate via mise x/mise exec. Globals under mise’s node install still use npm. The mise branch runs before native-installer detection so wrappers at ~/.local/bin/<tool> are not treated as native claude update targets.

Resolution optionally reads the resolved command file (≤4 KiB) after realPath so wrapper content can be classified; tests cover install tree, npm backend, shims, wrappers vs native, and mise-managed node.

Reviewed by Cursor Bugbot for commit 4fe545c. Bugbot is set up for automated code reviews on this repo. Configure here.

Work done by Claude Fable 5.1 (high) in T3 Code 0.0.39-nightly.20260902.1257.

Note

Add mise upgrade capability for mise-managed providers in providerMaintenance

  • Adds makeMiseProviderMaintenanceCapabilities and resolveMiseTool to detect mise-managed install paths, shims, and wrapper scripts, then route them to mise upgrade --bump instead of native updaters
  • Adds readCommandScript to inspect small (≤4096 bytes) resolved command files so wrapper scripts that exec through mise are recognized
  • Mise detection runs before native installer classification in resolvePackageManagedProviderMaintenance; binaries under mise's Node install stay on npm, and unresolved commands fall back to existing branches
  • Risk: resolveProviderMaintenanceCapabilitiesEffect now reads the resolved command file during capability resolution — files that are non-regular, larger than 4096 bytes, or unreadable produce no script content but the stat/read attempts are new I/O on the resolution path

Macroscope summarized 4fe545c.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

vytorrennan reacted with hooray emoji
All reactions
  • 🎉 1 reaction
@kristofferR
fix(server): update mise-managed providers through mise
4fe545c
Provider update capabilities were resolved from the binary path and only
knew npm, bun, pnpm, vp, Homebrew, and native installers. A provider
installed with mise fell through to `npm install -g`, which fails or
installs a second copy, and an Omarchy wrapper for claude at
`~/.local/bin/claude` matched the native-installer check so T3 Code would
run `claude update` against a binary that mise owns.

Detect mise through its install tree, its shims, and small wrapper scripts
that `mise x` the tool, and run `mise upgrade --bump <tool>` instead.
Binaries under mise's own `node` install remain ordinary npm globals.

Ref pingdotgg#8051
@kristofferR kristofferR closed this Sep 2, 2026
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:M 30-99 changed lines (additions + deletions). labels Sep 2, 2026
@kristofferR kristofferR reopened this Sep 2, 2026
@macroscopeapp

macroscopeapp Bot commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Not approved

Macroscope's review found this PR not approvable — This production change automatically changes the executable used for one-click provider updates and adds filesystem/script-based mise detection across multiple provider paths. Although focused and tested, it introduces new user-facing update behavior with side-effectful command routing, warranting human review.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Sep 5, 2026
fix(server): preserve native provider executable paths during updates #9850
Merged
fix(server): keep mise-owned npm packages manual-only #9927
Merged
[Bug]: Codex cant update #8051
Closed
@stefanofa stefanofa mentioned this pull request Sep 5, 2026
[Bug]: mise shims make provider updates target the version manager, not the provider #10050
Closed
2 tasks done
@juliusmarminge juliusmarminge mentioned this pull request Sep 5, 2026
fix(server): keep Homebrew mise shims manual-only #10085
Merged
@shivamhwp

shivamhwp commented Sep 11, 2026

Copy link
Copy Markdown
Collaborator

Note: GPT-6 on behalf of shivam (@shivamhwp).

The wrapper scan can select the wrong updater from a comment. A native wrapper containing # Alternative: mise exec unrelated-tool -- tool is classified as mise-owned, so the update action targets unrelated-tool instead of the native provider. A valid exec mise x 'native-package-tool' -- ... wrapper also passes the surrounding single quotes literally in the tool argument.

Restrict detection to the supported executable wrapper syntax, ignore comments, and handle quoting before constructing the argument list. Keep uncertain scripts manual-only. Please rebase this onto the current resolver context and retain the ownership protections from #9927 and #10085. This remains separate from the original Windows optional-binary failure in #8051.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge

juliusmarminge commented Sep 19, 2026

Copy link
Copy Markdown
Member

Thanks for the PR. We're not taking changes to the orchestration and provider layers right now: that part of the server is being rewritten for V2, and merging into the current code would either conflict with or be thrown away by that work.

Closing for now. If this is still an issue once V2 lands, please reopen (or open a fresh PR against the new code) and we'll take a proper look.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Sep 19, 2026
This was referenced Sep 28, 2026
fix(server): only offer claude update for native Claude installs #14170
Merged
feat(server): support updates for mise-managed providers #14949
Closed
@ryanrhughes ryanrhughes mentioned this pull request Oct 19, 2026
fix(server): mise-installed providers update through mise instead of their own updater #21524
Merged
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:M 30-99 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@kristofferR @shivamhwp @juliusmarminge
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.