OpenSwarm icon indicating copy to clipboard operation
OpenSwarm copied to clipboard

Improve error handling: remove stderr truncation, add structured errors

Open unohee opened this issue 8 months ago • 0 comments

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

unohee avatar Mar 09 '26 04:03 unohee