Repository navigation
Start a session with the Plannotator Inbox off (PLANNOTATOR_INBOX=off) - #4221
Merged
Merged
Conversation
The session is in the same off state as a typed /plannotator-inbox off, but silent: no tool (mod: not registered; Pi: inactive), no reminder, no off sentence, nothing after a compaction, until /plannotator-inbox on. OpenCode and the DeepSeek Harness keep the tool listed and refuse sends. plannotator inbox mcp started with it lists no tools and sends no instructions.
…while silent, true docs A refused registration at /plannotator-inbox on keeps the session off and silent. A bare /plannotator-inbox in a start-off session opens the Inbox without briefing the agent (mod, Pi, OpenCode 1). On typed in an OpenCode subagent lifts it for that subagent. Docs list what still reaches the agent per host and that PLANNOTATOR_INBOX=off codex has no effect.
…e 1's bare command turn, exact docs The setting is read when the host loads Plannotator, so a bare /plannotator-inbox briefs nothing before a connection exists (Pi with its tool off, the mod before the Inbox was turned on, OpenCode with no Inbox at load). OpenCode 1 keeps the address and briefing in a bare command's own turn: an empty one makes the model answer its last reply again. Docs state the desktop Code tab and the other limits.
# Conflicts: # apps/hook/hooks/mod/register.ts # apps/hook/server/inbox-command.ts # apps/hook/server/inbox-mcp-shim.ts
… keeps its turn In the Claude Code mod, /plannotator-inbox on now ends a start-off session that has no Inbox tool (Inbox not turned on here, or its tool switched off), and the command is answered as without the variable. OpenCode 1's typed off and on keep the off or on sentence in the command's own turn, as part 1 does, instead of an empty turn. Docs: the DeepSeek Harness reads the setting only when its Inbox connection starts.
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.
Start an agent with
PLANNOTATOR_INBOX=off(for examplePLANNOTATOR_INBOX=off claude) and its sessions begin with the Plannotator Inbox off. They stay off until the person types/plannotator-inbox on. A typed/plannotator-inbox offin a running session works exactly as before.off,0,falseanddisabledcount as off, the same words every other Plannotator switch takes. Any other value, or no value, changes nothing. The setting is read once per process, when the host loads Plannotator, whether or not an Inbox connection exists yet (the DeepSeek Harness reads it only when its Inbox connection starts). So on plain Pi with its tool switched off, in Claude Code before the Inbox was turned on, or in OpenCode 2 with no Inbox found at load, a bare/plannotator-inboxalready briefs nothing, and a connection that appears later in the process (a reload) starts off.The session is in the same off state as a typed off: the Inbox window shows "Inbox off" for it, and replies wait. Plannotator's runtime then adds nothing about the Inbox to the agent's context:
offbeforeon(except OpenCode 1, below)/plannotator-inbox: it still opens the Inbox and shows them the address (two exceptions below)What each host withholds
plannotator_inboxtool is not registered.onregisters it in the running session, then behaves as today's typedon: the on sentence, and the reminder at the next prompt where the reminder applies.onends the start and the command is then answered as without the variable.onactivates it.read_thread,searchandget_guide_briefstill answer.onis typed in it./plannotator-inbox. OpenCode 1 runs a model turn for every command's message, and an empty message makes the model answer its last reply again (command-turn.ts). So a bare/plannotator-inboxthere keeps the address and the briefing in its turn, and a typedofforonkeeps the off or on sentence in its turn, as part 1 does.Claude desktop app, Code tab
A bare
/plannotator-inboxgoes past the mod to the skill (reviews: false), and the skill's "Using the Inbox" section briefs the agent. Behaviour is unchanged there. Whether the variable even reaches the desktop app is unproven.What still reaches the agent on every host
packages/server/inbox-agent-notes.ts).plannotatorskill's description.The MCP shim
When
plannotator inbox mcpsees the variable in its own environment, it answers with no tools and no instructions for its whole life. That is all it does:plannotator inbox callis not refusedplannotator inbox oncannot change a running shimCodex: no effect. Codex hands a stdio MCP server none of its own environment, and the connect step adds a plain
codex mcp add. That is why Ask AI writes the entry'senvitself.Qwen Code and Gemini CLI: not checked. Whether they pass their environment to the MCP child is unverified.
Unproven without a real session
/plannotator-inbox on) to the model on its next request. If it never does,oncannot work in a start-off Claude Code session, and the person sees "Plannotator Inbox off for this session." with no hint to restart without the variable. The engine harness answerstool.registerwith the test's own hook and never shows a request's tool list. A live check on 2.1.310 saw the tool registered about 230 ms after the first prompt context and working, but that was early in the session, not after a later command.$.env.getsees aPLANNOTATOR_INBOXvalue set in Claude Code'ssettings.json.Other limits
plannotator inbox callfrom the agent's shell is a separate process and ignores the variable.tool.registerreturns no name (rather than throwing), no log line says why.Not tried
No real agent was run.
Wording
No user-facing or agent-facing sentence was added or changed. The shim answers methods other than
initialize,tools/listandpingwith the JSON-RPC standard error "Method not found", which only the MCP client sees. This PR adds no Inbox route and no wire field.Tests:
apps/hook/hooks/mod/inbox-start-off.test.ts,apps/pi-extension/inbox-start-off.test.ts,apps/pi-extension/inbox-command.test.ts,apps/opencode-plugin/inbox-off.test.ts,apps/opencode-plugin/command-interception.test.ts,apps/hook/server/inbox-start-off-shim.test.ts.