[FEAT] Automation engine - RUNS - display actual captured messages
Hi Yeraze,
There is a lot of info in these RUNS log but only date/time/node/channel + the trigger message itself would be enough for debug for humans :)
Best regards, Kokoshell
Triage
Not a duplicate. Classification: Feature Request.
Alignment: The Automation Engine's run-log exists specifically "for stateful debugging" (docs/internal/dev-notes/AUTOMATION_ENGINE_PLAN.md), so making that log actually human-readable is squarely in scope — thanks for the report, and the screenshot made the problem obvious.
Investigation: Good news — the data you're asking for is already captured, this is a display-only gap:
RunLoginsrc/components/automations/AutomationsPage.tsx(~line 415) currently renders onlystatus,sourceId,startedAt, and dumps the full step-by-step engine trace (r.log) as raw<pre>text — which is what you're seeing as "a lot of info."- The backend already stores exactly what you asked for, per run, in
automation_runs.triggerEvent(src/server/services/automation/automationEngineService.ts) — a JSON snapshot of the trigger context withtext(the trigger message),fromName/from(node),channelName(channel), plusstartedAtis already returned.GET /api/automations/:id/runsalready returns this field; the frontend just isn't reading it yet.
Proposed plan:
- Frontend only — extend the local
Runinterface inAutomationsPage.tsxto includetriggerEvent: string | null(already present in the API response, just not typed/consumed). - In
RunLog, parsetriggerEventand render a compact one-line summary per run:startedAt(already shown) + node (fromName??from) + channel (channelName, omitted for DMs) + trigger text (text, truncated for long messages). - Not every trigger type is message-shaped (telemetry, geofence, becameMobile/leftHome triggers have a different
fieldsshape with notext/fromName). The summary line degrades gracefully — falls back to whatever fields are present, or is simply omitted for non-message triggers rather than showing "undefined." - Move the raw step-by-step
log(and rawtriggerEventJSON) behind a collapsed "Details" expander, so the summary is the default view but the full trace is still one click away for power users. - No schema, migration, or route changes required.
I'll hold here per process — let me know if this direction looks right (or if you'd rather see the trigger summary as separate columns instead of one line) and I'll pick up implementation.
-- Authored by Roger 🤓
Generated by Claude Code