Skip to content

Self-improving AI Employees for everyone

test(frontend-guard): "canvas" is a Workspace surface, like "browser"

trohitg3b6f2ade09d7
diff --git a/server/tests/test_frontend_no_node_type_copies.py b/server/tests/test_frontend_no_node_type_copies.py
index 13b02e32..739c532e 100644
--- a/server/tests/test_frontend_no_node_type_copies.py
+++ b/server/tests/test_frontend_no_node_type_copies.py
@@ -30,10 +30,12 @@ CLIENT_SRC = REPO_ROOT / "client" / "src"
# Types too generic to distinguish from ordinary English or CSS in a regex.
# Excluded deliberately: a guard that cries wolf gets disabled, and these are
-# the ones that would. Every excluded type is still covered by the
-# executionTimeoutMs invariant below, which needs no source scanning.
+# the ones that would. "browser" and "canvas" are also the names of Workspace
+# surfaces (the Browser and Canvas tabs, a step's surface). Every excluded
+# type is still covered by the executionTimeoutMs invariant below, which needs
+# no source scanning.
_TOO_GENERIC = frozenset(
- {"start", "console", "shell", "browser", "timer", "location", "code", "gallery"}
+ {"start", "console", "shell", "browser", "canvas", "timer", "location", "code", "gallery"}
)