Replies: 3 comments 1 reply
-
|
Completely agree. This needs to be improved. Infact, the docs have not been updated to reflect this. I'll make sure this is on my roadmap. |
Beta Was this translation helpful? Give feedback.
-
|
Another thing to point out is that the current behaviour globally affects the editor invocation. I wasn't sure if it affected only that window or was per invocation or was persisted somewhere across editor invocations. It would be nice to highlight " for this nvim instance" or something like that. But I'm not sure how to do that without being too wordy. |
Beta Was this translation helpful? Give feedback.
-
|
This has now been added in #2569 and covered in the configure and usage sections of the docs. Potentially destructive tools like Really appreciate you raising this. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I got a prompt like: "Run the command
cargo test?"The first option is "Allow always". At first I thought that this was whitelisting
cargo test. But I was confused when the LLM started running other commands. However after reading the code I realized that it wasn't even just allowing arbitrary use of that tool, it was allowing the use of any tool.codecompanion.nvim/lua/codecompanion/strategies/chat/tools/orchestrator.lua
Line 281 in 8ad65ee
I find this behaviour incredibly surprising (and dangerous). I would recommend changing the text to something like "Allow all tools" or "YOLO mode". Might also make sense to make that option less prominent than being the first option. I would consider something like 1: Deny, 2: Allow, 0: YOLO. This physically moves the entry to yolo mode multiple keys away on the keyboard.
It would also be very useful to have the option to approve specific tools or commands. For example during an editing cycle the LLM will want to run
cargo testa lot. I don't feel the need to approve each time. But I definitely still want to review other commands in case they are destructive.Beta Was this translation helpful? Give feedback.
All reactions