GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |
GeezerVison is showing github.com — feat(server): support updates for mise-managed providers by AI091 · Pull Request #14949 · pingdotgg/t3code Conversation
Contributor
ProblemProvider updates cannot reliably update CLIs installed through mise. An Omarchy wrapper or mise shim can hide the owning tool, and a registry's latest version can differ from the version allowed by the user's mise configuration. ChangeResolve the owning mise tool from the provider's launch path and mise's machine-readable metadata, then run Keep npm globals installed under mise-managed Node on the npm update path, including Node aliases. Fixed executable paths and scripts whose launch behavior cannot be established remain manual. Claude's native updater still requires a proven native installation. Use the installer's reachable target for availability and verify that the provider actually reaches it after an update. A successful command followed by missing version metadata cannot report a no-op as a successful update. The shared path covers Claude, Codex, OpenCode, Pi, and Grok; Cursor and generic ACP retain their manual update behavior. Scope and approvalRevisits #9225 against the V2 provider layer. That PR was closed during the rewrite, with a maintainer invitation to reopen or submit a fresh PR after V2. This draft presents the updated implementation for review. It includes the native Claude ownership protection proposed in #14170. Verification
Native macOS and Windows hosts were not exercised. Windows shim recognition has fixture coverage, but Implemented by Claude Opus 5.5 through Claude Code. Reviewed and independently verified by GPT-6.1-Sol through Codex.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsProviders installed with mise (shims, install paths, `latest` links, and Omarchy's ~/.local/bin wrappers) had no one-click update, and a Claude wrapper at ~/.local/bin/claude was mistaken for the native installer, so Update ran a `claude update` that changed nothing. Ownership now comes from mise itself: the launcher leads to `mise which` and `mise ls --json`, and the install that contains the real binary names the tool, alias or backend spec. The update runs `mise upgrade <tool>` with the mise and environment that resolved it, without `--bump`, and `mise outdated` supplies the newest version the configured request can reach, so an exact pin reads as current. Fixed version directories, wrappers that pin a version or name another tool, and failed probes stay manual-only with a logged reason. npm globals under mise's Node stay npm's. Grok checks mise before falling back to `grok update`. Claude Opus 5.5 via Claude Code. …grade Review found four ways the first pass offered `mise upgrade` for a tool the provider does not actually run, or ran it against the wrong install: - A launcher script counted any `exec` it contained. Only an unconditional top-level `exec` counts now; an exec in a branch, a plain `exit`, a conditionally assigned variable, or a construct the reader does not model leaves the launcher unattributed. - A symlink straight into a version directory was accepted. The launch path's symlinks are traced to the first install entry they reach: mise's `latest` or a range link that contains the target follows an upgrade, a fixed version directory does not. - With mise missing or `mise ls` failing, a mise npm backend under a custom data root fell through to `npm install --prefix`. Paths inside this environment's mise installs now stay manual-only, except globals under mise's Node. - Probes and the upgrade ignored what a launcher exports. They now run with the environment the launcher hands to its exec, and a launcher that changes directory or changes mise's environment on only some runs is declined. The upgrade also passes `--no-prune`, so a running provider keeps its old install, and a launcher's `tool@request` is accepted when it matches the request in mise's config. Claude Opus 5.5 via Claude Code. …se's target The runner judged success with installer metadata read after the command. When that read lost mise's latest version, a no-op `mise upgrade` that left the provider on its old version reported "Provider updated." An installer that reports its own target (mise, Homebrew) now has that target captured before the command, and the refreshed provider must reach it: an older version reads as still outdated, and a missing version as unverifiable. Providers without an installer target keep the existing handling of a transiently unreadable version. A launcher that runs `mise x <tool>@latest` over a different configured request is now supported instead of declined. Its selection is resolved read-only with `mise which --tool`, checked with `mise outdated <tool>@latest`, and upgraded with `mise upgrade --no-prune <tool>@latest`, which leaves the config's request untouched. Other explicit requests still have to match the config's. Claude Opus 5.5 via Claude Code. Claude Opus 5.5 via Claude Code. A provider installed with npm under a Node that mise names by an alias (`node-lts` backed by `core:node`) was taken for that tool: Update offered `mise upgrade node-lts` and advertised Node's latest as the provider's. Only a literal `node` key was recognized. When the binary sits inside node_modules of a tool that is not an `npm:` key, mise is asked for the tool's backend (`mise tool --backend`). A Node backend leaves the package to npm at that prefix, an npm backend keeps the mise upgrade, and anything unproven stays manual-only. Claude Opus 5.5 via Claude Code. …t keep npm updates The npm prefix guard rejects any `/mise/installs/<tool>/` other than `node`, so it still dropped a global under `node-lts` in the default `~/.local/share/mise` root after mise had proven `node-lts` is `core:node`. The Node install mise identified now travels with the npm-global verdict, and the guard lets through exactly that prefix. mise npm backends and unproven paths keep the guard. Claude Opus 5.5 via Claude Code.
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
ReviewersNo reviewsUh oh!
There was an error while loading. Please reload this page. AssigneesNo one assignedLabels
size:XXL
ProjectsMilestoneNo milestoneDevelopmentSuccessfully merging this pull request may close these issues. Uh oh!
There was an error while loading. Please reload this page. 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. |