Skip to content

add line range replacement as a fallback for search and replace #6647

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

Closed
wants to merge 1 commit into from

Conversation

nathants
Copy link
Collaborator

@nathants nathants commented Jul 16, 2025

Fixes CON-2773


Summary by cubic

Added a fallback to the search and replace tool that uses a language model to find the best matching line range when standard matchers fail.

  • New Features
    • If no match is found, the tool now tries a language model-based range finder to identify the correct lines for replacement.

@nathants nathants requested a review from a team as a code owner July 16, 2025 01:40
@nathants nathants requested review from Patrick-Erichsen and removed request for a team July 16, 2025 01:40
Copy link

⚠️ Conventional Commit Format

Your latest commit message doesn't follow the conventional commit format, but this won't block your PR from being merged. We recommend downloading this extension if you are using VS Code.

Expected Format:

<type>[optional scope]: <description>

[optional body]

[optional footer(s)]

Examples:

  • feat: add changelog generation support
  • fix: resolve login redirect issue
  • docs: update README with new instructions
  • chore: update dependencies

Valid Types:

feat, fix, docs, style, refactor, perf, test, build, ci, chore, revert

This helps with:

  • 📝 Automatic changelog generation
  • 🚀 Automated semantic versioning
  • 📊 Better project history tracking

This is a non-blocking warning - your PR can still be merged without fixing this.

@dosubot dosubot bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jul 16, 2025
@github-project-automation github-project-automation bot moved this from Todo to In Progress in Issues and PRs Jul 16, 2025
@nathants nathants changed the title add AI based line range replacement as a fallback add line range replacement as a fallback for search and replace Jul 16, 2025
@nathants nathants force-pushed the nathants/range-replace branch 3 times, most recently from 758ac75 to 08af548 Compare July 16, 2025 05:04
@nathants nathants force-pushed the nathants/range-replace branch from 08af548 to 3f3e6d1 Compare July 16, 2025 05:40
@Patrick-Erichsen Patrick-Erichsen removed their request for review July 16, 2025 19:24
@sestinj sestinj closed this Jul 22, 2025
@github-project-automation github-project-automation bot moved this from In Progress to Done in Issues and PRs Jul 22, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Jul 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
size:L This PR changes 100-499 lines, ignoring generated files.
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants