Doom-loop (ON by default) and main-agent permission asks carry no
tool_call_id, so the FE dropped them from pendingInterrupts and the
Timeline — which mounts approval cards only from that list — showed no
card, hanging the turn. Emit the langgraph Interrupt.id on each
interrupt frame and let the FE key off it when tool_call_id is absent,
so these flow through the existing card + resume machinery. Route
doom-loop through the HITL-aware fallback since its action.name is the
stuck tool, not an approval target.
Resume decisions were matched to paused subagents positionally, correct
only while the frontend submission order matched state.interrupts order —
an unenforced contract that could apply a decision to the wrong subagent.
Decisions now carry the parent tool_call_id; the slicer routes by identity
and fails loud on any id/count mismatch, falling back to positional when
ids are absent so older clients keep working.
- Added PostHog configuration options to .env.example files for both Docker and Surfsense backend.
- Introduced PostHog dependency in pyproject.toml.
- Implemented analytics middleware to capture various events across the application, including user authentication, automation runs, and API requests.
- Enhanced existing routes and services to emit analytics events, providing insights into user interactions and system performance.
- Ensured graceful shutdown of analytics clients in worker processes and application lifecycles.