0xmrpeter 7c8c10f51b feat: add OPENACP_DEBUG trace logging (3 JSONL files per session)
When OPENACP_DEBUG=true, writes per-session trace files to <workingDir>/.log/:
- <sessionId>_acp.jsonl — raw ACP JSON-RPC protocol (stdin/stdout)
- <sessionId>_core.jsonl — core event pipeline (agent_event → middleware → transform → dispatch)
- <sessionId>_telegram.jsonl — all Telegram UI actions (handlers, tracker, tool card, draft, API calls)

DebugTracer utility with lazy dir creation, appendFileSync writes, zero overhead when disabled.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-29 21:29:09 +07:00
..
2026-03-28 07:44:40 +07:00