From 1481bbc30c0dc730b125909c68c94e5e86e2f8cd7ff672f7b65328980be4f6d8 Mon Sep 17 00:00:00 2001 From: tlg Date: Thu, 9 Jul 2026 11:11:21 +0200 Subject: [PATCH] Update plan Task 9: PMNotify calls stage_notify directly (trace on failed runs) --- .../plans/2026-07-09-langflow-projekt-matching.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/superpowers/plans/2026-07-09-langflow-projekt-matching.md b/docs/superpowers/plans/2026-07-09-langflow-projekt-matching.md index 7a10623..2dbca9d 100644 --- a/docs/superpowers/plans/2026-07-09-langflow-projekt-matching.md +++ b/docs/superpowers/plans/2026-07-09-langflow-projekt-matching.md @@ -2119,8 +2119,9 @@ class PMNotify(Component): def build_out(self) -> Message: cfg = Cfg(imap_password=self.imap_password, notify_to=self.notify_to) - ctx = stages.run_stage("notify", stages.stage_notify, - dict(self.ctx.data), cfg) + # stage_notify is called DIRECTLY (not via run_stage): it must run for + # every terminal status so failed runs still post their Langfuse trace. + ctx = stages.stage_notify(dict(self.ctx.data), cfg) self.status = ctx.get("status", "") return Message(text=stages.summary(ctx)) ```