Open
Description
gptscript version v0.0.0-dev-671f0f02-dirty
Steps to reproduce the problem:
- Execute
cli-demo
script -gptscript --disable-cache github.com/gptscript-ai/cli-demo
- Try to chat with k8s agent and pick "no" on confirmation prompt for any of the exec calls
- 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.