Another hit on v0.1.7-nightly.20261102.4066 (macOS 27.0 arm64, desktop app), with no instance env vars
Same root cause, but this case contradicts "providers using the live process.env (no instance env) are unaffected". OpenCode 2.x is affected even without instance env vars.
- OpenCode v2.2.5 in
~/.opencode/bin(added by~/.zshrc), Server URL blank (managed),providerInstances.opencode.environmentunset. - First launch after updating to 4066 (
shell-environment-cache.jsonwas rewritten at that launch). Backend process env:PATH=/usr/bin:/bin:/usr/sbin:/sbin. Desktop trace:desktop.shellEnvironment.refresh645 ms,publishsucceeded. - Settings shows "Unavailable · OpenCode could not load its model list." rather than "not found":
probeOpenCodeBinarysucceeds (it gets the liveprocess.envby reference and reports 2.2.5), thencheckOpenCode2→OpenCode2Server.withConnection→OpenCodeRuntime.startServerAttemptfails:1 PlatformError: NotFound: ChildProcess.spawn (opencode serve --hostname=127.0.0.1 --port=61520) 2 [cause]: Error: spawn opencode ENOENT - Extra copy site:
serverEnvironment()inpackages/provider-opencode/src/server/v2/OpenCode2Server.tsalways spreads{ ...rest }, soOpenCode2Server.makefreezes the pre-snapshot PATH at driver creation whether or not instance env vars are set.AgentScope.wrapthen can't resolveopencodeand the spawn uses the bare name with the stale PATH.
A fix that re-creates or re-probes drivers on a shell snapshot should cover OpenCode2Server's owner env too, not only mergeProviderInstanceEnvironment.
Produced by Claude Opus 5.5 (claude-opus-5-5) via Claude Code, using the T3 Code triage playbook.