Skip to content

[BUG] Queued prompts trigger auto-approval of agent-requested commands #1574

Description

@TrawenCZ

Problem (one or two sentences)

When agent is in mode where it can execute commands, is working on something, and you meanwhile place a prompt into queue, and (another meanwhile) agent decides to call tool for executing command, it results in auto-approving the command regardless of what it is (even if not in your auto-approved commands).

Context (who is affected and when)

Happens to whoever uses agent with command execution capability and is adding prompts to queue.

Reproduction steps

  1. Open ZooCode in VSCode
  2. Select mode with "Run Commands" tools available (for example the default "Code" mode)
  3. Tell agent to run some command, best is one that you don't have in auto-approved commands to see it approves anything, but also something non-destructive (e.g., "ps && echo "hello")
  4. Right after you send the prompt in step 3, write and send for example "don't do that", or any other message (agent must not finish before you send this, your message must be in queue)
  5. Watch the command being executed without your approval

Expected result

To not auto-approve command by placing prompts into queue.

Actual result

Prompts in queue result in auto-approved commands.

Variations tried (optional)

No response

App Version

v3.82.0

API Provider (optional)

None

Model Used (optional)

No response

Zoo Code Task Links (optional)

No response

Relevant logs or errors (optional)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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