Skip to content

In opencode run mode, "permissions":{"bash": "ask"} hangs silently. #3503

Closed

Description

@ucirello

Description

I tried to get an agent to use bash to execute a command.
I did not realize that the opencode.json looked like:

        "permission": {
                "bash": "ask"
        },

When I ran the command, it would stop - and not make progress, even when I hit enter in the interface to try and unblock.

OpenCode version

0.15.18

Steps to reproduce

  1. Add this to opencode.json
        "permission": {
                "bash": "ask"
        },
  1. Run opencode run with an instruction that calls bash.
  2. Watch it hang.

Screenshot and/or share link

No response

Operating System

Darwin Kernel Version 25.0.0

Terminal

VSCode Terminal

Activity

  1. github-actions commented on Oct 28, 2025

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    The core issue appears to be that in opencode run mode, the permission dialog for "ask" permissions doesn't properly display or accept user input, causing the process to hang silently. Issue #3213 specifically documents hanging behavior in opencode run mode on v0.15+, which aligns closely with your report.

    Feel free to ignore if none of these address your specific case with bash "ask" permissions hanging in opencode run mode.

  2. rekram1-node commented on Oct 28, 2025

    @rekram1-node
    Contributor

    Yeah in headless mode I guess we could show permission modals via clack/prompts

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions