Skip to content

Conversation

@naowalrahman
Copy link
Contributor

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

  • I've read the contributing guidelines and have adhered to them in this PR
  • I've added test coverage for this fix/feature
  • I've run make all to ensure docs are generated, tests pass and my formatting is applied
  • (optional) I've updated CodeCompanion.has in the init.lua file for my new feature
  • (optional) I've updated the README and/or relevant docs pages

@olimorris olimorris added the P2 Moderate impact, moderate urgency label Nov 27, 2025
return
end

-- Check if group is already in use to prevent duplicates
Copy link
Owner

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
Copy link
Owner

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

@olimorris
Copy link
Owner

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!

@naowalrahman
Copy link
Contributor Author

Thanks for reviewing! Just removed all the unnecessary comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Moderate impact, moderate urgency

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants