-
Notifications
You must be signed in to change notification settings - Fork 340
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(context-agent): tool status callbacks and process support (#6451)
CLOSE https://linear.app/sourcegraph/issue/CODY-4280 & https://linear.app/sourcegraph/issue/CODY-4282 ![Screenshot 2024-12-27 at 12 27 50 AM](https://github.com/user-attachments/assets/a5d385c1-d932-40f8-914b-99d56cfb5270) This change introduces the following improvements to the Cody tool system: 1. Added support for displaying a loading indicator when the context is being loaded as shown in [figma](https://www.figma.com/design/f078wFMKsIOaEwj7Iwj5xy/Unified-Cody?node-id=7560-18281&t=Un5MlNVhg9RBCImr-0) 2. Updated the step message item to display the step ID and content in a more compact and readable format. 3. Added support for displaying an error icon when a step fails. 4. Adjusted the styling and layout of the step message items to improve the overall visual appearance. 5. Added a 30-second timeout for tool execution to prevent indefinite blocking. 6. Implemented a `Promise.race` between the tool execution and the timeout promise to ensure timely completion. 7. Updated the `DeepCodyAgent` to handle tool execution errors and return an empty result set instead of propagating the error. ## Test plan <!-- Required. See https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles. --> See demo: https://github.com/user-attachments/assets/57ac1f7d-a596-4671-bfa1-3ffd1611e327 Update storybook: ![image](https://github.com/user-attachments/assets/506d0766-de88-4455-b7cd-485278b31c19) ## Changelog <!-- OPTIONAL; info at https://www.notion.so/sourcegraph/Writing-a-changelog-entry-dd997f411d524caabf0d8d38a24a878c --> --------- Co-authored-by: Valery Bugakov <[email protected]>
- Loading branch information
1 parent
0c1699a
commit 30145b9
Showing
19 changed files
with
746 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.