Skip to content

Inbox for code review only - #4067

Merged
backnotprop merged 15 commits into
mainfrom
feat/inbox-review-only
Nov 28, 2026
Merged

backnotprop merged 15 commits into
mainfrom
feat/inbox-review-only

Conversation

@backnotprop

@backnotprop backnotprop commented Nov 25, 2026 •

Copy link
Copy Markdown
Owner

This push

  • Merged main (52e3560) into the branch, so the PR is no longer conflicting. A plain merge (merge commit a92e74b), no rebase. Nothing about what the feature does changed, and no word a person or agent reads changed.
  • 4 conflicts, each resolved by keeping both sides:
    • environment.md: main's updated inboxCodeReview line, then this PR's inboxReviewOnly line.
    • InboxServerOptions: both test options, reviewOnly and codeReviewOffer.
    • INBOX_REVEALS: this PR's review_welcome entry, then main's comment on the offer.
    • The App.tsx size ceiling: lowered to the merged file's real length, 6285.
  • The notes writer (inbox-review-only-notes.ts, inbox-agent-notes.ts) is byte for byte the reviewed version, because main did not change it.
  • Main's new revealTable (the offer switched off since 0.29.6) only rewrites the code_review entry, so review_welcome passes through unchanged.
  • Checked locally:
    • Tests: structure, agents-md size, e2e shard, DOM allowlist, review-only notes (33), review-only words (14), launch queue (8), review command (11), reveals schedule (63), reveals (23). DOM tests: reviewOnly (19), launchDialog (6), plansSidebar (6). All pass.
    • tsc for server, inbox and shared: clean.
    • The mobile contract matches the product.

What this does

