fix: allow cold managed service discovery only at stage admission

This commit is contained in:
2026-10-20 21:53:18 +01:00
parent bb98bde4fc
commit d3c7e6e784
10 changed files with 276 additions and 6 deletions
+1 -1
View File
@@ -274,7 +274,7 @@ func (c *OpenCodeClient) Generate(ctx context.Context, config ModelConfig, promp
c.Operations.Provider, c.Operations.Model = config.Provider, config.Model
}
if c.command == nil {
connection, err := opencode.Open(ctx, opencode.Executable(), c.Directory, c.Backend)
connection, err := opencode.OpenStage(ctx, opencode.Executable(), c.Directory, c.Backend)
if err != nil {
// Connecting to the service failed before any session existed.
return "", harnessUnreachable(err)