fix: skip repeated OpenCode binary validation
OpenCode startup on Linux ARM could run a --version probe before launching the configured Runtime and recheck registered remote binary metadata. Execution now trusts the selected path and registered manifest identity after setup-time verification, so switching and cold launch avoid duplicate binary work. Release note: 优化 Linux ARM 上切换 OpenCode 的启动速度;已安装或已登记的 Runtime 在执行时不再重复启动或检查二进制。
This commit is contained in:
@@ -678,6 +678,7 @@ async function defaultDetectBinary(
|
||||
return detectRuntimeBinary({
|
||||
binaryPath: configuredPath,
|
||||
bundledPath,
|
||||
validation: 'path-only',
|
||||
binaryNames: [runtime],
|
||||
label: 'OpenCode CLI'
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user