GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Auto-approve permissions (--auto) do not cascade down to subagents after running 'opencode run --auto' · Issue #41730 · anomalyco/opencode

Auto-approve permissions (--auto) do not cascade down to subagents after running 'opencode run --auto' #41730

New issue
Copy link
New issue
Copy link
Closed as not planned
Closed as not planned
Auto-approve permissions (--auto) do not cascade down to subagents after running 'opencode run --auto'#41730
Copy link
Assignees
jlongster

Description

@danmacpherson
danmacpherson
opened on Aug 11, 2026
Issue body actions

Description

When you run opencode run --auto, the auto-approve permissions do not cascade down to subagents.

I conducted two tests:

Test 1

I have a file in my workspace called test.txt, which just contains the word purple in it. I have set 'edit': 'ask' for permissions in my opencode.json file.

The following command hangs indefinitely because the subagent is forever waiting for user permission:

opencode run --auto "Spawn a subagent to edit the test.txt file and append the words 'monkey' and 'dishwasher' to the text."

Running through the main agentic process works:

opencode run --auto "Edit the test.txt file and append the words 'monkey' and 'dishwasher' to the text."

Test 2

I want to create a file in /tmp. By default external_directory permissions are set to ask.

Using the main agentic process works:

opencode run --auto "Create a file in /tmp called test.txt and write 'This is a test' in it"

But using subagents will cause the command to hang indefinitely because the subagent is waiting for permission:

opencode run --auto "Spawn a subagent to create a file in /tmp called test.txt and write 'This is a test' in it"

Plugins

No additional plugins

OpenCode version

1.18.14

Steps to reproduce

See above

Operating System

Fedora 43

Activity

  1. github-actions
    assigned
    jlongster
    on Aug 11, 2026
  2. github-actions commented on Aug 11, 2026

    @github-actions
    github-actionsBot
    on Aug 11, 2026 – with GitHub Actions
    Contributor
    More actions

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

    • opencode run --auto hangs indefinitely when a Task subagent requests permission #36868: "opencode run --auto hangs indefinitely when a Task subagent requests permission" — describes the same symptom of --auto not propagating to subagents, causing indefinite hangs on permission prompts
    • Permission asks from nested subagent sessions silently hang #13715: "Permission asks from nested subagent sessions silently hang" — broader tracking issue for the same class of problem
  3. danmacpherson commented on Aug 11, 2026

    @danmacpherson
    danmacpherson
    on Aug 11, 2026
    Author
    More actions

    Also if it's too risky cascading auto-approval to subagents, it might be an idea to add a note about this in the documentation. As currently written, the docs make it sounds like --auto will automatically approve anything that is not explicitly denied, which is misleading when it comes to subagents:

    https://opencode.ai/docs/permissions/#auto-mode

    Reacted by Yongyue Sun and Miroshnikov Vladislav
  4. vladislav-miroshnikov commented on Sep 9, 2026

    @vladislav-miroshnikov
    vladislav-miroshnikov
    on Sep 9, 2026
    Contributor
    More actions

    @rekram1-node #43675 covers children created during the run, but its thread reports a remaining hang when task_id reuses an earlier child and no session.created event fires. I'd narrow #42310 to that case: keep the merged event tracking and follow parentID only when the child isn't already known. Unrelated sessions would still stay outside the approval tree.

    Would that be a useful scope for this PR?

  5. thdxr commented on Oct 11, 2026

    @thdxr
    thdxr
    on Oct 11, 2026
    Member
    More actions

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

  6. thdxr
    closed this as not plannedon Oct 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @jlongster
    jlongster

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.