OpenCode 2: a pending submit_plan review reports the session as working, not blocked
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 56/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
Research direction
Start by reading the OpenCode 2 plugin code that calls runPlanReview and the session form APIs mentioned in the issue. Check how the review is opened, completed, and aborted, then compare the session status with a pending question or permission. Done means a pending review is reported as waiting for user input and the form is cleared when the review ends; the issue names no test files or code entry points.
Written by the indexing model from the issue text.
Description
Summary
On OpenCode 2, a session waiting on a submit_plan review reports itself as working, not blocked. Terminal multiplexers that read OpenCode's program status (OSC 7501), such as herdr, show the agent as still thinking and never notify the user that it is waiting on them.
Versions
@plannotator/opencode0.29.4- opencode 2.4.1 (TUI program status reporting, OSC 7501)
What happens
The OpenCode 2 TUI derives each session's status from session state. In 2.4.1 this is the program-status / session-tabs code:
- a pending permission request means
state=blocked, kind=permission - a pending form (the question tool) means
state=blocked, kind=question("Input needs response") - otherwise, a running session means
state=working
submit_plan waits for the decision inside the tool's execute (await runPlanReview(...)). The session stays running with no pending permission or form, so the TUI reports working for the whole review. The user gets no "needs input" signal, even though the agent cannot continue until they act in the browser.
Seen in practice: a herdr pane that showed ◈ Plannotator session ready: http://…:19433 kept status: {app: "opencode", state: "working"} until the review was submitted.
Suggested fix
While a plan review is pending, put the session into a state that OpenCode itself reports as waiting on the user. For example, create a form on the session when the review opens (the v2 plugin context appears to expose session.form.create / session.form.cancel), titled with the review URL, and cancel it when runPlanReview returns or is aborted. The same applies to the other blocking review paths (annotate, code review), if they wait inside a tool call too.
Then every OSC 7501 consumer (herdr, for example) treats a pending Plannotator review like any other question to the user.
Related
#1582 covers telling the user when a review is waiting. This issue is the OpenCode 2 host channel for that: the session's program status.
- Dominant language
- TypeScript
- Stars
- 8.7k
- Forks
- 649
- Avg merge
- 16h 1m
- Merged PRs (30d)
- 756
Getting set up
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from backnotprop/plannotator
-
Inbox: numbered choices in a :::question become free text, and context bullets become the choicesPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
backnotprop/plannotator#4132 · 1 comment ·
Maintainers usually reply within 1 day
-
Claude Code: "classic.PermissionRequest hook was skipped" notice is back on Bash permission promptsOpen
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
backnotprop/plannotator#4051 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
backnotprop/plannotator#4000 ·
Maintainers usually reply within 1 day
-
PR description is hidden when a PR review opens on a phonePossibly taken @flipcyde101 claimed this 8 days ago. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
backnotprop/plannotator#3667 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
backnotprop/plannotator#2643 · 1 reaction ·
Maintainers usually reply within 1 day
All issues in backnotprop/plannotator
Similar issues
-
enhancement UX
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
online-go/online-go.com#4000 ·
Maintainers usually reply within 1 day
-
enhancement good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
SnosMe/awakened-poe-trade#1976 ·
-
[BUG]Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 63/100
jonp-h/TillerQuest#319 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
terrazzoapp/terrazzo#902 ·