From 4607f2a590b7650142f03c8c005afe2ec78b325b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Ruiz=20Garc=C3=ADa?= Date: Mon, 15 Jun 2026 19:47:10 +0200 Subject: [PATCH 1/2] fix: silence catalog.updated, integration.updated, and plugin.updated lifecycle events Add catalog.updated, integration.updated, and plugin.updated to the StateTracker's silent-drop set, consistent with existing handling of plugin.added, connector.updated, and reference.updated. Closes #62 --- tests/test_new_serve_stack.py | 3 +++ tools/events/state_tracker.py | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_new_serve_stack.py b/tests/test_new_serve_stack.py index c14f2b0..7f64835 100644 --- a/tests/test_new_serve_stack.py +++ b/tests/test_new_serve_stack.py @@ -51,8 +51,11 @@ def test_empty_ingest_returns_empty(self, tracker): @pytest.mark.parametrize("event_type", [ "plugin.added", + "plugin.updated", "connector.updated", "reference.updated", + "catalog.updated", + "integration.updated", ]) def test_bootstrap_lifecycle_events_silently_dropped(self, tracker, event_type): assert tracker.ingest({"type": event_type, "properties": {"id": "test"}}) == [] diff --git a/tools/events/state_tracker.py b/tools/events/state_tracker.py index 7eae384..8c6632a 100644 --- a/tools/events/state_tracker.py +++ b/tools/events/state_tracker.py @@ -113,8 +113,9 @@ def ingest(self, event: dict[str, Any]) -> list[dict[str, Any]]: return [mapped] if mapped else [] if event_type in ("session.updated", - "plugin.added", "connector.updated", - "reference.updated"): + "plugin.added", "plugin.updated", + "connector.updated", "reference.updated", + "catalog.updated", "integration.updated"): return [] # Pass-through events that don't need accumulation. From 5fda3070b6d8517e151f9a0cd60a0b696109e522 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Ruiz=20Garc=C3=ADa?= Date: Tue, 16 Jun 2026 02:17:59 +0200 Subject: [PATCH 2/2] test: avoid opencode shell output race in parity fixture --- tools/mock-llm-scripts/comprehensive.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mock-llm-scripts/comprehensive.json b/tools/mock-llm-scripts/comprehensive.json index 7063ec3..df8430b 100644 --- a/tools/mock-llm-scripts/comprehensive.json +++ b/tools/mock-llm-scripts/comprehensive.json @@ -8,9 +8,9 @@ {"type": "text", "content": "Now I'll write a file."}, {"type": "tool_call", "id": "call_5", "name": "write", "arguments": {"filePath": "tmp/parity-test.txt", "content": "original\n"}}, {"type": "text", "content": "Running a command."}, - {"type": "tool_call", "id": "call_7", "name": "bash", "arguments": {"command": "echo hello", "description": "Say hello"}}, + {"type": "tool_call", "id": "call_7", "name": "bash", "arguments": {"command": "printf 'hello\\n'; sleep 0.05", "description": "Say hello"}}, {"type": "text", "content": "Creating todos."}, {"type": "tool_call", "id": "call_8", "name": "todowrite", "arguments": {"todos": [{"content":"test","status":"completed","priority":"high"}]}}, {"type": "text", "content": "Done!"}, {"type": "done"} -] \ No newline at end of file +]