Skip to content

armgit / ax

Public Imported from GitHub
0

Agent Executor (AX) is Google's open agentic orchestration runtime

Go

Don't crash when forking (#111)

Jaana Dogan0dc3b7ca75db
diff --git a/internal/controller/controller.go b/internal/controller/controller.go
index 6e17862..a27d9be 100644
--- a/internal/controller/controller.go
+++ b/internal/controller/controller.go
@@ -18,6 +18,7 @@ package controller
import (
"context"
+ "errors"
"fmt"
"os"
"sync"
@@ -146,9 +147,8 @@ func (d *Controller) Fork(ctx context.Context, sourceID, sourceCheckpoint, destI
if destID == "" {
return fmt.Errorf("destination ID is required")
}
- panic("not yet implemented")
- return nil
+ return status.Errorf(codes.Unimplemented, "forking is not supported yet")
}
// Registry returns the agent registry.