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

Bee/smart apply i #7103

Closed
wants to merge 2 commits into from
Closed

Bee/smart apply i #7103

wants to merge 2 commits into from

Conversation

hitesh-1997
Copy link
Contributor

Test plan

This change adds support for specifying a regex pattern in the code block metadata to enable targeted code replacement in the editor. The code block content will replace the matched code, allowing for more precise application of code changes from chat when available, before falling back to current smart apply approach.

The key changes are:

- Extend the `ChatMessageContent` and `create-buttons` components to accept a `regex` parameter and pass it to the `smartApply.onSubmit` function.
- Implement the regex-based replacement logic in the `codeblock-action-tracker` and `edit-manager` services.
- Update the `smart-apply` system prompt to instruct users on the expected format for code blocks with regex patterns.
- Add support for the `regex` attribute in the `MarkdownFromCody` component.
@hitesh-1997 hitesh-1997 deleted the bee/smart-apply-i branch February 17, 2025 12:20
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.

2 participants