Skip to content

No updates and interactive permissions requests when sub-agents triggers tasks #158

Description

@romankovalov

When calling @some-sub-agent configured for opencode, there are no interactive permission requests, and the notification is not always visible or triggered. So the behavior looks like infinite thinking without any actions.

And, when some task is in progress, there are no updates from it, what it does, why, etc. It shows only the task name, asks for some permissions in the background, which is not good that the AI does something in the background, I think

Image Image

Activity

  1. romankovalov commented on Dec 29, 2025

    @romankovalov
    Author

    Just for test, I did not terminate the thinking process, but from time to time tried to press oPA to accept all permissions. The session is still thinking - it is more than 30 minutes of "active" thinking process.

    I believe there are more issues with subagents than I noticed and mentioned, so the bugs block me from using subagents, because it is slowing down my work for a while

  2. sudo-tee commented on Jan 5, 2026

    @sudo-tee
    Owner

    Thanks for the report, I will have a look at it soon

  3. sudo-tee commented on Jan 5, 2026

    @sudo-tee
    Owner

    @romankovalov I created a PR that should fix the issue.

    Let me know if it resolves the issue.

    Don't hesitate to re-open the issue if it does not work for you

  4. romankovalov commented on Jan 6, 2026

    @romankovalov
    Author

    The issue seems to be present after the fix - the only temporary notification shown about permissions
    I'm on f128f20

    Image

    P.S. i don't have permissions to reopen the issue

  5. romankovalov commented on Jan 6, 2026

    @romankovalov
    Author

    @sudo-tee, please reopen the issue 🙏

  6. sudo-tee commented on Jan 6, 2026

    @sudo-tee
    Owner

    @romankovalov Can I ask you a favor to help me debug

    Image

    Can you enable the debug.capture_streamed_events and reproduce the issue.

    Once you get the issue run

    :lua require('opencode.ui.debug_helper').save_captured_events('~/permission_error.json')

    Then post it here.

    This will help me understand and reproduce the error without guessing .

    Thanks a lot

  7. romankovalov commented on Jan 6, 2026

    @romankovalov
    Author

    @sudo-tee it says "no captured events" before and after accepting permissions

    Image
  8. romankovalov commented on Jan 6, 2026

    @romankovalov
    Author

    stop, i added it in custom configs which is disabled for me now

  9. romankovalov commented on Jan 6, 2026

    @romankovalov
    Author

    @sudo-tee

    The file exists, but throws an error

    Image Image
  10. romankovalov commented on Jan 6, 2026

    @romankovalov
    Author

    Hopefully, the absolute path works

    permission_error.json

  11. sudo-tee commented on Jan 9, 2026

    @sudo-tee
    Owner

    @romankovalov I have redesigned the permission system to support multiple concurent permission.

    It's not ready to be merged yet as it was a pretty significant change.

    but If you have time to see if it does work for you let me know.

    #173

  12. romankovalov commented on Jan 9, 2026

    @romankovalov
    Author

    @sudo-tee, I would love to test it, but today Anthropic just ruined everything by disabling their Max plan to be used in third-party clients. So I'm still trying to decide how to live with it: migrate to Claude code cli instead of opencode, or change the provider.

  13. sudo-tee commented on Jan 12, 2026

    @sudo-tee
    Owner

    Should be fixed by #173

  14. romankovalov commented on Jan 12, 2026

    @romankovalov
    Author

    @sudo-tee today switched to the trial Gemini. Looks like permission requests look good after the merge. Thank you! But there is another issue. It firstly asks for the permission and only after accepting it says reasons - idk maybe it is another issue.

  15. sudo-tee commented on Jan 12, 2026

    @sudo-tee
    Owner

    @romankovalov I'm not sure I understand your issue.

    Can you post a screenshot or a video ?

  16. romankovalov commented on Jan 12, 2026

    @romankovalov
    Author

    currently I can't even reproduce the permission request. Claude's models were asking about permissions each time, but the Gemini somehow avoids it and do not ask usually.

    It also looks like depends on selected model it works differently: with the gemini 3 pro preview it seems to work well, but when I use gemini-2.5-flash it sometimes just stops to think (screenshot)

    Image
  17. romankovalov commented on Jan 13, 2026

    @romankovalov
    Author

    @sudo-tee I fixed my subagents. now they seems to work better. I see something, but it says nothing - see the subagent progress and permission request

    Image
  18. sudo-tee commented on Jan 13, 2026

    @sudo-tee
    Owner

    Glad to hear this :)

    I will close this bug for now.

    If you have any other issue don't hesitate to open a new one

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions