fix(agent): compare branch labels using explicit text conversion

This commit is contained in:
cflmy committed 2026-11-18 09:59:27 +08:00
1 parent 8a66f803cb
commit 92c3f80055
1 file changed
+1 -1
+1 -1
View File
@@ -118,7 +118,7 @@ fn validate_steps(args: &Value) -> Result<Value, String> {
}
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());
}
}