fix: preflight the OpenCode PowerShell launcher - #3907
Merged
Conversation
CompleteDotTech
force-pushed
the
fix/opencode-preflight-3862
branch
4 times, most recently
from
July 26, 2026 19:33
f09380d to
eac7c0b
Compare
CompleteDotTech
force-pushed
the
fix/opencode-preflight-3862
branch
from
July 26, 2026 19:34
eac7c0b to
af95b0b
Compare
CompleteDotTech
force-pushed
the
fix/opencode-preflight-3862
branch
from
July 26, 2026 20:20
b0fe39c to
88861eb
Compare
CompleteDotTech
force-pushed
the
fix/opencode-preflight-3862
branch
from
July 26, 2026 20:32
88861eb to
d4aba87
Compare
CompleteDotTech
marked this pull request as ready for review
July 26, 2026 22:47
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Preflight the exact OpenCode launch plan and show unavailable runtimes truthfully in chat and setup UI.
Closes #3862.
Current implementation
runtime_missing) from a preflight-detected broken PowerShell host (runtime_unlaunchable); ambiguous Windows post-preflight ENOENT races remain value-freeruntime_launch_failed.Rebase and validation
Rebased onto current
origin/main14780987and force-pushed headd4aba87d. The existingb0fe39ccfollow-up fixes the branch-caused Frontend build failure:api-contracts.test.tsnow pins the structured post-spawn race code instead of the obsoleteENOENTwire code, including the longer OpenCode classification branch.Passed after this rebase:
opencode-bin,runtime-availability,chat-send-capabilities,harness-routing-opencode,api-contracts, harnesses route, Chat View, Familiar Studio, Summoning Circle, androute-runtime-availability.integration;pnpm lint;pnpm codemod:design:check;pnpm exec tsc --noEmit --pretty false; andgit diff --check.Native Windows note:
route-opencode.integration.test.tscannot isolate its temporary shim on this workstation because the user-globalopencode.cmdis rediscovered through the environment'sPathentry; it therefore follows that global client rather than the fixture. The isolated CI environment covers the intended OpenCode and missing-runtime paths.