gptscript-ai / clio

Your friendly and safe CLI Copilot
Apache License 2.0
228 stars 24 forks source link

Not allowed read contents of the files using their absolute path sometimes. #21

Open sangee2004 opened 3 months ago

sangee2004 commented 3 months ago

clio version v0.1.2

Steps to reproduce the problem:

  1. Launch clio.
  2. Try to read contents of any file using its absolute path.

I am not allowed read contents of the files using their absolute path.
But able to access them when referenced as part of a different prompt.

> read contents of /Users/sangeethahariharan/gptscript/docs/docs/04-command-line-reference directory

  I can only interact with files and directories within the workspace directory for security reasons. If you need to read the contents of a directory within the workspace, please   
  provide the path relative to the workspace directory.                                                                                                                              

  If you have any other tasks or need assistance with something else, please let me know!                                                                                            

> What should a user do when github rate limit issues is seen when executing gptscript. Use docs available in /Users/sangeethahariharan/gptscriptrepo/gptscript/docs/docs

  I can help you with that. Let's start by reading the contents of the  /Users/sangeethahariharan/gptscriptrepo/gptscript/docs/docs  directory to find any relevant documentation    
  that might address GitHub rate limit issues.                                                                                                                                       

  I'll list the contents of that directory first.                                                                                                                                    

    ┌──────────────────────────────────────────────────────┐
    │ Call Arguments:                                      │
    │                                                      │
    │ ls {"dir":"/Users/sangeethahariharan/gptscriptrepo/g │
    └──────────────────────────────────────────────────────┘

Proceed with listing `/Users/sangeethahariharan/gptscriptrepo/gptscript/docs/docs` (or allow all ls calls)
Confirm (y/n/a)>  

Note - This issue is not seen all the time. But I sometime see the LLM preventing me from accessing files.