fix: allow native tools in manual resume

This commit is contained in:
2026-10-18 21:22:02 +01:00
parent e020d59b07
commit 915fa0a74d
2 changed files with 79 additions and 5 deletions
+1 -5
View File
@@ -459,13 +459,9 @@ func (r *runner) retrySourceCheckpoint(sourceID int64, pinned *protocol.Pipeline
return retryCheckpoint{}, fmt.Errorf("retry source %d cannot replay completed external stage %s", sourceID, failed.Stage)
}
if typ == stage.ModelType {
tools, explicit, toolErr := stage.ToolNames(pipeline.StageDefinition(declared))
if toolErr != nil {
if _, _, toolErr := stage.ToolNames(pipeline.StageDefinition(declared)); toolErr != nil {
return retryCheckpoint{}, toolErr
}
if explicit && len(tools) > 0 {
return retryCheckpoint{}, fmt.Errorf("retry source %d cannot safely replay admitted native stage %s", sourceID, failed.Stage)
}
}
return retryCheckpoint{detail: source, failed: failed, handoff: handoff}, nil
}