Retry bounded budget reads after transient timeouts

This commit is contained in:
2026-11-05 15:48:14 +00:00
parent 3a9ba55277
commit 46f85556af
5 changed files with 261 additions and 10 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ type OpenCodeClient struct {
OnGenerationSession func(id, backend, reference string, active bool) error
connection *opencode.Connection
command func(context.Context, string, ...string) ([]byte, error)
sessionPollInterval time.Duration // test seam; defaults to defaultSessionPollInterval
sessionPollInterval time.Duration // test seam; defaults to defaultSessionPollInterval
budgetReadPolicy budgetReadPolicy // test seam; zero uses bounded production defaults
}
// ArtifactsEnv names the environment variable carrying a stage's artifacts