OpenSwarm
OpenSwarm copied to clipboard
Improve error handling: remove stderr truncation, add structured errors
Problem
- stderr output is hard-limited to 500 characters, losing critical debugging information
- Error handling is inconsistent across modules (some swallow errors silently)
- No structured error types — everything is generic
Error
Proposed Solution
- Remove or significantly increase the 500-char stderr limit
- Define structured error classes (e.g.,
AgentTimeoutError,LinearAPIError,PipelineAbortError) - Add error context chain (which module, what operation, what input)
- Ensure all errors surface to Discord/dashboard with actionable info
References
- ARCHITECTURE.md known issue #4