mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-02-04 11:55:11 -05:00
- Added a boolean property `isWaitingForAgentResponse` to the `TaskViewModel` class to track whether a task is being created and waiting for a response from the agent. - When a task is being created, we set `isWaitingForAgentResponse` to `true` and notify the listeners. - When the task creation process is completed (successfully or not), `isWaitingForAgentResponse` is set to `false` and listeners are notified. - Updated the `ChatView` class to listen to changes in `TaskViewModel.isWaitingForAgentResponse` to show the loading indicator conditionally.