You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plan mode never transitions to Build mode after revdiff closes without annotations #211
Hey! First off, thanks for the great tool — really enjoying it.
Problem:
In OpenCode, when the revdiff-plan-review plugin is active and default_agent is set to "plan", closing the revdiff overlay without adding annotations (approving the plan) leaves the session stuck in plan mode. The agent never switches to build.
When revdiff exits with code 0 (no annotations), the plugin simply returns without transitioning the session:
if (!annotations) return;
Is this by design? If the transition from plan to build is supposed to be manual ?
caveat: I don't personally use OpenCode, so my read on the expected workflow may be off. Pinging @hackmajoris who added the OpenCode support originally (#41).
the current behavior is intentional: the plugin's only job is to give you a surface for annotating the plan, and if there's nothing to send back, it gets out of the way.
the asymmetry with Claude Code is real. There, plan mode is a native session state with a built-in plan-to-build transition that the hook can fall through to (permissionDecision: "ask" lets Claude Code's own confirmation prompt switch the session). OpenCode's plan is a separate agent, not a session state, and there's no equivalent native "approve plan, transition agent" gesture for the plugin to defer to. Hard-coding an agent switch on empty annotations would mean the plugin is making a workflow assumption (revdiff approval == proceed to build) that's correct for your setup but wrong for anyone who wants another planning round, or a different next agent.
so the agent switch stays manual in OpenCode for now. If there's broader demand for an opt-in flag (e.g. REVDIFF_PLAN_AUTO_BUILD=1) I'm open to that later, but I don't want to change the default.
Okay, I get it, but for example, Plannotator (which I just switched to in favor of your tool) worked equally well with both ClaudeCode and OpenCode. I use both. Anyway, I've tweaked the plugin to suit my needs, and I have no more questions :)
If there's broader demand for an opt-in flag (e.g. REVDIFF_PLAN_AUTO_BUILD=1) I'm open to that later, but I don't want to change the default.
idk about how much broader, but coming from cc side. The fall-through to the native prompt works, but closing revdiff without writing anything already means "the plan is fine", and the confirmation right after asks the same thing again.
Maybe adding flag returning allow instead of ask on empty annotations would feel more native from ux perspective. wdyt?
Activity
umputun commentedon May 27, 2026
caveat: I don't personally use OpenCode, so my read on the expected workflow may be off. Pinging @hackmajoris who added the OpenCode support originally (#41).
the current behavior is intentional: the plugin's only job is to give you a surface for annotating the plan, and if there's nothing to send back, it gets out of the way.
the asymmetry with Claude Code is real. There, plan mode is a native session state with a built-in plan-to-build transition that the hook can fall through to (
permissionDecision: "ask"lets Claude Code's own confirmation prompt switch the session). OpenCode's plan is a separate agent, not a session state, and there's no equivalent native "approve plan, transition agent" gesture for the plugin to defer to. Hard-coding an agent switch on empty annotations would mean the plugin is making a workflow assumption (revdiff approval == proceed to build) that's correct for your setup but wrong for anyone who wants another planning round, or a different next agent.so the agent switch stays manual in OpenCode for now. If there's broader demand for an opt-in flag (e.g.
REVDIFF_PLAN_AUTO_BUILD=1) I'm open to that later, but I don't want to change the default.sst1xx commentedon May 27, 2026
the same issue for me. It seems that revdiff will force me to switch to Claude Code and abandon OpenCode (
ArtemKrivtsov commentedon May 28, 2026
Okay, I get it, but for example, Plannotator (which I just switched to in favor of your tool) worked equally well with both ClaudeCode and OpenCode. I use both. Anyway, I've tweaked the plugin to suit my needs, and I have no more questions :)
stillya commentedon Aug 30, 2026
idk about how much broader, but coming from cc side. The fall-through to the native prompt works, but closing
revdiffwithout writing anything already means "the plan is fine", and the confirmation right after asks the same thing again.Maybe adding flag returning
allowinstead ofaskon empty annotations would feel more native from ux perspective. wdyt?