Skip to content
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

[Backport jb-v7.10.x] refactor(agentic context): update agent context settings #6626

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

sourcegraph-release-bot
Copy link
Collaborator

CLOSE https://linear.app/sourcegraph/issue/CODY-4632

Updates the ToolboxButton component that provides a UI for managing agent context settings with a more detailed description of the feature.

  • Updates toggles for agentic context and terminal access, with appropriate warnings
  • Displays the button on all messages
  • Debounces the settings update to avoid excessive API calls with the removed save button
  • Display button on all messages
  • Display button without title text in non-first message
  • Hide terminal context on unsupported instance/clients

Test plan

UI update without feature change - storybook updated.

image

image

Hide shell command on unsupported client or instances

image

Before

The current one doesn't explain what agentic context and terminal context are:

image

Backport d865d65 from #6596

CLOSE https://linear.app/sourcegraph/issue/CODY-4632

Updates the `ToolboxButton` component that provides a UI for managing
agent context settings with a more detailed description of the feature.

- Updates toggles for agentic context and terminal access, with
appropriate warnings
- Displays the button on all messages
- Debounces the settings update to avoid excessive API calls with the
removed save button
- Display button on all messages
- Display button without title text in non-first message
- Hide terminal context on unsupported instance/clients

## Test plan

<!-- Required. See
https://docs-legacy.sourcegraph.com/dev/background-information/testing_principles.
-->

UI update without feature change - storybook updated.

![image](https://github.com/user-attachments/assets/0459f2b1-e0b9-463f-83c8-0d20e6f789b4)

![image](https://github.com/user-attachments/assets/37ee046a-0b6c-4d1c-916f-fd593d636c5a)

Hide shell command on unsupported client or instances

![image](https://github.com/user-attachments/assets/24cc5215-7118-4cfa-a5de-0b643cdf2a1f)

### Before

The current one doesn't explain what agentic context and terminal
context are:

![image](https://github.com/user-attachments/assets/27da9d5f-bf5e-4a34-8ed8-6e37a80dbd48)

(cherry picked from commit d865d65)
@abeatrix abeatrix merged commit 1fc9790 into jb-v7.10.x Jan 13, 2025
23 of 24 checks passed
@abeatrix abeatrix deleted the backport-6596-to-jb-v7.10.x branch January 13, 2025 18:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants