mirror of
https://github.com/PawanOsman/ChatGPT.git
synced 2026-07-18 08:05:57 +02:00
1baa6f8c58
- Improved the `runAgent` function to handle parent and child abort signals more robustly, ensuring proper cleanup and cancellation of subagents. - Introduced a new `raceAbort` function to manage timeouts and abort conditions for running promises, preventing hangs during execution. - Enhanced the `forceSettleOpenWork` function to mark open tools and subagents as cancelled or closed, improving the user experience during interruptions. - Updated the UI components to reflect the new cancellation logic, ensuring that the status of ongoing operations is accurately communicated to users. - Refactored various sections of the codebase to streamline the handling of agent runs and their associated states.