Can the accept button in PLAN mode, i.e., the ‘a’ BUTTON be made fully automatic #1700

Closed
opened 2026-02-16 17:32:15 -05:00 by yindo · 7 comments
Owner

Originally created by @bb33bb on GitHub (Sep 12, 2025).

Originally assigned to: @rekram1-node on GitHub.

Use the Tab key to run in scheduled mode; this feature is required for automation.
Sometimes I need to enter PLAN mode, but I'm afraid of directly modifying the code and causing issues, since the task is quite complex. So I need to build a detailed plan first.
For example, this situation is exactly what I need:
To reconstruct the pseudocode in the paper, I need to repeatedly review it using multiple models. Therefore, I need to enter plan mode first.
I need to be able to run this plan mode fully automatically,
we can see the prompt opencode give us:

Permission required to run this tool:
enter accept a accept always esc reject

I want the ‘a’ key to automatically grant permission.
However, the ‘a’ key requires repeated presses.

Originally created by @bb33bb on GitHub (Sep 12, 2025). Originally assigned to: @rekram1-node on GitHub. Use the Tab key to run in scheduled mode; this feature is required for automation. Sometimes I need to enter PLAN mode, but I'm afraid of directly modifying the code and causing issues, since the task is quite complex. So I need to build a detailed plan first. For example, this situation is exactly what I need: To reconstruct the pseudocode in the paper, I need to repeatedly review it using multiple models. Therefore, I need to enter plan mode first. I need to be able to run this plan mode fully automatically, we can see the prompt opencode give us: ``` Permission required to run this tool: enter accept a accept always esc reject ``` I want the ‘a’ key to automatically grant permission. However, the ‘a’ key requires repeated presses.
yindo closed this issue 2026-02-16 17:32:15 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Sep 12, 2025):

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

  • #1063: Tab key no longer toggles plan/build mode - describes similar tab key functionality issues with plan mode
  • #1813: Feature Request: Yolo and non-Yolo mode (auto-accept) - discusses auto-accept permissions functionality that may be related to your "accept always" issue
  • #239: Implement permissions in TUI - covers broader permission system functionality including accept/approve behavior

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

@github-actions[bot] commented on GitHub (Sep 12, 2025): This issue might be a duplicate of existing issues. Please check: - #1063: Tab key no longer toggles plan/build mode - describes similar tab key functionality issues with plan mode - #1813: Feature Request: Yolo and non-Yolo mode (auto-accept) - discusses auto-accept permissions functionality that may be related to your "accept always" issue - #239: Implement permissions in TUI - covers broader permission system functionality including accept/approve behavior Feel free to ignore if none of these address your specific case.
Author
Owner

@rekram1-node commented on GitHub (Sep 12, 2025):

Can you rephrase, not sure I am following

@rekram1-node commented on GitHub (Sep 12, 2025): Can you rephrase, not sure I am following
Author
Owner

@jayair commented on GitHub (Sep 12, 2025):

I think I know what they mean, I ran into this too.

Sometimes in plan mode it'll ask for permissions to edit the file, which feels weird because you'd think it can't edit files in plan mode.

@jayair commented on GitHub (Sep 12, 2025): I think I know what they mean, I ran into this too. Sometimes in plan mode it'll ask for permissions to edit the file, which feels weird because you'd think it can't edit files in plan mode.
Author
Owner

@bb33bb commented on GitHub (Sep 12, 2025):

Can you rephrase, not sure I am following

yes, sorry for my bad

@bb33bb commented on GitHub (Sep 12, 2025): > Can you rephrase, not sure I am following yes, sorry for my bad
Author
Owner

@rekram1-node commented on GitHub (Sep 12, 2025):

plan mode no longer has an edit tool at all so that should be fixed but in regards to the permission "always" oddities I can fix that

@rekram1-node commented on GitHub (Sep 12, 2025): plan mode no longer has an edit tool at all so that should be fixed but in regards to the permission "always" oddities I can fix that
Author
Owner

@rekram1-node commented on GitHub (Sep 12, 2025):

Yeah played with the other tools: gemini, claude and others seem to respect accept always at the tool level rather than pattern level...

@rekram1-node commented on GitHub (Sep 12, 2025): Yeah played with the other tools: gemini, claude and others seem to respect accept always at the tool level rather than pattern level...
Author
Owner

@rekram1-node commented on GitHub (Sep 12, 2025):

Will be fixed in next release, opencode will match behavior of other coding CLI permission prompts like you would expect

@rekram1-node commented on GitHub (Sep 12, 2025): Will be fixed in next release, opencode will match behavior of other coding CLI permission prompts like you would expect
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#1700