The Inbox for code review only, built from the owner's approved mocks (rounds 1 to 3, 2026-11-23) and on top of Code review's offer (#3960).

  • One setting per computer, config.json inboxReviewOnly. true alone is the mode, and it holds Code review on by itself. In Settings it is the Full Inbox switch (full_inbox: { on, chosen? }; on = the full Inbox). That switch is the one way out, and turning it on leaves Code review on, stamped as the person's newest flip of it.
  • Never shared. full_inbox is not in the shared capability set and not in plannotator inbox capability. While in the mode, Code review is not shared either. A --review laptop linked to a full-Inbox desktop changes nothing on the desktop, and nothing on the desktop ends the mode. It cannot be set for another computer: the per-computer groups are gone (the owner, 2026-11-24), and a linked computer's POST capabilities takes only the shared switches.
  • plannotator inbox --review
    • On a first run (the Inbox was never on here, and the mode was never set) it saves code review only, Code review on with its flip stamped, and the welcome's due time. It does all of this before the Inbox is turned on or started, reads each value back (the welcome first; it is put back if the rest does not land, so a failure changes nothing), and checks the Inbox's mark. Then it opens Reviews and prints the URL.
    • For an existing user, or someone who switched back, it only turns Code review on. Their full Inbox is never switched.
    • --review is not in the usage text.
  • One resolver for agent words. inboxAgentWords(config) gives the tool lead, the reminder, the notes, the help line, the allowed one-time dialogs and the tool actions. It is used by the server, the CC mod and every plugin host. A test fails when a host builds the tool without it.
  • What agents are told while code review only
    • The tool lead and the MCP instructions have the one sentence in place of the rules that ask for other traffic.
    • No card or steps action and no Board line. Board and Checklist values are kept.
    • No session-start reminder.
    • The --help "When to use it" carries the approved B3 line.
    • No instructions-file note. The reminder and the note gain no new words.
  • The notes have one queue for every writer.
    • The pass records its intent in machine state first, then makes the files match. It retries at every start, every flip and on a timer until they do.
    • It uses the automatic add's guards: unchanged since read, read-only and hard-link files, PLANNOTATOR_INBOX_NOTES=0, and no second copy beside a hand-pasted note.
    • An edited section is saved by the file it came out of (resolved through links), then removed, and put back there as it was: also in a file two agents share, whichever comes first, and for one agent with two edited files.
    • A file left read-only or hard-linked is tried again after a minute, then twice as long each time, up to an hour.
    • The person's own switch during the mode updates the list.
  • The welcome is the one-time dialog review_welcome, claimed through the line like every other dialog. It reads "Welcome to the code review Inbox", has the four lines and the switch row "The full Plannotator Inbox" (off), and the button "Start reviewing".
  • The launch dialog goes after the welcome. While the welcome is due and can still show (a release build, unshown, within the line's patience), the launch is neither due nor holding the line (createInboxLaunchQueue's after). Once the welcome had its turn, the launch holds the line no more, and the same tab shows it after the line's gap. The launch opens only while the page is still ready, so the two never show at once.
  • The window while code review only
    • Reviews is home.
    • The sidebar hides Inbox (back while something waits), Artifacts, Agents, Projects, Board, Plans, Routines, New message and Copy prompt.
    • Settings → Capabilities has the Full Inbox row on top, without Code review, Board, Checklist or Routines. The row stays for anyone who was ever in the mode.
    • The Reminder switch is hidden. No dialog offers Board, Checklist, Routines, Snooze, Priority, Personal agents or Bro.

Guide: docs/agent-guides/inbox-review-only.md.

The tool description's lead (code review only)

The Plannotator Inbox on this machine: message the person, get their answer later; nothing blocks. The person uses it for code review only: use it for a review they ask you for, and to answer them in a review's thread; anything else, ask in the chat. If another agent started you, report to it instead. Set `action` to a tool below, with its fields.

The full Inbox's lead is unchanged. The MCP instructions make the same swap.

Tests

  • packages/server/inbox-review-only-words.test.ts: the mode's difference in the tool, the MCP instructions, the reminder and --help, with a size cap. It also covers mod parity and the host guard.
  • packages/server/inbox-review-only.test.ts:
    • the notes pass: the second of three fails, the list's save fails, failed put-backs, edited sections, the person's switch, the guards and the queue race;
    • the switch;
    • the welcome's line;
    • a --review laptop and a full-Inbox desktop, both orders.
  • apps/hook/server/inbox-review-command.test.ts: a first run; a failed save, due time or mark; someone who switched back; an existing user.
  • packages/inbox/reviewOnly.test.tsx (DOM): the sidebar, home, the welcome through the claim and the Settings rows.
  • tests/e2e/inbox-review-only.spec.ts: the browser flow, with whole-window pictures.

…the Full Inbox switch

One setting, config.json inboxReviewOnly, in effect while Code review is on.
Agents get the review-only rule in the Inbox tool and the MCP instructions,
no session-start reminder and no Inbox note (taken out on a switch, put back
on a switch back, only their own section). The window shows Reviews first and
hides what belongs to the full Inbox; Settings has the Full Inbox row. The
switch is shared across linked computers and plannotator inbox capability
turns it. The review-only rule is not approved yet.
… notes pass

- The mode is this computer's own: full_inbox is out of the shared capability set and of plannotator inbox capability; Code review is not shared while in it.
- inboxReviewOnly alone is the mode and holds Code review on; the Full Inbox switch is the one way out. --review stamps Code review's flip and never puts back someone who switched back.
- inboxAgentWords is the one resolver for the tool lead, reminder, notes, help line, one-time dialogs and tool actions; every host builds the tool through it.
- One queue for every writer of agent notes; the pass records intent first, keeps edited sections, uses the automatic add's guards and retries until the files match.
- The welcome is the one-time dialog review_welcome, claimed through the line.
- Window: sidebar per the mock, Reminder switch hidden in the mode, failed saves said, phone switch drawn and sized, App.tsx import restored.
@backnotprop backnotprop added the ci:e2e Run the full browser suite (Inbox window e2e) on this PR label Nov 25, 2026
… welcome out of the dialog schedule's people; wait for the pull request tiles in the spec
…ox-review-only

# Conflicts:
#	docs/agent-guides/server-and-storage.md
#	packages/server/inbox.ts
…ox-review-only

# Conflicts:
#	apps/mobile/contract/parity/ledger.json
…no data-sidebar-item, so the old checks matched nothing)
…ox-review-only

