mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-23 00:20:45 +00:00
Add read-only [Netcatty JobDiag] timeline emission covering the four checkpoints requested in #3443: probe write/reply/parse (2), command write + start marker (3), startup timeout with byte stats, interrupt delivery with flow-control snapshots, and the MCP background-job route lifecycle (4). Every payload is keyed by sessionId + jobId (jobId was previously absent from all logs) and carries monotonic at/sinceStartMs timestamps. interrupt-callback-invoked reports finishedAtCallback so the recovery ordering finding from the #3443 investigation is directly observable; interrupt-callback-skipped fires when recovery is skipped (no callback wired or callback threw). Checkpoint 1 (flow-control samples) remains covered by the existing [Netcatty Ctrl+C] / [Netcatty Terminal Perf] emitters; session snapshots here reuse the same helpers. Enabled via NETCATTY_JOB_DIAG=1 or the existing NETCATTY_TERMINAL_DEBUG=1. Zero behavior change: instrumentation calls only, jobId/sessionId/ diagnosticsSession are optional startPtyJob options defaulting to null.