-
-
Notifications
You must be signed in to change notification settings - Fork 332
fix(chat): parse opts.visible for workflow prompts and resolve duplicate tool groups in chat UI #2457
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
base: main
Are you sure you want to change the base?
Conversation
| return | ||
| end | ||
|
|
||
| -- Check if group is already in use to prevent duplicates |
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.
We can lose the comments as they don't add any value
| val.content = val.content(self.buffer_context) | ||
| end | ||
| chat:add_buf_message(val) | ||
| -- Parse tools and variables from the message content in the following prompts |
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.
Again, lose the comments. It's pretty clear what is happening with the code
|
Thanks for taking the time to put this together! I'm keeping everything locked down until v18.0.0 in a couple of days but will be happy to merge this! |
|
Thanks for reviewing! Just removed all the unnecessary comments. |
Description
Issue: Setting
opts = { visible = false }for a workflow prompt is not parsed, meaning the prompt shows up in the chat anyway. Furthermore, mentioning the same tool group twice in a chat session causes the group to be shown twice in the context.Related Issue(s)
Screenshots
Checklist
make allto ensure docs are generated, tests pass and my formatting is appliedCodeCompanion.hasin the init.lua file for my new feature