Repository navigation
Turn the Plannotator Inbox off for one session with /plannotator-inbox off - #4172
Merged
Merged
Conversation
…ssion # Conflicts: # apps/hook/hooks/mod/register.ts # apps/mobile/contract/parity/ledger.json # apps/opencode-plugin/index.ts # apps/pi-extension/inbox.ts
…, OpenCode 1 subagents Off is now in memory only: it survives /clear, compaction and an in-process session switch, and ends with the process, so a resume in a new terminal starts on. The mod handles off and on before the reviews gate, so the desktop app's Code tab turns the Inbox off instead of opening it. A sentence dropped mid-turn goes in with the next prompt. OpenCode 1 refuses a subagent's send when its parent chain is off. The move check reads the heir. The Agents card's too-old row and its field are gone.
…ssion # Conflicts: # apps/mobile/contract/parity/ledger.json
…ssion # Conflicts: # apps/hook/hooks/mod/register.ts # apps/opencode-plugin/index.ts # apps/opencode-plugin/server.ts # apps/pi-extension/inbox.ts
…ssion # Conflicts: # apps/mobile/contract/parity/ledger.json # packages/inbox/components/Thread.tsx
…ssion # Conflicts: # apps/mobile/contract/parity/ledger.json
…oes first Off and the owed sentence live on globalThis, so a module reload keeps them. A conversation started while off is not counted as briefed, so after on its next prompt gets the reminder. The off and owed sentences no longer depend on the reminder switch, and an owed on sentence rides first with a held reply the link submits. OpenCode 1 subagents of an off session get the off sentence. Tests wait on conditions instead of fixed sleeps.
Off typed mid-turn and then /clear gave the new conversation the off sentence on its first two prompts. The harness world and the DSH and OpenCode command tests reset the off state, so a failing test cannot leave it set.
backnotprop
marked this pull request as ready for review
November 29, 2026 03:55
DuongCoder04
pushed a commit
to DuongCoder04/plannotator
that referenced
this pull request
Nov 29, 2026
Move the marker from f00a501 to b74c769 and list the additive ./inbox-* changes core 0.25.37 carries from backnotprop#4161, backnotprop#4172, backnotprop#4194, backnotprop#3595, backnotprop#4186, backnotprop#3676 and backnotprop#3598.
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.
Typing
/plannotator-inbox offin a coding agent turns the Plannotator Inbox off for that one session./plannotator-inbox onturns it back on. With no argument, or any other word, the command opens the Inbox as before.This PR is Part 1. It covers the hosts whose own code runs in the session: the Claude Code mod (terminal, VS Code panel and the desktop app's Code tab), Pi, OpenCode 1 and 2, and the DeepSeek Harness.
How long off lasts
$.store./clear, a compaction and an in-process switch to another session (Pi's/new). It ends when the process exits, soclaude --resumein a new terminal starts with the Inbox on.onclears it for the whole process. In hosts where one process holds many sessions (OpenCode, the DeepSeek Harness) off is kept per session id in memory, andonclears that session./clearrule is one function,inboxOffCarriesAcrossClear, so it can be flipped.While a session is off
read_thread,searchandget_guide_briefstill work.inbox_off(additive). Replies, New message and Send now wait. Onon, they go in at once.globalThisin the mod, so a plugin auto reload keeps it (and a still-owed sentence).on, a conversation that started while off (after/clearor an in-process resume) is briefed on its next prompt as a fresh one: the reminder, rules and threads./clearand an owed sentence do not depend on the reminder switch. An owed "back on" sentence rides first in the same turn as a held reply, so the reply never reaches the agent before it.packages/server/inbox-session-off-linked.test.ts, two Inboxes)./clearcarries it too.Per host
offandonare handled before the review gate, so in the desktop app's Code tab (no review commands)offturns the Inbox off instead of opening it. When the installer's skill holds the name, the command waits for the turn to end. Animmediatecommand typed mid-turn flips at once, but Claude Code drops its hidden context there, so the off or on sentence also goes in with the next prompt (the same path as the first prompt's reminder).InboxWakeholds replies. The off and on sentences go in as hidden messages before the next run./newdoes not carry off to the new session./plannotator-inbox [off | on]command; with no argument it opens the Inbox. Its plugin API gives a command no hidden context (followupstarts a turn,steeronly reaches a running one) and it has no Inbox reminder to stop, so its agent learns off from the refusal and on from a working tool call. Its new strings: the description "Open your Plannotator Inbox and show its address; off or on turns it off or on for this session", the hint "[off | on]", and "No DSH session received this command."Version skew
offthere opens the Inbox.Mobile contract (additive, generator output only)
undecided:undecided-enum-inboxdeliveryreason-inbox-offundecided-field-inboxagent-inbox-offundecided-field-inboxcomposesession-inbox-offdelivery.inbox_off_replyandlabel.inbox_off.apps/mobile/ioschanged.Part 2 (not in this PR)
plannotator inbox callmust refuse for a flagged session.onfrom the CLI needs the same session identity.Clean room
Not verified
apps/hook/tests/register.test.ts: compaction,/clear, a new process,onmid-turn, the desktop app) run only in CI's Claude Code mod job, and Pi's hidden message ordering inbefore_agent_startis unchecked.