You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
🤖 Add defensive checks for init-output and message processing
Fixes two issues found after PR #228:
1. **Init-output undefined line crash**: Added null check for data.line
before calling trimEnd(). Prevents crash when init-output events
arrive with missing line data during replay or out-of-order scenarios.
2. **Message processing condition tightened**: Added 'role' field check
to ensure only CmuxMessages are processed in the caught-up branch.
This makes the condition symmetric with the buffering branch and
ensures we don't accidentally process malformed messages.
Both changes follow the defensive programming pattern established in
PR #228 - gracefully handle edge cases during replay rather than crash.
_Generated with `cmux`_
0 commit comments