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
{{ message }}
This repository was archived by the owner on Feb 14, 2026. It is now read-only.
fix(cli): add session path tracking and improve error serialization
When Task subagents create sessions in different directories (e.g., worktrees),
the session validation now uses the path where the session was created rather
than the current working directory. This fixes "Process exited unexpectedly"
errors when mobile users send messages during parallel prompt execution.
Also fixes error logging - Error objects were being logged as `{}` because
JSON.stringify doesn't capture non-enumerable Error properties.
Changes:
- Add SessionInfo interface with id and path fields
- Update Session class to track session creation path
- Modify claudeCheckSession to accept optional sessionPath
- Extract cwd from SDKSystemMessage for session tracking
- Logger now properly serializes Error objects with name/message/stack
- Added getLaunchErrorInfo helper for structured error logging
🤖 Generated with [Claude Code](https://claude.ai/code)
via [Happy](https://happy.engineering)
Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Happy <yesreply@happy.engineering>
0 commit comments