| … | … | @@ -345,6 +354,15 @@ export const OpenCodeDriver: ProviderDriver< | |
| 357 | + | // A configured loopback server reports its running version. Probe the local | |
| 358 | + | // CLI separately so a completed npm update is not mistaken for a failure | |
| 359 | + | // while that independently managed server still runs the previous binary. | |
| 360 | + | installedVersion: isLocalOpenCodeServerUrl(effectiveConfig.serverUrl) | |
🟡 Medium server/driver.ts:360
A disabled instance with a saved localhost serverUrl still runs probeOpenCodeBinary during the initial provider check and explicit refresh, potentially delaying the disabled status for the probe’s 10-second timeout. This probe bypasses checkOpenCodeProviderStatus’s disabled early return; gate it on effectiveConfig.enabled as well as the loopback URL.
🤖 Copy this AI Prompt to have your agent fix this:
| 1 | In file @packages/provider-opencode/src/server/driver.ts around line 360: |
| 2 | |
| 3 | A disabled instance with a saved localhost `serverUrl` still runs `probeOpenCodeBinary` during the initial provider check and explicit refresh, potentially delaying the disabled status for the probe’s 10-second timeout. This probe bypasses `checkOpenCodeProviderStatus`’s disabled early return; gate it on `effectiveConfig.enabled` as well as the loopback URL. |
Fixed in 4538f006: the additional local-CLI probe now requires effectiveConfig.enabled. Added an integration regression asserting a disabled loopback instance returns a disabled snapshot without invoking the CLI probe. Focused test suite: 33 passing.
Sorry, I'm unable to act on this request because you do not have permissions within this repository.