-
Notifications
You must be signed in to change notification settings - Fork 73
feat: route button event through chat-client. #1037
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
Conversation
@@ -311,6 +312,13 @@ export const createMynahUi = ( | |||
Object.keys(mynahUi.getAllTabs()).forEach(storeTabKey => { | |||
mynahUi.updateStore(storeTabKey, { promptInputStickyCard: null }) | |||
}) | |||
} else { | |||
const payload: ButtonClickParams = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh wait so tool clicks are going to come through onInBodyButtonClicked?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, this is how its implemented on agentic-chat branch here. Which took forever to find since its redirected almost 10 times.
## Problem With aws/language-servers#1037, the chat client will forward the button click event to the host client (VSC in this case). We are then responsible for making a request to the LSP with this button click. ## Solution - route the button click to the LSP. - log any failed button click actions. ## Verification See aws/language-servers#1037, for a demo of the e2e button hookup working. --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
Problem
the buttonClick event was not routed yet, but was implemented in runtimes here: aws/language-server-runtimes#464
Solution
Verification
Demo:
verification.mov
License
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.