8000 refactor(chat): agentic context toolbox settings by abeatrix · Pull Request #8009 · sourcegraph/cody · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

refactor(chat): agentic context toolbox settings #8009

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

abeatrix
Copy link
Contributor

This commit refactors the toolbox settings and related logic for Deep Cody from ToolboxManager into DeepCodyHandler. This change consolidates the management of Deep Cody's features and settings within its handler, improving code organization and maintainability.

The following changes were made:

  • Removed the ToolboxManager class and its singleton instance.
  • Moved the getSettings, isAgenticChatEnabled, and related observable logic into DeepCodyHandler.
  • Updated references to toolboxManager in CodyToolFactory, CodyToolProvider, ChatController, and CodyToolProvider.test.ts to use DeepCodyHandler.
  • Renamed ToolboxManager.test.ts to DeepCodyHandler.test.ts and updated its tests to reflect the changes.
  • Removed the A/B test comment in DeepCody.ts as it's no longer relevant.

These changes improve the structure of the codebase and make it easier to manage Deep Cody's settings and features.

Test plan

Refactored without feature change. Everything should work the same as before. Green CI

This commit refactors the toolbox settings and related logic for Deep Cody from `ToolboxManager` into `DeepCodyHandler`. This change consolidates the management of Deep Cody's features and settings within its handler, improving code organization and maintainability.

The following changes were made:

- Removed the `ToolboxManager` class and its singleton instance.
- Moved the `getSettings`, `isAgenticChatEnabled`, and related observable logic into `DeepCodyHandler`.
- Updated references to `toolboxManager` in `CodyToolFactory`, `CodyToolProvider`, `ChatController`, and `CodyToolProvider.test.ts` to use `DeepCodyHandler`.
- Renamed `ToolboxManager.test.ts` to `DeepCodyHandler.test.ts` and updated its tests to reflect the changes.
- Removed the A/B test comment in `DeepCody.ts` as it's no longer relevant.

These changes improve the structure of the codebase and make it easier to manage Deep Cody's settings and features.
@abeatrix abeatrix requested review from a team and julialeex May 29, 2025 17:49
@abeatrix abeatrix marked this pull request as draft May 30, 2025 01:10
@abeatrix abeatrix marked this pull request as ready for review May 30, 2025 15:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0