Skip to content

ACP mode tool confirmations are delayed by ~30s due to MessageBus timeout #17952

@pdHaku0

Description

@pdHaku0

What happened?

In ACP mode, tool confirmation requests are consistently delayed by ~30 seconds before the session/request_permission message is emitted. This delay happens every time, even for simple tool calls like run_shell_command with ls -al.

What did you expect to happen?

Permission prompts should be emitted immediately (or without a fixed 30s delay), matching the normal CLI flow.

Client information

Platform: Linux (Ubuntu)

About output:
│ CLI Version 0.25.2 │
│ Git Commit 18e854c
│ Model gemini-3-flash-preview │
│ Sandbox no sandbox │
│ OS linux │
│ Auth Method OAuth │

Login information

Logged in with: Google Account

Anything else we need to know?

Suspected cause: In ACP flow, invocation.shouldConfirmExecute() calls getMessageBusDecision() which waits 30s then defaults to ASK_USER. Normal CLI flow registers a MessageBus handler for TOOL_CONFIRMATION_REQUEST that responds immediately. ACP integration seems to miss this, so it always hits the 30s timeout.

Potential fix: Register the same immediate response handler in ACP integration (e.g., in packages/cli/src/zed-integration/zedIntegration.ts), mirroring the scheduler behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/non-interactiveIssues related to GitHub Actions, SDK, 3P Integrations, Shell Scripting, Command line automationhelp wantedWe will accept PRs from all issues marked as "help wanted". Thanks for your support!priority/p1Important and should be addressed in the near term.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions