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.
This commit is contained in:
Fini 2026-07-04 02:19:29 +08:00
parent 550712b05f
commit 2de3356a07

View file

@ -210,7 +210,7 @@ fn design_tool_registry(state: &EditorState, requested: &str) -> ToolRegistry {
}
fn should_register_batch_reveals(name: &str, indicator_epoch: Option<u64>) -> 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<String> {