Skip to content

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

Open
@sangee2004

Description

@sangee2004

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions