singularity-forge/docs/extending-pi/21-error-handling.md
Lex Christopherson 9f4bf8c452 fix: restore PR files lost during merge conflict resolution
Files added by PR #2008 that were not in main were dropped during
the merge. Restore all src/, docs/, and scripts/ files from the
pre-merge PR head.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-25 22:39:33 -06:00

267 B

Error Handling

  • Extension errors are logged but don't crash pi. The agent continues.
  • tool_call handler errors block the tool (fail-safe behavior).
  • Tool execute errors are reported to the LLM with isError: true, allowing it to recover.