# Conflicts:
#	apps/mobile/contract/parity/ledger.json
#	docs/agent-guides/server-and-storage.md
#	packages/inbox/App.tsx
#	packages/inbox/components/Settings.tsx
#	packages/inbox/data/actions/settings.ts
#	packages/shared/config.ts
#	tests/inbox-size-ceilings.json
… after the welcome, flip stamp, backoff, all-or-nothing --review save

- Notes: an edited section is saved by the file it came out of (resolved through links), so two agents sharing one
  file put the person's text back whichever comes first (the second only takes its record back), and one agent with
  two edited files keeps both, each back where it came from.
- Retries while a file stays read-only or hard-linked: a minute, then doubling up to an hour; nothing logged.
- Switching back to the full Inbox stamps Code review's flip, so a linked computer's flip made meanwhile never turns
  it off here.
- The launch dialog: the welcome is ahead only while due and showable (release build, unshown, within the line's
  patience); once it had its turn the launch holds the line no more; the window shows it after the line's gap in the
  same tab; the launch opens only while the page is still ready.
- plannotator inbox --review: the welcome (state.json) is saved first, the rest (config.json) after, and the welcome
  is put back when the second does not land, so a failure changes nothing.
- Turning a note on by hand (Settings -> Agents, the note dialog) puts back
  the person's saved text for that agent's files instead of Plannotator's
  note, and it stays for every agent sharing the file.
- Once a saved text is back in its file it is done for every agent: each
  other agent on the list reading that file takes its record back then, so
  it is never written again after the person deletes it.
- A text that cannot go back (its file holds another section, no agent
  reads its file any more, a deleted extra file whose target cannot take
  it) is kept aside in state.json inboxNoteSectionsKept (16 newest), never
  deleted, and its old file is never written.
- An extra instructions file the person deleted is never made again; its
  text goes into the target only when the target has no section.
…ox-review-only

# Conflicts:
#	docs/agent-guides/environment.md
#	packages/server/inbox.ts
#	packages/shared/inbox/reveals.ts
#	tests/inbox-size-ceilings.json
…ox-review-only

# Conflicts:
#	apps/mobile/contract/parity/ledger.json
#	packages/inbox/data/actions/settings.ts
#	tests/inbox-size-ceilings.json
@backnotprop backnotprop changed the title Inbox for code review only (do not merge: agent sentence awaits approval) Inbox for code review only Nov 28, 2026
@backnotprop
backnotprop marked this pull request as ready for review November 28, 2026 13:44
@backnotprop
backnotprop merged commit 02d6d13 into main Nov 28, 2026
62 checks passed
backnotprop added a commit to bendrucker/plannotator that referenced this pull request Nov 28, 2026
…panel swipes and the HTML viewer's lost highlights

ui 0.67.0 and core 0.25.35 went to npm on 2026-11-28 with package files
that match the v0.29.6 tag (c21f65e), so this pair carries what merged
after v0.29.6, up to v0.29.7.

core 0.25.36 is additive: the linked mark "decisions" and
InboxDecision.machine (backnotprop#4066), DraftFileUploader.previewUrl (backnotprop#4165), and
holdingsOf no longer counting a question Mark read closed (backnotprop#4160). No
exports subpath changes; nothing removed.

ui 0.68.0 is a minor: Escape while an input method composes only ends the
composition, and shortcuts skip such keys; holdsImeEscape is new (backnotprop#3689,
backnotprop#4162). HtmlViewer treats a collapsed live Range as lost (backnotprop#4152). Compact
panels: OverlayScrollArea scrollMemory, SidebarContainer closing and
scrollPositions, ActionMenu compactEdgeSwipe, four new hooks and the panel
rules in theme.css (backnotprop#2861). useLaunchAnnouncement waits for ready (backnotprop#4067).
ui uses nothing new from core; its exact pin follows so a host gets one
core. Publish core first.

README and HANDOFF name the new pair, and HANDOFF adds what the published
0.25.35 / 0.67.0 already held beyond their notes (backnotprop#4114, backnotprop#4151).

bun.lock is bun install's own output: the two package version lines, and
six app workspace version lines (0.29.5 to 0.29.7) the release bumps left
behind.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:e2e Run the full browser suite (Inbox window e2e) on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant