Skip to content

OpenCode: support plan mode #672

@swear01

Description

@swear01

What feature would you like to see?

Add plan mode support for OpenCode sessions, same as Claude Code. Currently the plan mode option exists in the web UI permission selector for OpenCode sessions, but selecting it has no effect — tools continue to execute normally and no plan mode is applied to the OpenCode process.

Additional information

Claude Code has full plan mode support with tool execution blocking. OpenCode already has 'plan' in its permission mode definitions (shared/src/modes.ts) and the web UI shows it, but the CLI runner (cli/src/opencode/) never applies it to the OpenCode process or restricts tool execution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions