fix: pin native exports to stage execution service

This commit is contained in:
2026-10-20 21:46:42 +01:00
parent 1f867d4827
commit bb98bde4fc
20 changed files with 420 additions and 74 deletions
+9
View File
@@ -135,6 +135,9 @@ func (c OpenCodeClient) call(ctx context.Context, method, path string, body any)
if c.ArtifactsDir != "" {
cmd.Env = append(os.Environ(), ArtifactsEnv+"="+c.ArtifactsDir)
}
if c.connection != nil {
c.connection.PinCLI(cmd)
}
stdout := &boundedBuffer{limit: maxModelResponse}
stderr := &boundedBuffer{limit: 8 << 10}
cmd.Stdout = stdout
@@ -279,6 +282,12 @@ func (c *OpenCodeClient) Generate(ctx context.Context, config ModelConfig, promp
defer connection.Close()
c.connection = connection
c.Backend = connection.Backend
if c.Backend == "v2" {
c.Reference, err = connection.Reference()
if err != nil {
return "", err
}
}
}
directory := c.Directory
if directory == "" {