From 2de3356a07108fa3601a5ee2954aaa925ecf317d Mon Sep 17 00:00:00 2001 From: Fini Date: Sat, 4 Jul 2026 02:19:29 +0800 Subject: [PATCH] fix(ai): drop retired element tool from the reveal gate The loop reveal gate still matched the removed emit_elements constant after rebasing onto its retirement; batch_design is the only canvas-writing loop tool left. --- crates/op-host-services/src/design_agent_tools.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/op-host-services/src/design_agent_tools.rs b/crates/op-host-services/src/design_agent_tools.rs index 6c5904214..1a4989e46 100644 --- a/crates/op-host-services/src/design_agent_tools.rs +++ b/crates/op-host-services/src/design_agent_tools.rs @@ -210,7 +210,7 @@ fn design_tool_registry(state: &EditorState, requested: &str) -> ToolRegistry { } fn should_register_batch_reveals(name: &str, indicator_epoch: Option) -> bool { - indicator_epoch.is_some() && matches!(name, "batch_design" | EMIT_ELEMENTS_TOOL) + indicator_epoch.is_some() && name == "batch_design" } fn collect_active_node_ids(state: &EditorState) -> HashSet {