v2.2.0 — Command Registry + 7 Bug Fixes
Architecture: Command Registry
60+ slash commands extracted from loop.ts (938→564 lines) into a dedicated commands.ts module with:
- Direct commands: Execute immediately (/status, /diff, /log, /stash, /doctor, etc.)
- Rewrite commands: Transform to agent prompts (/commit, /review, /test, /fix, etc.)
- Argument commands: Parse args and rewrite (/explain, /search, /find, /refactor, etc.)
Bug Fixes
- Partial response saved on Esc abort (was losing streamed content)
- Tool result aggregate cap breaks immediately (was iterating)
- AskUser returns error on EOF (was misleading string)
- SSE buffer overflow logged in debug mode
- Glob depth increased to 50 (monorepo support)
- Read offset=0 treated as 1 (1-based)