From 92c3f800554adb44a6205ebbc88a713de07812c1 Mon Sep 17 00:00:00 2001 From: cflmy Date: Wed, 18 Nov 2026 09:59:27 +0800 Subject: [PATCH] fix(agent): compare branch labels using explicit text conversion --- plugins/agent/src/workflow.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/agent/src/workflow.rs b/plugins/agent/src/workflow.rs index dff495e..5e10548 100644 --- a/plugins/agent/src/workflow.rs +++ b/plugins/agent/src/workflow.rs @@ -118,7 +118,7 @@ fn validate_steps(args: &Value) -> Result { } for key in routes.keys() { if !s["options"].as_array().is_some_and(|opts| - opts.iter().any(|x|x==key.as_str())) { + opts.iter().any(|x|x.as_str()==Some(key.as_str()))) { return Err("route label is not a declared choice".into()); } }