Native provider updates discarded the resolved executable path and invoked a bare command name. A provider configured outside PATH could run normally but fail its one-click update with ENOENT.
Keep the resolved launcher path for native updates, including symlinked launchers. Installer detection, update arguments, and locking stay unchanged. This covers the native OpenCode and Claude paths; package-managed updates keep their existing commands.
Addresses the native OpenCode and Claude update-path failure in #6115. The report also mentions package-managed Codex and general shell discovery; those paths are not changed here, so the issue should remain open.
Validation against main ed2bdbb:
- Before: all four new regressions fail. A disposable fake updater at an absolute path with spaces fails with
spawnSync scoped-package-tool ENOENT under an empty PATH.
- After: 33 maintenance/resolver tests pass, including the same executable fixture, Windows-style path preservation, and symlink-launcher selection. Server typecheck and targeted lint pass.
- No real provider installation or update was run. Windows path selection is covered by a pure fixture; the executable test ran on Linux.
This is only path preservation. Broader installer ownership and mise routing remain in #9325 and #9225.
GPT 6 Astra via Codex in T3 Code.
Note
Preserve resolved native provider executable paths during updates#
- Fixes native provider maintenance so updates execute through the resolved command path rather than the bare command name from the provider definition.
makeNativeProviderMaintenanceCapabilities now accepts a command-path parameter and uses it as the update executable. resolvePackageManagedProviderMaintenance passes the resolved path when it or its real target matches the native command-path predicate.
- The real target path remains used for native-install identification; only the executable path changes.
- Adds tests covering executables outside PATH, paths with spaces, Unix/Windows absolute paths, and symlink resolution where the launcher differs from the installation target.
- Risk: native updaters previously invoked by bare command name now require the resolved path to exist on disk; if the resolved path becomes stale after an external relocation, updates will fail to launch.
Macroscope summarized f608540.
Thread transfer impact#
✅ Thread transfer remains within every enforced ceiling.
Baseline:
8faf031· PR result:f608540· Source CI: successScenario 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.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed.