Inbox: answer a waiting plan or gated review from the Inbox

Open
#3,776 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
42/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript
Domain
full-stack

Research direction

Start by tracing how GET update builds open_reviews and how the Inbox renders rows in a thread, then follow the path a plan or gated review decision takes to the waiting session (see #899 and #3602). Read submit_plan in the OpenCode plugin and the server.waitForDecision() call, which currently blocks an Inbox answer from reaching the agent (see #2141). Done looks like: Inbox Approve/Send feedback resolves the same pending review, closes the review window, and a window decision clears the Inbox row, for both review kinds.

Written by the indexing model from the issue text.

Description

Related: #899 (getting the decision back to the waiting session), #3602 (Approve for a document attached to a thread), #2141 (decision mode, which queues the Inbox's own questions but not open reviews).

I run agents on several linked machines, some with no browser. When an agent opens a plan review or a gated review, I'd like to approve it from the Inbox as well as from the review window, whichever I reach first:

  • The Inbox shows the open review in the agent's thread, with Approve and Send feedback (with a note).
  • An answer in the Inbox goes to the waiting session as the window's decision would, and closes the window.
  • A decision made in the window clears the row in the Inbox.

Today the Inbox only counts open reviews (open_reviews in GET update), and the Plans page's Approve records a decision on the saved plan, not on the review the agent is waiting on.

For the plannotator agent tool's gated reviews I can get close with an agent rule: the agent sends a question next to the review, and closes the review (close) if I answer in the Inbox first. That doesn't work for plan review. submit_plan in the OpenCode plugin waits on server.waitForDecision() until the window decides, so an Inbox answer can't reach the agent until then.

Dominant language
TypeScript
Stars
8.7k
Forks
649
Avg merge
16h 1m
Merged PRs (30d)
756

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from backnotprop/plannotator

All issues in backnotprop/plannotator

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.