From 91f64735165c98f9602d1d03c79b9e589c20f0d7 Mon Sep 17 00:00:00 2001 From: psionic73 <157839748+psionic73@users.noreply.github.com> Date: Wed, 29 Jul 2026 02:41:27 +0000 Subject: [PATCH] fix(photon): restore placeholder and sidecar tests --- plugins/platforms/photon/adapter.py | 6 +++--- tests/plugins/platforms/photon/test_runtime_record.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/plugins/platforms/photon/adapter.py b/plugins/platforms/photon/adapter.py index 60d74de41e2ad..bef5be736d751 100644 --- a/plugins/platforms/photon/adapter.py +++ b/plugins/platforms/photon/adapter.py @@ -885,9 +885,9 @@ def _normalize_binary_payload( # arrives while that turn is active and the gateway sends a bogus # "Interrupting current task" busy ack. Drop placeholder-only text # at the platform boundary; the real media event carries the bytes. - if raw_text.strip() == "\ufffc": - logger.debug("[photon] ignoring iMessage object-placeholder text event") - return + # Placeholder-only text is handled just below: create a short-lived + # pending entry so a following attachment can cancel the timeout. + # Do not return here or the timeout/correlation state is skipped. if ctype == "reaction": # Route only tapbacks on messages WE sent — those are implicitly # addressed to the bot (feishu precedent: synthetic text event). diff --git a/tests/plugins/platforms/photon/test_runtime_record.py b/tests/plugins/platforms/photon/test_runtime_record.py index 1b1e650cfc5e8..16e92c24dc8a8 100644 --- a/tests/plugins/platforms/photon/test_runtime_record.py +++ b/tests/plugins/platforms/photon/test_runtime_record.py @@ -120,7 +120,7 @@ def _patch_spawn( ) -> None: """Stub everything _start_sidecar touches before the healthz loop.""" sidecar_dir = tmp_path / "sidecar" - (sidecar_dir / "node_modules").mkdir(parents=True) + (sidecar_dir / "node_modules" / "spectrum-ts").mkdir(parents=True) monkeypatch.setattr(photon_adapter, "_SIDECAR_DIR", sidecar_dir) monkeypatch.setattr(photon_adapter, "_sidecar_deps_stale", lambda: False)