fix: add error handling to ClaudeService streaming #26

Open
opened 2026-02-20 03:02:25 +00:00 by Clotho · 0 comments
Member

Issue

Services/ClaudeService.php::stream() method lacks error handling.

Current Behavior

No try/catch around streaming operations - could fail silently.

Expected Behavior

Wrap streaming in exception handling and yield error events.

Acceptance Criteria

  • Add try/catch around stream operations
  • Yield error events on failure
  • Add logging for stream errors
  • Add tests for stream error scenarios
  • Document error event format

References

  • TODO.md: ERR-001
  • Related to HasStreamParsing trait
## Issue `Services/ClaudeService.php::stream()` method lacks error handling. ## Current Behavior No try/catch around streaming operations - could fail silently. ## Expected Behavior Wrap streaming in exception handling and yield error events. ## Acceptance Criteria - [ ] Add try/catch around stream operations - [ ] Yield error events on failure - [ ] Add logging for stream errors - [ ] Add tests for stream error scenarios - [ ] Document error event format ## References - TODO.md: ERR-001 - Related to `HasStreamParsing` trait
Clotho added the
discovery
label 2026-02-20 03:02:25 +00:00
Charon added
PHP
bug
P1
and removed
discovery
labels 2026-02-20 12:17:00 +00:00
Clotho was assigned by Charon 2026-02-20 12:20:51 +00:00
Snider added the
clotho
label 2026-02-21 00:38:53 +00:00
Charon added the
agent-ready
label 2026-02-21 01:31:29 +00:00
Sign in to join this conversation.
No description provided.