GeezerVison is showing github.com — fix(server): mise-installed providers update through mise instead of … · adampeterhiggins/t3code@ade4730
File treeExpand file treeCollapse file tree Open diff view settings apps/server/src/provider/Drivers provider-opencode/src/server
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: apps/server/src/provider/Drivers/ClaudeMaintenance.ts +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -27,6 +27,7 @@ const NativeVersion = Schema.String.check(Schema.isPattern(/^\d+\.\d+\.\d+$/)); | 27 | 27 | const update = makePackageManagedProviderMaintenanceResolver({ | 28 | 28 | provider: ProviderDriverKind.make("claudeAgent"), | 29 | 29 | npmPackageName: "@anthropic-ai/claude-code", | | 30 | + mise: { tool: "claude" }, | 30 | 31 | nativeUpdate: { | 31 | 32 | args: ["update"], | 32 | 33 | isCommandPath: (commandPath) => { | |
Collapse file Copy file name to clipboardExpand all lines: apps/server/src/provider/Drivers/CodexDriver.ts +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -81,6 +81,7 @@ function makeCodexMaintenanceResolver(sharedHomePath: string) { | 81 | 81 | return makePackageManagedProviderMaintenanceResolver({ | 82 | 82 | provider: DRIVER_KIND, | 83 | 83 | npmPackageName: "@openai/codex", | | 84 | + mise: { tool: "codex" }, | 84 | 85 | nativeUpdate: { | 85 | 86 | args: ["update"], | 86 | 87 | isCommandPath: (commandPath) => codexStandaloneHome(commandPath) !== null, | |
Collapse file Copy file name to clipboardExpand all lines: docs/internals/providers.md +10-2Lines changed: 10 additions & 2 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -88,8 +88,16 @@ either the resolved path or its real target, since those installers place real f | 88 | 88 | symlinks there. Volta is proven by its `volta-shim` link plus the package's image directory. When | 89 | 89 | nothing is proven, the provider's own updater (`claude update`, `codex update`, `opencode upgrade`, | 90 | 90 | `pi update --self`, `grok update`) runs instead, because each one detects its installer itself; | 91 | | -the runner's version check catches an updater that exits 0 without updating. Mise installs stay | 92 | | -manual-only because their version is pinned in mise's config. A Grok cask whose Homebrew prefix | | 91 | +the runner's version check catches an updater that exits 0 without updating. Mise is checked | | 92 | +first, since a `mise x` wrapper can sit at a native installer's path, and `MISE_DATA_DIR` can put | | 93 | +installs anywhere, so `mise which` is asked whenever mise is on `PATH`. Each driver names its fixed | | 94 | +mise tool; mise must resolve the binary and list it in an active install of that tool requested as | | 95 | +`latest`, which gets `mise upgrade <tool>`. T3 Code keeps launching the configured path, so that | | 96 | +path must be a shim or under the tool's `latest` link, which the upgrade repoints: a version | | 97 | +directory (including one `mise activate` put on `PATH`) would keep running the old binary until mise | | 98 | +prunes it. Everything else mise touches (fixed version paths, pinned tools, wrappers, OpenCode 1.x, | | 99 | +whose mise tool crosses into 2.x) stays manual-only, so T3 Code never edits mise config. `mise latest` supplies the version, because settings such as | | 100 | +`minimum_release_age` can hold mise behind npm. A Grok cask whose Homebrew prefix | 93 | 101 | cannot be verified also stays manual-only: `grok update` would install a second copy. npm updates pin `--prefix` because the | 94 | 102 | `npm` on `PATH` can belong to a different Node than the one that owns the provider. Homebrew | 95 | 103 | compares against `brew info` since casks trail npm by hours; native installs share npm's version | |
Collapse file Copy file name to clipboardExpand all lines: docs/user/install.md +8-6Lines changed: 8 additions & 6 deletions - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -204,12 +204,14 @@ on the environment's machine. An unlisted version is unverified. | 204 | 204 |
| 205 | 205 | When a provider CLI is behind its latest release, its provider card shows the | 206 | 206 | available version. **Update now** runs the installer that owns the CLI | 207 | | -(Homebrew, or a global npm, pnpm, Yarn, Bun, Volta, or Vite+ install), or the | 208 | | -CLI's own update command when T3 Code cannot tell. Update a CLI installed with | 209 | | -mise through mise. Cursor and Antigravity update with T3 Code. Homebrew and | 210 | | -Chocolatey installs compare against the version their package manager offers, | 211 | | -which can trail the npm release; update Claude installed with Chocolatey | 212 | | -through Chocolatey. | | 207 | +(Homebrew, mise, or a global npm, pnpm, Yarn, Bun, Volta, or Vite+ install), or | | 208 | +the CLI's own update command when T3 Code cannot tell. T3 Code runs `mise upgrade` | | 209 | +only for a tool your mise config requests as `latest` when the provider's binary | | 210 | +path is a mise shim or under the tool's `installs/<tool>/latest` link; update a | | 211 | +pinned version, or a path into one version's directory, through mise yourself. | | 212 | +Cursor and Antigravity update with T3 Code. Homebrew and Chocolatey installs | | 213 | +compare against the version their package manager offers, which can trail the | | 214 | +npm release; update Claude installed with Chocolatey through Chocolatey. | 213 | 215 |
| 214 | 216 | Add another provider instance for a separate account or configuration. Each | 215 | 217 | instance can have its own environment variables, such as API keys or a custom | |
|