What's New in 4.0.8
feat(trace): Internal operations report with agent breakdown and cycle detection (#438)
- Add
/tracecommand that transforms raw event timelines into structured internal operations reports - Track skill invocations via Skill tool (previously invisible in traces)
- Fix agent_type missing in SubagentStop events
- Add agent breakdown with per-type statistics and cycle detection (e.g., "2 planner/critic cycles")
- Add execution flow narrative for chronological understanding of agent orchestration
fix(mcp): Resolve cross-directory job lookup failures (#449)
- Fix
findJobStatusFile()looking in CWD instead of the job's working directory - Add in-memory
Map<provider:jobId, workingDirectory>to track where jobs were created - Add retry loop (max 10 attempts with backoff) in
wait_for_jobto handle async SQLite init race - Clean up map entries on terminal states to prevent unbounded growth
Full Changelog: v4.0.7...v4.0.8