The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(photon): tolerate SDK builds without the iMessage effect surface
Teknium402286fcff11
diff --git a/plugins/platforms/photon/sidecar/index.mjs b/plugins/platforms/photon/sidecar/index.mjsindex 43c2c9b82d0..ee2620c5877 100644--- a/plugins/platforms/photon/sidecar/index.mjs+++ b/plugins/platforms/photon/sidecar/index.mjs@@ -278,7 +278,10 @@ const app = await Spectrum({telemetry,});-const MESSAGE_EFFECTS = imessage.effect.message;+// Effect-name → native effect id map. Optional chaining: an SDK build+// without the iMessage effect surface (or a test stub) must not crash the+// sidecar at import — /send-effect then rejects with "unsupported effect".+const MESSAGE_EFFECTS = imessage?.effect?.message || {};// ---------------------------------------------------------------------------// Inbound: forward `app.messages` (gRPC stream) to the Python consumer.