feat(api): Probe for @ mentions in TUI append to prompt API#3996
Open
ewired wants to merge 2 commits intoanomalyco:devfrom
Open
feat(api): Probe for @ mentions in TUI append to prompt API#3996ewired wants to merge 2 commits intoanomalyco:devfrom
ewired wants to merge 2 commits intoanomalyco:devfrom
Conversation
Contributor
Author
|
The only failing test is failing on other recent PRs and pertains to the |
94e3b63 to
3882206
Compare
772b621 to
eb855e1
Compare
3882206 to
da34e9b
Compare
Contributor
Author
da34e9b to
c82ab3f
Compare
Contributor
Author
|
The new approach adds the ability to specify parts on TuiEvent.PromptAppend and must extract the mentions using the Instance information during the response to /tui/append-prompt. This means /tui/append-prompt has different capabilities than TuiEvent.PromptAppend and couldn't be a direct pass-through anymore. |
030d134 to
8770aaa
Compare
f1dc981 to
3e15a39
Compare
df8bdf9 to
0dd5039
Compare
e947abb to
07f200c
Compare
f8ee907 to
6a9856d
Compare
07f200c to
37d68d0
Compare
f28deb9 to
c8e214a
Compare
c8e214a to
f1596f5
Compare
def2581 to
2f05dfd
Compare
Contributor
|
Thanks for your contribution! This PR doesn't have a linked issue. All PRs must reference an existing issue. Please:
See CONTRIBUTING.md for details. |
00637c0 to
71e0ba2
Compare
f1ae801 to
08fa7f7
Compare
f026eb8 to
3fdb6c6
Compare
ca4d99d to
4e3274d
Compare
5e7a4b6 to
8578c54
Compare
ab8f9c1 to
a385fd6
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.
1.0 removed the ability for POST /tui/append-prompt to include @ mentioned files and agents. This patch extracts and uses the mention resolution for files and agents used by command templates, marking the mentions as if they were added from Autocomplete. The behavior of the append prompt TUI command is also changed to move the cursor to the end before inserting, and I don't know if pre-1.0 versions did this. Unlike Autocomplete, it can resolve files relative to the home directory mentioned with
~/, which might be undesired.Fixes #2129