Share repair histories while debug artifacts wait for indices

This commit is contained in:
2026-11-17 04:29:02 +00:00
parent 743e64a07a
commit 7f7aea0921
6 changed files with 93 additions and 15 deletions

View File

@@ -28,10 +28,11 @@ import (
)
type repairClient struct {
t *testing.T
outputs []string
calls []structuredoutput.Request
err error
t *testing.T
outputs []string
calls []structuredoutput.Request
err error
capturePrepared func(*structuredoutput.PreparedSnapshot)
}
func TestRepairBranchesRetargetAndPreserveOtherApprovals(t *testing.T) {
@@ -474,6 +475,9 @@ func (c *repairClient) Coordinate(ctx context.Context, _ *structuredoutput.Excha
return false, err
}
return client.Coordinate(ctx, base.Exchange, budget, func(ctx context.Context, turn structuredoutput.Turn) (*structuredoutput.Request, error) {
if turn.Response != nil && c.capturePrepared != nil {
c.capturePrepared(turn.Response.Prepared)
}
req, err := next(ctx, turn)
if req != nil && err == nil {
selected = req