mirror of
https://github.com/PawanOsman/ChatGPT.git
synced 2026-07-18 08:05:57 +02:00
affe3e1c21
- Refactored the `readFileTool` to incorporate a timeout mechanism, preventing hangs on network or missing paths. - Introduced a new `withAbortTimeout` function to manage promise timeouts and abort signals effectively. - Enhanced error messages for various file read scenarios, providing clearer feedback on issues like missing paths and permission errors. - Updated the `safePath` function to utilize a new `normalizePathInput` utility for better path normalization. - Adjusted tool timeout settings in both the agent and UI to ensure consistent timeout behavior across components.