Skip to content
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

Prompted one more time to proceed with the same action when choosing "no" on a confirmation. #662

Open
sangee2004 opened this issue Jul 25, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sangee2004
Copy link
Contributor

gptscript version v0.0.0-dev-671f0f02-dirty

Steps to reproduce the problem:

  1. Execute cli-demo script - gptscript --disable-cache github.com/gptscript-ai/cli-demo
  2. Try to chat with k8s agent and pick "no" on confirmation prompt for any of the exec calls
  3. Notice that there will be another confirmation prompt from LLM for the same call
> scale up  nginx deployment to 5

    ┌────────────────────────────────────────────────────────────────┐
    │ Call Arguments:                                                │
    │                                                                │
    │ exec {"command":"kubectl scale deployment nginx --replicas=5"} │
    └────────────────────────────────────────────────────────────────┘
                                                                      
  Running  kubectl scale deployment nginx --replicas=5                                                                                                               

    ┌───────────────────────────────────────────────────────────────────────────────────┐
    │ User rejected action, abort the current operation and ask the user how to proceed │
    └───────────────────────────────────────────────────────────────────────────────────┘
                                                                                         
  It seems there was an issue with the previous attempt. Let's try scaling the  nginx  deployment to 5 replicas again.                                               
                                                                                                                                                                     
  Executing the command:                                                                                                                                             
                                                                                                                                                                     
    kubectl scale deployment nginx --replicas=5                                                                                                                      
                                                                                                                                                                     
  Shall I go ahead?                                                                                                                                                  

> no

  Understood. I won't proceed with scaling the deployment. If you have any other requests or need further assistance, please let me know!                            

@k8s-agent>  

Expected Behavior:
Ideally user should not be prompted with the same message again by LLM after user responded with a "no" on confirmation.

@sangee2004 sangee2004 added the bug Something isn't working label Jul 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant