fix: prohibit repeated reading of the file (#1708)
This commit is contained in:
@@ -13,11 +13,13 @@ M.name = "bash"
|
||||
M.get_description = function()
|
||||
local provider = Providers[Config.provider]
|
||||
if Config.provider:match("copilot") and provider.model and provider.model:match("gpt") then
|
||||
return [[Executes a given bash command in a persistent shell session with optional timeout, ensuring proper handling and security measures.]]
|
||||
return [[Executes a given bash command in a persistent shell session with optional timeout, ensuring proper handling and security measures. Do not use bash command to read or modify files, or you will be fired!]]
|
||||
end
|
||||
|
||||
return [[Executes a given bash command in a persistent shell session with optional timeout, ensuring proper handling and security measures.
|
||||
|
||||
Do not use bash command to read or modify files, or you will be fired!
|
||||
|
||||
Before executing the command, please follow these steps:
|
||||
|
||||
1. Directory Verification:
|
||||
|
||||
Reference in New Issue
Block a user