Repository navigation
The Inbox turns on only when you run it - #3729
Merged
Merged
Conversation
A person's plannotator inbox (bare, --no-open, --open) writes inbox/turned-on. Until then no host registers plannotator_inbox or its reminder, the MCP server lists no tools, and --background, detached starts, restart, the start at login, inbox call and the other starters refuse with one line and start nothing. An install from before the mark is decided once from cheap files: used stays on, agent-only goes quiet, unreadable stays on. The setup texts turn the Inbox on first with plannotator inbox --open (one constant), which also connects the agents it finds.
…nd agent-only cases The mod sizes a person file only once it exists.
…e false words - No evidence heuristic: no mark and inbox/inbox.json exists means on (update-existing), written whole (temp file linked into place); only a computer where the Inbox never ran is off. Covers a person who only reads and picks in the window, and an older plannotator that writes no mark. - The off line names plannotator inbox --open (one constant), never bare plannotator inbox. - The test sandbox counts as on only for a data dir in the temp folder. - The words that were now false: the reference docs, llms, the help, cli usage. - setup-texts.ts moves to tests/helpers. - --open no longer connects in this commit (the next one adds it back on its own).
On its own so it can be dropped: on main --open never connected anything. The connect runs after the URL is out and is bounded so the command returns within the 30 s the mod's /plannotator-inbox and Droid wait; what is not done by then is done at the next run.
…he order it acts An error while checking for inbox.json now answers on for that read and writes nothing, so an error can never turn a fresh computer on (shared and mod readers, with tests). --open prints its URL, then connects, and returns within half a minute: the help, skills, OpenCode command, reference page and setup texts say so. The guides no longer mention the evidence list or a tool before the Inbox is on.
…never rewritten Where the Inbox is on already (every existing install), --open is what it was on main: start, open, print the URL, return at once, connect nothing. A run writes the mark only when it turns the Inbox on, so an existing mark keeps its bytes and mtime. The words say "returns at once" again, with one sentence for the first time. Compiled-binary cases for both.
…art, and show stderr on a miss
…m variable The pages a person follows open the Inbox with bare plannotator inbox, as on main, so an existing user adding an agent gets today's behaviour; --open stays only where an agent runs the first turn-on (setup prompt, llms setup, off line, help and skills). The order fixes and the new Open the Inbox steps stay, with the bare command. setup-order and the e2e walk hold that rule. The login item no longer carries PLANNOTATOR_INBOX_LOGIN_ITEM: one exists only where the Inbox ran.
… agent's and which a person's
backnotprop
marked this pull request as ready for review
November 19, 2026 15:53
This was referenced Nov 19, 2026
1 task
This was referenced Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Option A, the owner's pick: "only the three". #3707 stays open for reference.
What a person sees
No new setting, button or screen.
plannotator_inboxtool and no Inbox reminder. That lasts until the person runsplannotator inbox(bare,--no-openor--open;/plannotator-inboxruns--open).--openon a computer where the Inbox is already on (every existing install) is unchanged from main. It starts a stopped Inbox, opens the window, prints the URL and returns at once, and it connects nothing. So/plannotator-inboxand "where is my Inbox" do the same as before.The only new
--openbehaviour is on the run that turns the Inbox on, which is the first setup on a fresh computer (no mark before the run,turnsOnNowinapps/hook/server/inbox-command.ts). After that run prints the URL, it connects the agents it finds, as bareplannotator inboxdoes:/plannotator-inboxand Droid wait 30 s;That connect cannot be dropped on its own. The agent's setup words depend on it. If it were removed, setup would need a second connecting step again (bare
plannotator inbox), and these words would have to change back:The agent pages are not on this list: they use bare
plannotator inbox, as on main. The first-setup walk in the e2e cases would fail too.The three
plannotator_inboxand gives the reminder only once the Inbox is on here. Seeapps/hook/hooks/mod/register.ts(resolveAllowed:inboxToolandinboxReminderneedinboxTurnedOnHere). The mark is read inapps/hook/hooks/mod/inbox-turned-on.ts.inbox/turned-on(packages/shared/inbox/turned-on.ts). Its name and how it reads are in the contract section ofpackages/shared/inbox/connection.ts, copied byte for byte into the mod'sinbox-contract.ts.plannotator inbox,--no-openand--open(apps/hook/server/inbox-command.ts), and only when the Inbox was off. The start at login runs--no-open, as on main; a login item exists only where the Inbox ran.--background, a detached start andrestart;ensureInboxRunning, soinbox call,card,routine,steps,projectsand the rest;InboxAgentConnection.ensureRunning(Pi, OpenCode, DSH, Cline, OpenClaw).inbox connection). That took fewer lines than makinginbox.jsonunwritable.inbox/inbox.jsonexists, the first reader writes the mark on (update-existing). This covers:plannotator(a new mod with an old binary).PLANNOTATOR_TEST_INBOX_ON=1is the deliberate knob, and=0gives the real rule.Known leftover: a note Plannotator wrote into an agent's instructions (e.g.
~/.claude/rules/plannotator-inbox.md) stays. A computer is now off only where the Inbox never ran, and Plannotator writes notes only from a running Inbox, so such a computer has none.Agent-facing strings, main → new
New: the one line an agent gets while the Inbox is off (
INBOX_OFF_LINE):It names the setup command through the constant. It never names bare
plannotator inbox, which serves in the foreground in an agent's shell. Hermes'sinbox connectiongives the same line as itswhy(main: "The Inbox has never run on this computer: start it once with plannotator inbox.").New: the setup command, in one constant:
INBOX_SETUP_COMMAND = 'plannotator inbox --open'(packages/shared/inbox/connection.ts). The site calls itTURN_ON, andinbox-prompt.mduses{{TURN_ON}}.--open"returns at once", as on main, with one sentence added for the first run: "The first time, it also turns the Inbox on and connects the agents it finds, within half a minute." The sentence goes in:plannotatorskill's "When the person asks where their Inbox is" line;plannotator-inboxskill's step 1 (apps/skills/core/plannotator-inbox/SKILL.md);/plannotator-inboxcommand (apps/opencode-plugin/commands/plannotator-inbox.md);--openrow of the reference page (apps/marketing/src/content/docs/reference/inbox.md), after "It returns at once."The setup words now give the steps in the order the binary takes them: they print the URL, then connect. This applies to
inbox-prompt.mdstep 2, llms.txt setup step 3 ("It opens the window in the browser, prints its URL, then connects the agents it finds…") and the--helpline below.Skill (
apps/skills/core/plannotator/SKILL.md, the Inbox section)plannotator inboxjust to send: calls start a stopped Inbox in the background, and bareplannotator inboxopens the window for the person."plannotator inboxjust to send: once the person has turned the Inbox on here (their ownplannotator inbox), calls start a stopped Inbox in the background, and bareplannotator inboxopens the window for the person. Until they have, a call answers that the Inbox is off: ask them in the chat instead."plannotator inbox --help(apps/hook/server/inbox-help.ts)plannotator inboxjust to send. Bareplannotator inboxis for the person: it opens the window."plannotator inboxjust to send. Bareplannotator inboxis for the person: it opens the window and turns the Inbox on. Until they have, a call answers that the Inbox is off: ask them in the chat instead."--open):inbox/inbox.jsonin the data folder); if it never has, the person starts it once withplannotator inbox --background."plannotator inbox --openonce." Hermes keeps its "in new Hermes sessions, never in a running one, and" lead.plannotator_inboxtool is on by default in Claude Code, off by default in … and registers the tool only if the Inbox has run once on this machine by then (inbox/inbox.jsonexists); Claude Code registers it anyway, and its first call starts the Inbox. … Once the Inbox has run here, a session…"plannotator_inboxtool is on by default in Claude Code, off by default in … and registers the tool only if the person has turned the Inbox on for this machine by then (their ownplannotator inbox), Claude Code included. … Once the Inbox is on here, a session…"plannotator --helpusage (apps/hook/server/cli.ts)plannotator inbox --backgroundStart it detached without opening a browser, print its URL and exit"llms Inbox page (
apps/marketing/src/lib/llms.ts)plannotator inboxjust to send. Bareplannotator inboxis for the person: it opens the window."plannotator inboxjust to send. Bareplannotator inboxis for the person: it opens the window and turns the Inbox on. Until they have, a call answers that the Inbox is off: ask them in the chat instead."plannotator inbox→plannotator inbox --open, andPLANNOTATOR_INBOX_CONNECT=0 plannotator inbox→PLANNOTATOR_INBOX_CONNECT=0 plannotator inbox --open.plannotator inbox --backgroundprints the URL to give the person."plannotator inboxturns it on when it finds the plugin."plannotator inboxlater."Setup script (
apps/marketing/src/lib/inbox-prompt.md, step 2)plannotator inbox --background. It starts the Inbox without a browser (or finds the running one), prints its URL and exits."plannotator inbox. With the Inbox running, it opens the window in the browser, connects the agents … and exits. … give the person the URL from step 2.1 …"plannotator inbox --open. It turns the Inbox on, starts it in the background (or finds the running one), opens the window in the browser, prints its URL, then connects the agents it finds on this computer that are not connected yet, and exits. Its stderr names them (…). Keep that line for step 3. If no browser opens (SSH, container, headless), give the person the URL it printed and tell them to open it on this machine."plannotator inboxnever changes editors by itself" → "plannotator inbox --opennever changes editors by itself".Agent pages (
apps/marketing/src/lib/inbox-agents.ts, and the/llms/agents/<slug>.mdpages built from it). These are pages a person follows, and they keep main's bareplannotator inboxword for word, so an existing user who adds an agent gets what they got on main. The whole diff against main:plannotator inboxand "The Inbox opens in your browser.": Copilot CLI, Droid, Mistral Vibe and T3 Code.plannotator inbox)."TURN_ONconstant the setup prompt and llms.txt use, and one doc comment.--openis only where an agent runs the first turn-on: the setup prompt, llms.txt's setup steps, the off line, and the help and skill lines about it.Reference docs (
apps/marketing/src/content/docs/reference/)inbox.md, the--backgroundrow of the command table:plannotator inbox,--no-openor--open)"inbox.md, Claude Code:plannotator inboxonce); after that, when Claude uses it with the Inbox stopped, it starts the Inbox in the background."inbox.md, setting the tool:plannotator inboxonce); after that, a call with the Inbox stopped starts it."environment-variables.md,PLANNOTATOR_INBOX_TOOL:plannotator inboxonce. … (once the Inbox is on)"Existing installs: everything that differs from main
These are the differences on a computer where the mark reads on, which is any computer where an Inbox ran (
inbox/inbox.json).Files
inbox/turned-on({"on":true,"by":"update-existing","at":…}), written once by the first reader.turnsOnNow,apps/hook/server/inbox-command.ts:896-901). Bareplannotator inbox,--no-openand--opennever rewrite a mark that says on; the e2e case checks its bytes and mtime.inbox/turned-on.<pid>.<ms>.tmpthat is linked into place and removed at once (packages/shared/inbox/turned-on.ts:65-78,:109). A crash between the two steps can leave that temp file behind.$.fs.write, at the file system's default mode (apps/hook/hooks/mod/inbox-turned-on.ts:38).PLANNOTATOR_INBOX_LOGIN_ITEMvariable is gone. A login item exists only where the Inbox ran, so its--no-openrun finds the Inbox on and does what it did on main.Timing
plannotator inbox …run (apps/hook/server/inbox-command.ts:896);ensureInboxRunningandrestart(:211,:707; the--openand--backgroundpaths read twice);apps/hook/server/inbox-mcp-shim.ts:524);apps/openclaw-plugin/inbox.ts:98);apps/dsh-plugin/inbox.ts:243,apps/cline-plugin/inbox.ts:259,apps/opencode-plugin/inbox.ts:238,apps/pi-extension/inbox.ts:183,apps/hook/server/inbox-connection-command.ts:104-105).$.fscalls (exists, read) at the firstsession.start(apps/hook/hooks/mod/register.ts:957).Output and exit codes
--openconnects nothing, as on main (apps/hook/server/inbox-command.ts:936).Environment
PLANNOTATOR_TEST_INBOX_ONandPLANNOTATOR_TEST_SANDBOXare read, and only matter where there is no mark and noinbox.json.Words (not behaviour)
plannotator inbox --helpandplannotator --help(the--backgroundusage line,apps/hook/server/cli.ts:818)./plannotator-inboxcommand, the reference pages and the setup pages, as listed above.Not an Inbox user, but existing: a Claude Code user with the mod who never ran an Inbox (no
inbox.json) losesplannotator_inbox. On main the mod registered it before any Inbox ran. That is the point of this PR.Deploy order and version skew
Order. The site goes out before the binary.
inbox-prompt.md(served at/inbox/prompt.mdand inlined in the/inbox/page's "Copy install prompt") and the llms pages live, once Test passes on that push.deploy.yml:100-104).apps/marketing/orpackages/(.github/workflows/deploy.yml:9-14,:35-40,:135,:141-209; CloudFront is invalidated with/*). It can also be deployed by hand (workflow_dispatch,:14).v*tag runs.github/workflows/release.yml(:3-6), which publishes a GitHub Release (:1425-1434).install.shinstallsreleases/latest(scripts/install.sh:481).plannotator inbox --open. Site live with the new prompt before the tag..claude-plugin/marketplace.json:"source": "./apps/hook"), not from the release, so the new mod can meet the 0.29.0 binary.Skew a: the old prompt (main's steps 2.1 and 2.2) with the new binary, on a fresh computer.
--helpstarts with the guide heading, so the agent does not update it again.plannotator inbox --background: exit 1, stderr "The Plannotator Inbox is off on this computer.plannotator inbox --openturns it on. If you are an agent, ask the person in the chat instead, and turn it on only if they ask you to." Nothing starts.plannotator inbox --open: the Inbox turns on, the window opens, the URL prints and the agents are connected.plannotator inbox: the Inbox is running, so it opens a second tab, connects nothing new and exits. Steps 3 to 6 go as on main.plannotator inboxis a person's run, so it turns the Inbox on. With no Inbox running, it serves in the foreground and does not return until the agent's shell times out. That is what main does whenever 2.1 fails.--open. The sentence it reads at that moment ("plannotator inbox --openturns it on. If you are an agent, ask the person in the chat instead, and turn it on only if they ask you to.") names the command it needs, so no change.--backgroundturn the Inbox on would let any agent turn it on (the guide tells agents to use--backgroundto read the address). Because the site always deploys first, the recommendation is no code change.Skew b: the new prompt with the 0.29.0 binary (merge to release), on a fresh computer.
--helpstarts with the same heading.plannotator inbox --open(0.29.0): it starts the Inbox detached, opens the window, prints the URL and exits at once. It connects nothing and writes no mark, so stderr names no connections.inboxTool.<host>into config.json, so the 1b line "plannotator inbox --openturned the tool on" is false here, but step 3 covers it.plannotator-inboxserver …, you are done here. Otherwise follow the guide's "Connecting yourself" section". With no line, the agent takes "Otherwise". The hands-on run confirmed it.plannotator inboxlater.inbox.jsonat session start, so the session has noplannotator_inboxtool. Step 4 falls back toplannotator inbox mcp, and step 5 asks the person to say "done", then reads the thread. The first message and its reply work.inbox.jsonthat 0.29.0 wrote turns the mark on (update-existing). Nothing is lost.Tests
packages/shared/inbox/turned-on.test.ts:inbox.jsonandprojects/*) is on, and so is an older plannotator's start;apps/hook/hooks/mod/inbox-turned-on.test.ts: the mod's read of the same rule.apps/hook/tests/register.test.ts):plannotator_inboxand no reminder;tests/e2e/inbox-turned-on.cases.ts, registered byinbox.spec.ts, so Browser smoke runs it on every PR with the real rule):--background,restart,inbox call, a detached start andinbox mcpgive the one line and start nothing;--no-openand--openturn it on, and--backgroundalone (an old plugin) never does;--backgroundworks, the mark saysupdate-existing, andrestart(what Update ends in) brings it back;--openthat turns the Inbox on prints its URL before "Connected Cursor…" and returns within 30 s;--openwhere the Inbox is on already (a mark, or aninbox.jsonfrom before the mark) connects nothing: noConnectedline, and Cursor in the agent home stays unconnected (no.cursor/mcp.json);apps/marketing/setup-order.test.ts: in a text an agent runs for the first setup, the first Inbox command isplannotator inbox --open, never bare or--background; a page a person follows opens with bareplannotator inboxbefore any step that needs the Inbox, and never gives--background. The e2e walk runs the person's pages with bareplannotator inboxserving in the foreground.apps/hook/server/inbox-help-setup.test.ts. The latter now also checks that the only command the off line names isplannotator inbox --open. Their helper istests/helpers/setup-texts.ts.Not in this PR
A run with
PLANNOTATOR_TEST_SANDBOXon a scratch data dir counts as on and leavesinbox.jsonwithout a mark. This is a test-only path. Any later read without the marker seesinbox.jsonand writes the mark (update-existing).No off command, off button or Settings switch.
No change to
stop.No status or migrate command, no HTTP endpoint, and no route or wire change.
No new person-facing UI.