fix: use bundled OpenCode path in isolation tests
Cross-platform packages / Validate source (push) Canceled after 0s
GoodBuddy Agent Release / Authorize Agent release (push) Canceled after 0s
Cross-platform packages / Authorize desktop packaging (push) Canceled after 0s
Cross-platform packages / linux arm64 (push) Canceled after 0s
Cross-platform packages / macos arm64 (push) Canceled after 0s
Cross-platform packages / windows arm64 (push) Canceled after 0s
Cross-platform packages / linux x64 (push) Canceled after 0s
Cross-platform packages / macos x64 (push) Canceled after 0s
Cross-platform packages / windows x64 (push) Canceled after 0s
Cross-platform packages / Publish GitHub and OSS release (push) Canceled after 0s
GoodBuddy Agent Release / Build darwin arm64 compound package (push) Canceled after 0s
GoodBuddy Agent Release / Build linux arm64 compound package (push) Canceled after 0s
GoodBuddy Agent Release / Build linux x64 compound package (push) Canceled after 0s
GoodBuddy Agent Release / Sign cumulative Agent catalog (push) Canceled after 0s
GoodBuddy Agent Release / Publish Agent to GitHub and OSS (push) Canceled after 0s

Linux release CI could not start OpenCode because the isolation test assumed a platform-specific npm executable name. Reuse the production runtime path resolver, which matches the installed bin/opencode.exe on all platforms.

Validation: nine focused tests, typecheck, lint, and bilingual release-note verification passed. Product behavior, versions, and release notes remain unchanged; main-branch CI must pass before tagging.
This commit is contained in:
mesalogo
2026-09-23 20:09:05 +08:00
parent 073aa45a30
commit bb8c04af6c
2 changed files with 32 additions and 2 deletions
@@ -10,6 +10,7 @@ import { runtimeSettingsInputSchema } from '../../shared/contracts'
import { RuntimeSettingsStore } from '../runtime-settings-store'
import { applyRuntimeSelection } from './runtime-selection'
import { OpenCodeRuntime } from './opencode-runtime'
import { resolveBundledRuntimePaths } from './bundled-runtimes'
const cipher = {
isAvailable: () => false,
@@ -103,8 +104,9 @@ describe('OpenCode isolated configuration paths', () => {
}))
let launchEnvironment: NodeJS.ProcessEnv = {}
let serverUrl = ''
const binaryPath = join(process.cwd(), 'node_modules', 'opencode-ai', 'bin',
process.platform === 'win32' ? 'opencode.exe' : 'opencode')
const binaryPath = resolveBundledRuntimePaths({
appPath: process.cwd(), resourcesPath: process.cwd(), packaged: false
}).opencode
const runtime = new OpenCodeRuntime({
embedded: true, binaryPath, defaultWorkspace: root,
configPath: source === 'native-empty' ? '' : configPath,