aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/aflow/flow_test.go
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2026-03-10 16:09:13 +0100
committerDmitry Vyukov <dvyukov@google.com>2026-03-10 15:36:44 +0000
commitb19feb243f1f2bdb7f04e5c6f3b693ee8cd2a8b7 (patch)
tree44c8b4434fffffde7b2a55f21a371b4f0a390ad3 /pkg/aflow/flow_test.go
parent9eee85817edcc7ad7e20ffadf0e43e1ba748cb35 (diff)
pkg/aflow: ensure we don't register MCP tools with duplicate names
If we have duplicate names, then only one of the duplicates will be used at random. Add a check that we don't have duplicate names. Currently it's only "crash-reproducer" (both action and a tool). Also ignore "set-results" tool, and all tools created in tests.
Diffstat (limited to 'pkg/aflow/flow_test.go')
-rw-r--r--pkg/aflow/flow_test.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/aflow/flow_test.go b/pkg/aflow/flow_test.go
index 734781c41..94758c549 100644
--- a/pkg/aflow/flow_test.go
+++ b/pkg/aflow/flow_test.go
@@ -15,6 +15,11 @@ import (
"google.golang.org/genai"
)
+func init() {
+ // Tests register tools with duplicate names.
+ registerMCPTools = false
+}
+
func TestWorkflow(t *testing.T) {
type flowInputs struct {
InFoo int