pi-mono/packages/coding-agent/src
Robin 1432fd91d2
fix(coding-agent): improve bash tool error handling (#479)
- Validate working directory exists before spawning to provide clear error message
- Add spawn error handler to prevent uncaught exceptions when shell not found or cwd invalid
- Add tests for both error scenarios

Without these fixes, spawn errors (e.g., ENOENT from missing cwd or shell) would
cause uncaught exceptions that crash the entire agent session instead of being
returned as clean tool errors.

Co-authored-by: robinwander <robinwander@users.noreply.github.com>
2026-01-06 00:48:10 +01:00
..
cli Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
core fix(coding-agent): improve bash tool error handling (#479) 2026-01-06 00:48:10 +01:00
modes feat(coding-agent): queue compaction submissions, closes #475 2026-01-05 23:47:40 +01:00
utils fix: move managed binaries to bin/ and ignore hidden files in migration check 2026-01-06 07:52:49 +13:00
cli.ts Remove old implementation files (main.ts, cli.ts, tui-renderer.ts), rename new files 2025-12-09 01:21:28 +01:00
config.ts chore: remove deprecation comment from getToolsDir, add changelog entry for #470 2026-01-05 20:26:48 +01:00
index.ts Merge hooks and custom-tools into unified extensions system (#454) 2026-01-05 01:43:35 +01:00
main.ts fix(coding-agent): load extensions from settings.json 2026-01-05 13:26:41 +03:00
migrations.ts chore: remove deprecation comment from getToolsDir, add changelog entry for #470 2026-01-05 20:26:48 +01:00