Skip to content

Fix Windows OpenCode JSON capability false negatives#3925

Merged
CompleteDotTech merged 3 commits into
mainfrom
fix/opencode-windows-capability-fallback
Jul 26, 2026
Merged

Fix Windows OpenCode JSON capability false negatives#3925
CompleteDotTech merged 3 commits into
mainfrom
fix/opencode-windows-capability-fallback

Conversation

@CompleteDotTech

Copy link
Copy Markdown
Member

What changed

  • preserve a recently verified OpenCode JSON capability only when a new Windows help probe is transiently unavailable
  • bind that fallback to the familiar scope, launcher fingerprint, reported version, and a 60-second lifetime
  • distinguish an unavailable capability probe from a confirmed lack of JSON support, avoiding a false error issue in progress UI

Why

PowerShell/npm launcher cold starts or transient failures can leave opencode run --help incomplete. The previous implementation treated this lack of evidence as proof that JSON was unsupported, disabling tool activity even when the installed client supports --format json.

Impact

Windows users retain structured OpenCode tool activity across a short transient probe failure when the same launcher was just verified. New, changed, expired, or unverified launchers still fail closed to plain chat.

Validation

  • chat-send-capabilities.test.ts
  • opencode-compatibility.test.ts
  • harness-routing-opencode.test.ts
  • live capability check against installed OpenCode 1.18.5: verified JSON support resolves to opencode-run-json-v1

@CompleteDotTech CompleteDotTech self-assigned this Jul 26, 2026
@CompleteDotTech
CompleteDotTech marked this pull request as ready for review July 26, 2026 19:33
@CompleteDotTech
CompleteDotTech force-pushed the fix/opencode-windows-capability-fallback branch from 0f925ef to 6979d4e Compare July 26, 2026 19:50
@CompleteDotTech
CompleteDotTech merged commit 38b4c0b into main Jul 26, 2026
15 checks passed
@CompleteDotTech
CompleteDotTech deleted the fix/opencode-windows-capability-fallback branch July 26, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant