feat(opencode): resolve @-tags from external editor output#26400
Open
arafays wants to merge 2 commits intoanomalyco:devfrom
Open
feat(opencode): resolve @-tags from external editor output#26400arafays wants to merge 2 commits intoanomalyco:devfrom
arafays wants to merge 2 commits intoanomalyco:devfrom
Conversation
Contributor
|
Thanks for updating your PR! It now meets our contributing guidelines. 👍 |
8094f44 to
8e693e9
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Issue for this PR
Closes #26252
Type of change
What does this PR do?
When the user opens the external editor (prefix+e), writes @filename references, and saves, those references stay as plain text. This adds a resolution step: after the editor returns, the content is scanned for @src/filename patterns via FILE_REGEX, and unknown tags are resolved through an interactive dialog (one at a time) with live file search.
How did you verify your code works?
by running actual prompts screenshot

start local server with my edits
write prompt in editor

@explore what the @prompt does and and how its used in @dialog-editorshows dialog recognizes that the first

@mentionis agent and starts with second unresolveditterates through all mentions that arent recognized

final prompt before submit

after submit prompt correctly recognizes @agent directory selected from dialog also the file selected from second resolved

Screenshots / recordings
If this is a UI change, please include a screenshot or recording.
Checklist