还是修不好

This commit is contained in:
Typer_Body
2026-05-05 16:16:33 +08:00
parent 9706ee2d53
commit 32c9eaff45

View File

@@ -69,6 +69,18 @@ class NodeTypeRegistry:
for registered_type, node_class in self._nodes.items(): for registered_type, node_class in self._nodes.items():
if node_class.type_name == node_type: if node_class.type_name == node_type:
return node_class return node_class
# Lazy-process pending registrations so execution paths that didn't
# explicitly warm the registry can still resolve newly imported nodes.
if get_pending_registrations():
self.process_pending_registrations()
if node_type in self._nodes:
return self._nodes[node_type]
for registered_type, node_class in self._nodes.items():
if node_class.type_name == node_type:
return node_class
return None return None