feat: implement timeout for plan approval and enhance error handling

- Added a 30-minute timeout for user plan approval to prevent indefinite waiting and memory leaks.
- Wrapped resolve/reject functions in the waitForPlanApproval method to ensure timeout is cleared upon resolution.
- Enhanced error handling in the stream processing loop to ensure proper cleanup and logging of errors.
- Improved the handling of task execution and phase completion events for better tracking and user feedback.
This commit is contained in:
Shirone
2026-01-04 03:45:21 +01:00
parent 3ed3a90bf6
commit ef06c13c1a
2 changed files with 501 additions and 437 deletions

File diff suppressed because it is too large Load Diff