Plan Agent gets stuck in run mode #2535

Closed
opened 2026-02-16 17:36:07 -05:00 by yindo · 3 comments
Owner

Originally created by @i-m-sid on GitHub (Nov 3, 2025).

Originally assigned to: @rekram1-node on GitHub.

Description

When running Plan agent in run mode, it gets stuck due to ask permission for bash command. Seems like ask permission isn't handled in run mode.

OpenCode version

No response

Steps to reproduce

  1. run the following command: opencode run "run git status using bash command" --agent plan
  2. opencode then gets stuck and eventually timesout.

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Originally created by @i-m-sid on GitHub (Nov 3, 2025). Originally assigned to: @rekram1-node on GitHub. ### Description When running Plan agent in run mode, it gets stuck due to ask permission for bash command. Seems like ask permission isn't handled in run mode. ### OpenCode version _No response_ ### Steps to reproduce 1. run the following command: `opencode run "run git status using bash command" --agent plan` 2. opencode then gets stuck and eventually timesout. ### Screenshot and/or share link _No response_ ### Operating System _No response_ ### Terminal _No response_
yindo added the bug label 2026-02-16 17:36:07 -05:00
yindo closed this issue 2026-02-16 17:36:07 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Nov 3, 2025):

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

  • #3808: Task should inherit current agent permissions/tools for MCP - discusses how agents can circumvent permission limitations, which could be related to your bash permission issue
  • #3575: BUG: Overriding built-in agents, doesn't allow overriding permissions - specifically mentions that permissions are ignored for built-in agents like the plan agent
  • #3756: MCP tool blocking not working - agents can still see and access disabled tools - shows issues with permission/tool blocking not working correctly

The most relevant appears to be #3575, which specifically discusses how the built-in plan agent ignores permission overrides, which could explain why bash permissions aren't being respected in run mode.

Feel free to ignore if none of these address your specific case.

@github-actions[bot] commented on GitHub (Nov 3, 2025): This issue might be a duplicate of existing issues. Please check: - #3808: Task should inherit current agent permissions/tools for MCP - discusses how agents can circumvent permission limitations, which could be related to your bash permission issue - #3575: BUG: Overriding built-in agents, doesn't allow overriding permissions - specifically mentions that permissions are ignored for built-in agents like the plan agent - #3756: MCP tool blocking not working - agents can still see and access disabled tools - shows issues with permission/tool blocking not working correctly The most relevant appears to be #3575, which specifically discusses how the built-in plan agent ignores permission overrides, which could explain why bash permissions aren't being respected in run mode. Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Nov 3, 2025):

@i-m-sid what version are u on? I thought we added that, it should be included in 0.15.31

@rekram1-node commented on GitHub (Nov 3, 2025): @i-m-sid what version are u on? I thought we added that, it should be included in 0.15.31
Author
Owner

@i-m-sid commented on GitHub (Nov 3, 2025):

@rekram1-node Ok, I'm on an older version. Thanks!!

@i-m-sid commented on GitHub (Nov 3, 2025): @rekram1-node Ok, I'm on an older version. Thanks!!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#2535