The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(ci): card-tool contract test reads the as-const list and runs on desktop edits (#128010)
Mark S.ca705dbf7ef8
diff --git a/scripts/ci/classify_changes.py b/scripts/ci/classify_changes.pyindex 2b0b830b052..b0f0ee0c2bd 100644--- a/scripts/ci/classify_changes.py+++ b/scripts/ci/classify_changes.py@@ -102,6 +102,8 @@ _PY_RELEVANT_CONTRACT_FILES = {"apps/shared/src/gateway-contract.openrpc.json",# tests/hermes_cli/test_desktop_slash_registry.py"apps/desktop/src/lib/desktop-slash-registry.json",+ # tests/tui_gateway/test_show_reasoning_display_gate.py (card-tool names vs the gateway lifecycle set)+ "apps/desktop/src/lib/tool-render-class.ts",}# CI-sensitive files: eslint config, workflow files, composite actions.diff --git a/tests/ci/test_classify_changes.py b/tests/ci/test_classify_changes.pyindex c676b6892c3..807f04fbcf4 100644--- a/tests/ci/test_classify_changes.py+++ b/tests/ci/test_classify_changes.py@@ -115,6 +115,10 @@ CASES = {["apps/desktop/src/lib/desktop-slash-registry.json"],_lanes(python=True, frontend=True),),+ "desktop card-tool names → python + frontend": (+ ["apps/desktop/src/lib/tool-render-class.ts"],+ _lanes(python=True, frontend=True),+ ),# The published CIMD document is asserted about by the Python suite, so a# lone edit there must not skip the lane that would catch a bad edit."cimd document → python + site": (diff --git a/tests/tui_gateway/test_show_reasoning_display_gate.py b/tests/tui_gateway/test_show_reasoning_display_gate.pyindex 3ca92781ccb..37720ec5bc9 100644--- a/tests/tui_gateway/test_show_reasoning_display_gate.py+++ b/tests/tui_gateway/test_show_reasoning_display_gate.py@@ -292,9 +292,12 @@ def test_gateway_lifecycle_set_covers_desktop_card_tools():source = ts_path.read_text(encoding="utf-8")def set_literal(var: str) -> set[str]:- match = re.search(rf"const {var} = new Set\(\[(.*?)\]\)", source, re.DOTALL)+ # Either a `new Set([...])` or a `[...] as const` tuple.+ match = re.search(rf"const {var} = (?:new Set\()?\[(.*?)\]", source, re.DOTALL)assert match, f"{var} not found in {ts_path.name}"- return set(re.findall(r"'([^']+)'", match.group(1)))+ names = set(re.findall(r"'([^']+)'", match.group(1)))+ assert names, f"{var} is empty in {ts_path.name}"+ return names# CONNECTION_CARD_KEY is the run-splitter's alias for a manage_connections# part, not a tool name the gateway ever sees.