Scoped orchestrators, loops that recover on their own and a leaner shell
v4.6.0On v4.5.4 a loop needed a person more often than it should. A server restart left every lost session waiting for a Restart press. On 2026-10-16 the board sat with 15 lost sessions. A loop that hit the weekly usage limit sat idle for seven hours while another account had headroom all day. A session that compacted while idle froze and held the typed lines in its prompt box. A stopped npm run check held the shared check slot for 16 hours, and every ship check waited behind it. A re-ship stopped at "a pull request already exists" on its own PR, and each retry ran the 20 to 30 minute check again.
The orchestrator had gaps too. A second orchestrator competed with the main one for the same To Do cards. A ticket outside a group could not wait for another ticket. start_ship refused feat/ unit branches, refused a card that you started from the board, and refused a finished card until the server restarted. A budget stopped a scope with no warning before the stop. On a phone you could not reach the orchestrator at all, and on a 1080p laptop the terminal got less than half the height.
Late October showed more gaps. On 2026-10-23 the fourth loop start was refused four to six times at 601 to 947 MB free, while finished sessions sat idle. With four loops, the check slot was not free for hours, and every finished single card went to a hand ship. On Oct 22 the Mac slept 13 times in one night, and the supervisor typed a continue line that never arrived. A service restart left the orchestrator with a dead tool token. The sidebar had two entries for one page, and the command centre showed one orchestrator at a time.
This release closes those gaps. Each orchestrator has a board or feature scope, and the new Tree view shows which orchestrator runs which group. Lost sessions resume at boot, a limited loop moves to an account with headroom, and a frozen session relaunches after 15 minutes. A start below the memory floor waits instead of failing, and finished sessions give their memory back. Ship checks go first in a fair check queue, and the ship flow adopts its own PR. A card can name its blockers and starts when they reach Done. The shell is smaller: the Sessions, Workspace and Activity pages are gone, and the orchestrator has its own sidebar row.
This is a minor release. It adds features and removes three pages, the Conversation pane and two web endpoints. The store schema stays at 3. One policy rule changes its count: the concurrency cap now counts only loops with an open engine (LOCAL-201).
Orchestrators: scope, the Tree view and the command centre
Board or feature scope on each orchestrator (LOCAL-150, #286). The main orchestrator is board scoped and works as before. An extra orchestrator is feature scoped and can start with no cards. The settings sheet, the centre tile and the dashboard show Board, or Feature with the card count. You assign a card from the card detail panel through an Orchestrator select, or the feature orchestrator takes it with the new
assign_cardtool when you name it in its terminal.assign_cardaccepts only a To Do card and refuses others withnot-todo. A feature orchestrator'slist_cardsshows only its cards, and every card tool,start_cardincluded, refuses other cards without-of-scope. A feature orchestrator ships its own cards. Two new routes sit behind the loopback guard:PUT /api/boards/:key/cards/:cardId/orchestratorandPOST /api/orchestrator/cards/:cardId/assign. The rule book gains a Scope section and Never item 11.Evidence: 92 of 92 visual cases pass on Mac with 14 refreshed baselines, and the e2e scenario where a feature orchestrator ignores a To Do card passes. (PR #286)
The Bands and Tree view (LOCAL-149, #372). On a wide screen with two or more orchestrators on the board, the centre toolbar shows a Bands and Tree toggle. Bands is the default and is the earlier view. Tree shows every orchestrator, main first, each with its groups to the right joined by elbow edges. A group tile shows the identifier, the title, a status badge and "N units" when there are units. Click a group to open it in the side panel. Click an orchestrator to select it and show its Bands. The view lives in the
viewsearch param, so a reload or a shared link keeps Tree. On a phone, or with one orchestrator, Bands renders even when the URL saystree. Arrow keys and Tab follow a tree focus order.Evidence: seven phase gates passed, including the full check, the build and the visual suite. Live QA ran on a seeded sandbox with an extra orchestrator created through the real create endpoint. Centre visual specs pass 22 of 22, and the full Mac visual suite passes 115 cases. (PR #372)
A group tile expands in place (LOCAL-142, #371). A group tile on the command centre canvas gets a Show N units and M tickets control in its footer. Open, the tile shows the unit track with the You are here badge and one row per member ticket with its identifier, title and state. A ticket reads Needs attention on an attention claim or a failed gate, else its board column. Hide units and tickets closes it. A group with no loop units reads "No units yet". The 390 px list shows the same control. The open state is not stored and survives a band change.
Evidence: domain tests cover the group detail builder, the track builder and the clock formatter. Playwright on a sandbox covered the control, the keyboard path and the phone list. Centre visual specs pass 20 of 20, and 115 Mac visual specs pass. (PR #371)
A terminal-only command centre pane and one shared side panel (LOCAL-125, #362). The command centre pane shows the Terminal only. One side panel component serves the centre pane and the card detail panel, in an overlay or an inline placement. The pane opens expanded on first use and stores its state in
dsp.centre.expandedanddsp.centre.width. When the pane is closed, a Terminal button shows. Below 768 px the panel is a sheet, Escape closes it in both modes, and the navbar stays visible. The Conversation surface is removed from the web app and the server, with its endpoint, schema, service and transcript reader.Evidence: unit tests cover the placements, the stored centre state and the removed endpoint. A real browser run on a sandbox at 1440 px and 390 px checked the width, the sheet and Escape. (PR #362)
The orchestrator starts with bypass permissions (LOCAL-126, #338). Every orchestrator Claude session now starts with the bypass permissions flag. The launch no longer pins the permission mode to manual. The read-only tool allowlist, the disallowed tools list, the strict MCP config and the model flag do not change. A user-configured permission flag is still removed so the policy value wins. The relaunch path builds the same arguments. Loop sessions do not change. The reason: the orchestrator runs unattended, and a permission prompt blocked the board until a person clicked.
Evidence:
orchestrator-launch.test.tscovers a new session, a resumed session and the unchanged allowlist and disallowed tools. (PR #338)The orchestrator relaunches after a restart kills its token (LOCAL-219, #346). At boot, an adopted orchestrator session whose tool token is dead is relaunched with its stored resume prompt, and one
orchestrator_relaunchsupervisor event is recorded. Before this, every orchestrator tool call after a service restart answeredorchestrator-token-invaliduntil a person killed the tmux session and resumed by hand.Evidence: a unit test relaunches an adopted orchestrator on a dead token at boot and writes one event.
npm run checkpassed. (PR #346)Auto-approve under roadmapApproval all and rules (LOCAL-128, #271). When the board policy
roadmapApprovalisallorrules, a decision item of kindticket_proposalorplanis stored as answered with approve at creation, socreate_ticketsucceeds at once. The server emitsdecision_answeredwith the orchestrator id and returns the answered item. Underaskthe item stays open. Auto-answered items do not enter the attention queue and do not count in the Decisions label of the centre. The server answers the item, not the orchestrator, so the rule that an orchestrator never answers its own item holds.Evidence: on a test server with
roadmapApprovalall,create_decision_itemof kindticket_proposalgave an answered item andcreate_ticketcreated the ticket. Underaskthe item stayed open andcreate_ticketrefused withproposal-open. (PR #271)The Ship section and the Shipped band are gone (LOCAL-133, #289). The dashboard no longer renders the Ship section, and the command centre no longer renders the Shipped band. A shipped card no longer becomes a tile, and the count line counts only Needs you, Running, Planned and Done. Shipped work stays in the Done column. The user guide, the UI spec and the README no longer describe the removed surfaces.
Evidence: unit tests 4403 of 4403 and 2139 of 2139 passed, lint 0 errors. 16 darwin dashboard and centre baselines were refreshed with zero pixels changed. (PR #289)
A scroll fix for the Conversation pane (LOCAL-169, #306). The pane now stayed at its newest message when the start-failed alert landed late, and the frontend standard records the rule: fix a flaky screen at the source, never with a wider tolerance. LOCAL-125 (#362) later in this release removes the Conversation pane and the hook with it. The standard stays.
Evidence: a probe that forced the same-frame order reproduced the CI frame 3 of 3 times before the fix and 0 times after. (PR #306)
Accounts and usage
The compact usage popover (LOCAL-129, #275). A click on the usage counter in the sidebar footer opens a 320 px popover next to the counter. It shows the active account email, the session and weekly windows as two slim bars with the percent and the reset time, one state line, and a Switch account row with the other accounts and their weekly percent. It also has a refresh icon and a footer link to Accounts and Usage. Escape and an outside click close it, focus returns to the counter, and the counter never navigates. The old panel that grew to 70 percent of the screen is gone.
Evidence: the behaviour tests cover open, close on Escape and outside click, focus return and no navigation. The popover has visual baselines in both sidebar states. (PR #275)
A limited loop moves to an account with headroom (LOCAL-152, #281). When a session reports the weekly usage limit and another account in the chain has a weekly window under the headroom threshold, the supervisor relaunches the REPL on the same conversation under that account and records an event. Under
usageLimitwait, the loop waits only when no other account has headroom. Usage credits are never selected. The limited state of an account clears when a fresh usage read shows the window under 100 percent, or whenlimitedUntilhas passed.claudeAccountStaleclears on the relaunch, and the session shows the account it runs on.Evidence: two sandbox scenarios with two fake accounts reproduced both defects red first, then green. In the e2e, the limited loop continued on the second account within two minutes with no person. (PR #281)
Chain states follow live usage, login and exhausted decisions (LOCAL-159 Unit A, #296). The chain releases a limited hold as soon as a live usage read shows a new period. Two consecutive token-rejected reads put an account in the new state
needs-login. The chain stops using it and raises one board decision, "Account <email> needs a login". Its login answer starts the login flow and closes the decision after settle. A registry entry whose identity equals the home login isshadowed-by-home. It is hidden from the chain and shows the badge Same login as Default with a Remove duplicate button. An exhausted chain raises one decision with the earliest reset time and an Add an account option, and closes it when any account returns. Dispatch raises one decision per cause, never one per poll, and a restart raises no second one.A managed Default login (LOCAL-159 Unit B, #296). The Accounts page offers Move the Default account to a Dispatch login while the Default account is still the home login. That login creates a Dispatch-managed config dir for the same identity and records it as
managedDefaultId. From then on every new start, resume, orchestrator, ship session and claude subprocess call runs on the managed dir. Sessions already running keep running. A terminal login change only adds an activity row and marks no session stale. The Accounts page shows one login per account in chain order, with the managed row labelled Default (Dispatch login).Evidence:
npm run checkpassed on HEAD 7d03c779 with 0 typed lint errors. The readiness audit recorded zero BUG rows and six named risks. LOCAL-167 and LOCAL-177 below close three of them. The PR body is cut off on GitHub inside its Testing section. (PR #296)Accounts page tests, an e2e script and a guard on a manual switch (LOCAL-167, #304). Component tests cover the chain row per account, the Needs login badge with Re-login, the Same login as Default badge with Remove duplicate, the managed default offer panel and the Default (Dispatch login) label. The new script
npm run test:e2e:accountsruns the two accounts sandbox scenarios one at a time. It is not part ofnpm run check.PUT /api/accounts/activerefuses an account inneeds-loginorshadowed-by-homewith 409account-needs-loginoraccount-shadowed-by-home. The active account stays, and the switch dialog shows the reason next to Switch.Evidence: on a sandbox server, curl showed both 409 answers with the active account unchanged. 24 accounts server tests and 66 accounts web tests pass on the merge. (PR #304)
The switch dialog refusals render, and the second accounts scenario passes (LOCAL-177, #312). Two Playwright cases open the real switch dialog, make the server refuse with 409, and assert the
account-needs-loginandaccount-shadowed-by-homemessages. The dialog stays open. The isolated test env now clears and restoresCLAUDE_CONFIG_DIR. Test code only.Evidence: the spec passes 16 of 16.
npm run test:e2e:accountspasses 2 of 2 with other loops running and free memory above the 1024 MB floor.default-identity-watch.test.tswent from 6 of 8 failing to 8 of 8 passing. (PR #312)
Memory and concurrency
A start waits for memory instead of failing (LOCAL-186, #316). A card start and a lost-session resume now wait behind the memory floor. Dispatch checks the free memory floor and the swap ceiling once, then every 30 seconds for up to 30 minutes. The start route answers 202 at once, and the card shows "Waiting for memory…" as its step. A second Start click answers 409. After 30 minutes the start fails at the step "checking memory", and the card stays in To Do with a reason that ends "after 30 minutes of retries". The Resume button, Reconnect on a dead pane and the supervisor auto-resume share the wait, and the Resume route answers 202 instead of 409. The hidden orchestrator card skips the wait.
Evidence: on an isolated server with a fake 812 MB free reading, the start answered 202, a second start answered 409, and after 30 real minutes the card showed "free memory 812 MB is below the 1024 MB floor after 30 minutes of retries". (PR #316)
The orchestrator tools wait for memory too (LOCAL-192, #317).
start_cardandstart_grouprun the same wait inside the start saga. Under low memory they answer 202 at once withwaitingForMemoryand the reason.resume_cardanswers 202 and unpauses after the wait. After 30 minutes it shows "Resume failed: <reason> after 30 minutes of retries" and the card stays paused.resume_cardon a card that is not paused answers 409not-pausedunder low memory. With memory free, each tool answers as before.Evidence: per tool, one fake-clock test shows wait then proceed and one shows the refusal after 30 minutes.
npm run checkpassed with 4651 unit tests and 0 failures. (PR #317)Finished sessions give their memory back before a start is refused (LOCAL-211, #333). When the memory floor blocks a start or a resume, Dispatch first releases the finished sessions of the board. A finished session is a card in Agent done or Done, or a loop whose engine is closed. Each one gets
/exit. Dispatch checks memory every 5 seconds for up to 30 seconds, then the 30 minute wait runs. A released session keeps its tmux session, pane text, column and DONE marker, andstart_shipstill works. Theresume_looptarget in Needs input is never released.Evidence: 31 new or extended tests cover the three acceptance cases.
npm run checkpassed with 4708 unit and 2194 timing tests and 0 failures. (PR #333)The cap counts only open engines, and finished sessions exit after DONE (LOCAL-201, #339). The running count that
get_policyandstart_cardread now counts only loops with an open engine. A card in Agent done, or a card whose loop engine is closed, holds no slot against the concurrency cap. After the DONE marker, or on a release timer, Dispatch exits the Claude process of a finished session. The card keeps its DONE marker, pane transcript and session summary. A released session relaunches through Run Claude, with no cap check, when a fix instruction arrives.Evidence: unit tests show that a finished card does not count and that the session process exits while the card keeps its DONE marker.
npm run checkpassed on HEAD 93459c64, and scoped tests passed after two merges of main. (PR #339)
Tickets, costs, notifications and sources
The blocked-by relation with auto start (LOCAL-147, #280). A card can name other cards on the same board as its blockers. You set
blockedByfrom the card panel picker, or the orchestrator sets it withcreate_ticketandupdate_ticket. Dispatch refuses a cycle, or a blocker on another board, with an error that names the chain. When a blocker moves to Done, the start saga starts each card it blocks, one at a time, inside the concurrency cap and the memory guard. A card that cannot start now stays in To Do with a log line. Dispatch tries it again on the next Done of another blocker or the next wake. A blocked card shows its blocker as a chip on the card face and as a field in the panel.Evidence: on a sandbox board, card B blocked by card A started within the cap when A moved to Done, and a cycle was refused. (PR #280) LOCAL-194 (#318) replaces a turn count in the auto start test with a wait for the start events, so a missing start now fails in about 10.8 seconds instead of hanging. (PR #318)
A budget warning percent and a per group cost rollup (LOCAL-148, #291). The board policy gains a budget warning percent, default 80, that you edit in the settings sheet. When a budget scope passes that percent, Dispatch adds one attention item and raises the sidebar count once for that crossing, never once per poll. The command centre tile and the group panel show the cost total of each group. The hard stop at the budget does not change.
Evidence: 18 of 18 curl cases and 12 browser cases passed. On a sandbox server the cost crossed the percent twice and gave one attention item and one sidebar increment. (PR #291)
Toast suppression rules (LOCAL-146, #276). A session start or success does not toast. A failure older than 5 minutes does not toast. A reconnect replay does not toast. A hidden tab does not replay a backlog when it becomes visible. A group move raises one notice for the group card, not one per member card.
Evidence: one test per rule plus one group test pass. (PR #276)
An attention item when a Pushover value is empty (LOCAL-168, #301). Dispatch checks the two Pushover values at start and every 60 seconds. When a value is empty or not set, every board shows one Notifications attention item that names the variable, and the server writes one start log line. No value is ever shown, logged or sent, and Dispatch sends nothing while a value is missing. The item clears when both values are filled. With no Pushover variable anywhere, nothing shows.
Evidence: 24 of 24 behaviour checks and 10 of 10 must-not-happen checks passed on the built server. The item cleared 35 seconds after the values were filled. The security review found no path for a secret byte to reach a log, the snapshot, an SSE frame, an error message or the page. (PR #301)
The Pushover follow-ups (LOCAL-176, #313). The attention queue builder now requires the
pushoverMissinginput, so a caller that leaves it out fails the typecheck. A fake-clock test covers the 60 second presence timer at start, 59,999 ms, 60 s, 120 s and 180 s. Production behaviour does not change.Evidence: in a clean env 4633 of 4635 unit tests pass, 2 skipped, 0 failures. (PR #313)
Granola and Slack rounds load the claude.ai connectors (LOCAL-154, #282). One shared connector call builder serves both rounds, without the restricted flag. That flag turned on safe mode, which dropped the connectors from the headless claude call, so every round failed. A round records
lastErrorconnector-unavailablewhen the connector is absent.Evidence: unit tests cover the builder and the error mapping. The live round phase was skipped, because the Granola and Slack connectors are not connected on the development account. (PR #282)
A failed poll runs again after 30 seconds (LOCAL-207, #328). After a failed poll, the next run comes after 30 seconds or the source interval, whichever is shorter. Then the source returns to its interval. There is one catch-up per failure streak. Rate limits keep their backoff and never catch up. Before this, a calendar error missed meetings that started inside the gap.
Evidence: fake-clock tests cover the catch-up, the single catch-up per streak and the rate limit path. (PR #328)
A source catches up once after the Mac sleeps (LOCAL-212, #335). Every 30 seconds the poller compares the wall clock with the end of the last run of each source. When more than two intervals passed, the source runs at once, one time. For the calendar that is 600 seconds. A source never has two fetches open.
Evidence: two new tests move the clock forward three intervals. Both fail on the old code and pass on the new code. (PR #335)
Ship flow and the check slot
Git-valid branch names (LOCAL-153, #273). The
start_shipvalidator followsgit check-ref-formatwith the branch option, so a slash in a branch name is allowed. It rejects what git rejects. The roadmap progress reader takes the unit branch from the ROADMAP Status line. Before this, no Roadmap group could ship, because each unit branch isfeat/<ticket>-unit-<n>-<slug>.Evidence: an e2e ships a two-unit
feat/group in stack order on a sandbox server with a fake GitHub. (PR #273)A single card ships regardless of who started it (LOCAL-136, #279).
start_shipaccepts a single card in Agent done when it has a session branch, the branch is ahead of its base, the worktree is clean and the card is on the orchestrator's board. The condition thatstart_cardstarted the card is gone. The ship rights check and one squash PR per card do not change.Evidence: a sandbox scenario ships a user-started card through
start_shipwith a fake GitHub, and a card with no branch is refused. (PR #279)A finished card in Needs input can ship (LOCAL-188, #348).
start_shipnow accepts a card in Needs input when its loop engine is closed and its loop completion iscomplete. Every other column, and Needs input without both conditions, still answercard-not-done.Evidence: store fixture cases and the ship route test cover the accepted card, an open loop refused with
engine-not-closedand other columns refused. (PR #348)The open PR is adopted, before and after the push (LOCAL-156, #277, and LOCAL-171, #298). Before the push step, the flow looks up the branch's open PR, adopts it and checks that its head matches the pushed commit. After the push, it reads the PR head up to 5 times, 2 seconds apart, because GitHub can report the previous head for a few seconds. When
gh pr createstill reports that a PR exists, the flow takes the number from that error. A closed PR is not adopted. When the check fails, the stored reason gives the failing step, the exit code and the last 40 lines of output, capped at 4000 characters.Evidence: a unit test with a stale head adopts the PR and never creates a second one. Sandbox scenario 16 shipped a card with an open PR in one attempt.
npm run checkpassed twice with 4543 tests and 0 failures. (PR #277, PR #298) LOCAL-190 (#364) adds tests for the stored flow resume skip and PR adoption on restart. (PR #364)The ship check is skipped when the tree already passed (LOCAL-171, #298, and LOCAL-175, #350). On a retry, the flow skips the check command when a passed check exists, the tree of the passed commit equals the tree of HEAD, and
git statusis empty. A failed read runs the check. The flow recordscheckSkippedand writes one activity row, "skipped a repeated check". The quick diff scope and prose checks still run. #298 compared commits. #350 compares trees, so a new merge commit with the same tree skips, and a dirty worktree never skips.Evidence: on a real git fixture shipped twice with a counting check command, the same tree on a new merge commit skipped and a dirty worktree did not. (PR #350)
The ship flow handles merge conflicts (LOCAL-181, #347). When the merge of
origin/mainconflicts only in Markdown files, the flow merges them itself withgit merge-filein union mode, main's text first. When a code file conflicts, the flow aborts the merge, sends the card session one merge instruction and waits. It polls every 30 seconds until the branch holds theorigin/maincommit, the tree is clean and the card is in Agent done. The cap is 60 minutes and 2 rounds per flow. Before it reports a failedgh pr merge, the flow reads the PR once, and a merged PR on the checked commit counts as merged. The flow never rebases.Evidence: unit tests run
startShipon real git fixtures with a fakeghfor a docs-only conflict, a code conflict and a merge error on a PR that already merged. (PR #347)The local ship check runs lint:typed for the Dispatch repo (LOCAL-220, #368). The check step runs
npm run lint:typedafter the board check command when the repository is the Dispatch repo. Both run under one slot. A typed lint error stops the flow at the checking step, before any push or PR. Other repositories have nolint:typedscript and do not change.Evidence: two tests against real npm fail without the fix. CI on main took 16 minutes for
npm run checkand 1 minute forlint:typed, inside the 30 minute budget. (PR #368)The 30 minute check budget starts when the slot is acquired (LOCAL-158, #287).
with-check-slot.mjsprintswith-check-slot: acquiredwhen it takes the slot after a wait.runCheckstarts a fresh 30 minutes on that line. The flow passesDISPATCH_CHECK_WAIT_SECONDS5400. A failed check reports its real first error line.Evidence: on fake timers, a check that waits 40 minutes and runs 5 minutes passes, and a check that holds the slot 31 minutes fails. (PR #287)
The check slot frees itself when its holder is gone or stopped (LOCAL-173, #297). When the holder process is gone, is a zombie, or is stopped for more than 5 minutes, the gate frees the slot, logs one line and runs. The threshold is
DISPATCH_CHECK_STOPPED_SECONDS, default 300. A failedpscounts the holder as alive. The 90 minute give-up stays as the last resort.Evidence: with gate A stopped by SIGSTOP and a 2 second threshold, gate B freed the slot after about 2 seconds. QA passed 5 of 5 GREEN and 4 of 4 RED cases. (PR #297)
A fair check queue with ship checks first (LOCAL-210, #334, and LOCAL-179, #349).
with-check-slot.mjskeeps one entry per waiter in acheck-queuefolder in the lock folder. Waiters take the slot in arrival order, and a ship waiter goes ahead of every queued loop gate. The ship flow passesDISPATCH_CHECK_CLASS=ship. A status file,check-queue.json, lists the holders and the queue in take order. The slot filecheck-slot-0keeps its name, so loops on the old script keep working. #349 addsDISPATCH_CHECK_PRIORITY=shipwith a wait-ship marker, runs a heavy gate file under one slot take, and writes a SLOT line instead of a RED attempt on a give-up. Where both apply, the #334 queue wins.Evidence: a real run of 6 old-script gates, 6 new-script gates and 1 ship gate on one lock folder never ran two commands at once.
npm run checkpassed with 7609 tests and 0 failures. (PR #334, PR #349)pause_card refuses while the card holds the check slot (LOCAL-191, #360).
pause_cardrefuses with "pid <n> holds the check slot" when a process in the card's process tree holds the slot. Before this, a paused gate kept the slot and a ship check gave up after 30 minutes.Evidence: a unit test with a fake process tree and a fake lock file shows the refusal. (PR #360)
Supervisor, loop engine and session recovery
Lost sessions resume at boot, and the orchestrator gets resume_session (LOCAL-155, #278). A boot sweep runs after
reconcileSessionsmarks sessions lost. It resumes each card inin_progressorneeds_input, one card at a time incolumnSinceorder, with a fresh memory reading before each card. It stops at the memory floor or the board concurrency cap. It skips cards in Agent done and later columns, orchestrator cards, and cards that were stopped on purpose. The new MCP toolresume_sessionresumes a card with a lost session the way the Resume button does. The rule book tells the orchestrator to use it and then send a continue line.Evidence: a sandbox e2e started two loops, killed the sandbox tmux server, restarted the service and found both sessions live with the continue text within 2 minutes. (PR #278)
The handoff confirms its /clear, and a relaunch types its own resume prompt (LOCAL-202, #326). The supervisor now sends Enter on a ready pane or on the command menu with
/clearselected. A new transcript file with the/clearentry confirms the clear. With no confirmation, it types/clearonce more. On a board with the supervisor on,resume_sessionrelaunches through the supervisor resume action, which types the card's resume prompt and confirms it in the transcript. Before this, every handoff needed a person to press Enter.Evidence: supervisor tests with the fake TUI drawing the menu show the Enter and the confirmed clear. (PR #326)
REPL input works after a pause and resume (LOCAL-139, #272, and LOCAL-180, #351). The pty-shim sets raw mode again on SIGCONT. A pause now stops only the processes below the direct child of the pane shell, so the pane shell and the pty-shim are never stopped. Unpause types
fgonly when the pane shell owns the terminal. Every resume path runs a resume probe: one check line, up to 60 seconds to land. When it does not land and the tty is cooked, the supervisor relaunches Claude on the same conversation. A finished card in Agent done with a DONE marker is no longer moved to Needs input by an unchanged pane.Evidence: a real tmux test shows that a submitted line and keys typed while paused reach Claude. Sandbox scenario 21 shows a line echoed after
pause_cardandresume_card. (PR #272, PR #351)A frozen session relaunches after 15 minutes (LOCAL-170, #303). The supervisor detects a loop session that compacted while idle and then stopped taking input. After 15 minutes in that state it relaunches Claude with resume in the same tmux window and re-injects the loop prompt once per freeze.
send_inputreports unconfirmed when the pane does not echo the line. The card detail shows the frozen state with its start time.Evidence: the final full check ran 4586 unit tests with 0 failures. The frozen relaunch sandbox scenario passed five runs. (PR #303)
The sleep continue line is confirmed, and wait_for_event ends at a wake (LOCAL-189, #314). Before it types a continue line, the supervisor reads the prompt box and the transcript. When the box holds text that the transcript does not show, it types nothing, records one skipped row with the reason
previous line unsent, and moves the card to Needs input. A continue line spends its retry only when the transcript confirms it.wait_for_eventnow ends on amachine_wakeevent and uses the wall clock, so a wait that started before a sleep ends within one poll of the wake.Evidence: two acceptance tests pass, and the full check ran 4638 unit and 2194 timing tests with 0 failures. (PR #314)
Idle compaction and prompt suggestions are off in loop sessions (LOCAL-184, #307, and LOCAL-198, #323). Loop sessions start with
idleCompaction: falseandpromptSuggestionEnabled: false. The orchestrator session keeps its settings through its own file. Each session start now also merges both keys into thesettings.jsonof the config dir it launches on, so an added account dir has them too. Other keys stay. The unsent/shipline seen in a prompt box was the Claude Code prompt suggestion, not text that Dispatch typed.Evidence: the settings tests show the loop file with both keys and the orchestrator file with neither. A new account dir gets both keys at its first session start. The live probe of
promptSuggestionEnabledis a WARN: a detached pane gets no suggestion even without the setting. (PR #307, PR #323)The loop engine closes on the DONE marker (LOCAL-151, #274, LOCAL-172, #299, LOCAL-174, #357, and LOCAL-187, #359). #274 made the supervisor run
close_loopon a completion line, sostart_shipno longer needed a restart. #299 addedengine.closedReasontoget_card_progressand closed on the completion promise. #357 and #359 then make the DONE marker the close signal. The hook route closes the engine with the reasondone_markerwhen the supervisor is on and the loop is complete. The supervisor closes the loop file onroadmap_completeonly when it saw a DONE line. A promise line alone no longer letsstart_shippass. A promise counts only as a whole line with the exact card slug. A.donefile counts only when its slug and session id match. An engine file removed with no close keeps the engine open with the warning "engine file removed without a close". The closed reasons arepromise,close_loop,manualanddone_marker.Evidence: a sandbox probe kept the engine open 75 seconds on the promise alone, with
start_ship409engine-not-closed, and closed it 1.8 seconds after the DONE line. Engine-close scenarios pass. (PR #274, PR #299, PR #357, PR #359) LOCAL-206 (#363) adds the matching test cases and the scriptnpm run test:e2e:engine-close. (PR #363)Loop progress finds the PRD and the unit state in more places (LOCAL-200, #325, LOCAL-205, #329, and LOCAL-213, #336). When the engine file names no PRD, the reader searches
.planning/prds/at the session root and one level below, engine slug first, then card slug, and takes the newest match. When the roadmap slug folder has no state, the reader falls back to the<identifier>-unit-<N>folder and now watches it. A gate pass written there shows on the card in about 300 ms. Before this,start_shiprefused finished loops withloop-not-finished.Evidence: route and reader tests cover each lookup. The reader test file passes 43 of 43. (PR #325, PR #329, PR #336)
A finished card stays in Agent done when its resume answers busy (LOCAL-193, #361). When a finished group session exits and the automatic resume answers that a claude run is busy, the card stays in Agent done with its DONE marker.
Evidence: a unit test with a fake resume result shows the card stays in Agent done. (PR #361)
The context meter parses with a banner on the status row (LOCAL-157, #283). Claude Code appends banners to the context row, such as the weekly limit notice and the update notice. The row regex required the row to end after the token count, so
contextPercentfroze and the handoff never fired. The parser now allows trailing text.Evidence: unit tests cover the plain row, both banner rows and the warming up row. (PR #283)
A narrow client cannot shrink the tmux window (LOCAL-162, #290). New and adopted sessions get
window-size manualafternew-session -x 200 -y 50. A smaller ttyd client renders a clipped view instead of resizing the window. A window narrower than 120 columns is widened once.Evidence: a real-tmux e2e attaches a 40x20 client, detaches it and expects 200x50. Without the fix it fails. (PR #290)
A missing workspace folder stops every relaunch path (LOCAL-163, #293, LOCAL-166, #300, and LOCAL-178, #310). Resume, Reconnect,
resume_session, the boot resume, the supervisor relaunch, the Run Claude button and the orchestrator in-place relaunch all check that the workspace folder exists. When it is missing, Dispatch launches nothing and types nothing. The tmux session stays open, and the card moves to Needs input with "Resume failed: workspace-missing: <path>". Run Claude answers 409workspace-missing. Before this, claude resumed the newest conversation in the home folder and wrote into a transcript of another session.Evidence: sandbox runs renamed a worktree folder and asserted that no claude process started. A real tmux run showed 409 from Run Claude with tmux still live. (PR #293, PR #300, PR #310)
A new worktree gets its node_modules (LOCAL-209, #332). The start saga runs
npm ci, withNODE_ENVunset, in each worktree that has apackage-lock.jsonand nonode_modules, before claude launches. A failure is a start warning and a log line, never a failed start. Before this, every loop lost its first gate to a missing dependency.Evidence: a sandbox scenario proves the install and the warning path. (PR #332)
NEEDS_INPUT is for a blocking question only (LOCAL-182, #308, and LOCAL-217, #337). The status protocol text in each loop kickoff says that NEEDS_INPUT is only for a blocking question a person must answer, never for a progress note, a slot wait or a running check. WORKING is the line for those.
Evidence: the kickoff tests assert the line word for word. (PR #308, PR #337)
The PRD playbook states the analogues rule for every phase (LOCAL-215, #341). The seeded PRD + Ralph Loop playbook now says that every phase needs its own
## Phase <N>section inanalogues.mdbefore its gate runs. A gate stops on a missing section first, with a message that names the phase and the file.Evidence: the playbook and kickoff tests pass 35 of 35. (PR #341)
The web app
The orchestrator has a sidebar row (LOCAL-140, #369). The sidebar shows an Orchestrator row under the selected board on every page, with a state glyph and the needs-you count. On a board with no orchestrator the row reads Add orchestrator. Both rows open the command centre. The collapsed rail gets an Orchestrator icon. The command palette lists Open orchestrator, and Start orchestrator when the main orchestrator is absent or stopped and the supervisor is on. The board page header loses its orchestrator button.
Evidence: unit tests cover the entry, the commands and the start call. Sidebar visual specs pass 64 of 64. (PR #369)
A Dashboards group replaces the Board and Dashboard rows (LOCAL-131, #340). A Dashboards group under the Boards group has one row per active board with a main orchestrator, with the same attention badge as the Boards row. The collapsed sidebar has a Dashboards icon for the current board. The palette keeps Go to Board and Go to Dashboard.
Evidence: unit tests and a real browser run at 1440 px and 390 px. (PR #340)
Board rows show the live loop count (LOCAL-141, #370). Each board row reads "N live" when loops run on that board. The selected board refreshes when a loop starts or stops, other boards every 15 seconds. In the collapsed rail an icon with a count shows a small dot and speaks its counts, for example "Boards, LOCAL, 3 live, 2 need you".
Evidence: a sandbox run showed the row change to 1 live within one stream frame with no reload. (PR #370)
The Sessions, Workspace and Activity pages are gone (LOCAL-132, #343, LOCAL-134, #344, and LOCAL-130, #345). The sidebar now shows the Home, Sources and System groups. An old
/sessionslink opens the boards list, and/boards/<key>/sessionsopens that board. An old Workspace or Orca link, hash or stored view opens the board. An old Activity link opens the board. The session switcher and Resume in the card detail panel work as before, and the card timeline still lists a card's events live.GET /api/sessionsis removed. It had no caller in the repository, the CLI or the scripts. The activity log stays on the server, so there is no migration. The System group Workspaces page does not change.Evidence: real browser runs on a sandbox at 1440 px and 390 px, with server route tests over HTTP. (PR #343, PR #344, PR #345)
The split board view (LOCAL-127, #365). At 1024 px and wider, the board page can show two boards side by side. A Split button and a palette entry open it. Each pane has a board select, a close control and a direction toggle. The active pane drives the shortcuts. A Resize boards divider stores the layout. The
splitanddirsearch params hold the state.Evidence: a real browser run at 1440 px opened, resized, switched and closed the panes. At 1023 px the Split button is absent. (PR #365)
Card faces in In Review, Parked and Done hide session recovery (LOCAL-124, #342). The Resume and Restart buttons, the Lost badge and the Session lost notice are hidden on the card face in those three columns. The card detail panel keeps all of them.
Evidence: a sandbox server with a lost-session card in each column. (PR #342)
Design tokens: 4 px spacing, a token gate, status colours and motion (LOCAL-143, #352, and LOCAL-144, #358). The Tailwind spacing base is 4 px. A new token gate script fails on colour literals outside
tokens.css, arbitrary value brackets, raw font sizes and raw timing values, and runs incheck:unlocked. One status token set covers running, idle, waiting for input, stopped and errored. A running tile now pulses, and the pulse honors reduced motion.Evidence: the gate fails on a fixture for each class, and the contrast script passes in both themes. (PR #352, PR #358)
The Pull Requests page redesign (LOCAL-135, #285). The list shows one row per pull request with the author avatar, the title, the repo and number, the age, and checks, review and mergeable chips. Rows group by repository, by state, or not at all.
jandkmove through the rows and Enter opens one. Review with Claude is the one primary button. The detail has Overview, Files and Checks tabs. Narrow screens open the detail in a sheet. Three bugs found in review were fixed, including an avatar URL that leaked into agent prompts.Evidence: 8 new visual baselines for the list and the detail in both themes at 1440 and 390. (PR #285)
The mobile bottom bar (LOCAL-145, #292, and LOCAL-165, #302). Below 768 px the shell renders a 64 px bottom bar with Today, Inbox, New ticket, Board and Orchestrator. The Orchestrator slot shows the needs-you count and opens the terminal-only centre page. The bar hides on scroll down and returns on scroll up, and honors reduced motion. Editable fields use at least 16 px text on touch devices. #302 adds three Playwright tests for the bar's clearance, scroll and touch text.
Evidence: the Mac visual suite passed with 26 refreshed 390 px baselines. Each new test failed when its rule was broken on purpose. (PR #292, PR #302)
A compact ticket detail for short laptop viewports (LOCAL-161, #294). The account row is merged into the header, the step bar is one compact row, and the gap above the terminal is 8 px (it was 66 px). At 1366x768 the terminal shows 23 or more lines without page scroll. The overlay panel stops at the sidebar edge. The minimum supported viewport is 1280 by 640 usable.
Evidence: 13 live interaction cases were graded by an independent reviewer, with 21 review screenshots from 1280x640 to 1920x952. (PR #294)
Tests, tooling and docs
Sandbox scenarios are named by ticket id (LOCAL-185, #315).
scripts/scenario-names.mjsrenames eachscenario-<N>-<slug>.e2e.tstoscenario-<TICKET>-<slug>.e2e.tsand writes the list indocs/ARCHITECTURE.md.npm run checkfails on a numbered scenario file or a stale list. The scenario numbers in the evidence lines of this page are the names at merge time. (PR #315) LOCAL-195 (#319) names the link reference comment as the only generated block marker and pins it with a prose rule test. (PR #319)oxfmt and oxlint replace Prettier and most of ESLint (LOCAL-218, #366).
npm run lint,npm run formatandnpm run checkrun oxlint and oxfmt. ESLint keeps five rule families as a pass onsrc. A warm format went from 23.10 s to 1.09 s.lint:typedkeeps its name. (PR #366)Lint and heap fixes (LOCAL-196, #320, and LOCAL-204, #327).
lint:typedsets a 4 GB Node heap inside the npm script.scripts/*.mjsis now linted, and 115 findings in 30 files are fixed. (PR #320, PR #327)Test isolation (LOCAL-183, #311, LOCAL-199, #324, and LOCAL-197, #331). Two flaky tests wait for a settled state instead of a fixed sleep. The isolated test env clears the loop shell account and hook variables. A test process with no
DISPATCH_DIRgets a throwaway data folder and tmux server, so a unit test can no longer open the live board. (PR #311, PR #324, PR #331)ARCHITECTURE corrections (LOCAL-208, #330).
docs/ARCHITECTURE.mdnow says boot writes seven settings files, lists theworkspace-missingoutcome and saysresume_cardwaits for memory. (PR #330)The limit_move test passes on every calendar date (LOCAL-160, #288). The test built its reset string from a fixed date, so every ship check on main went red after 2026-10-20. It now builds the date from tomorrow. (PR #288)
The darwin command-centre baselines (LOCAL-164, #295). The eight darwin files are refreshed after the cost rollup. No product code changed. (PR #295)
The README refresh and the 4K demo (LOCAL-137, #284). The README is rewritten for the current app, with a 3840 by 2160 demo GIF at the top and the MP4 linked under it. Every link and command was checked on a clean clone. (PR #284)
The Paperclip analysis (LOCAL-138, #270).
docs/research/paperclip-analysis.mdis a research report on the Paperclip repository with a ranked feature list. The blocked-by relation, the budget warning, the toast rules and the mobile bottom bar came from that list. Nothing from Paperclip was run or copied. (PR #270)The version bump to 4.6.0 is
chore(release): v4.6.0(#309).
Upgrade notes
- Install with
npm install -g @theyashgupta/dispatch@latest, then restart the service. Most changes in this release apply only after that restart. - The store schema stays at 3, so there is no migration.
blockedBy, the budget warning percent, the orchestrator scope, the account chain fields andmanagedDefaultIdare new optional fields. - The concurrency cap now counts only loops with an open engine. A finished session exits after its DONE marker, on a release timer, or when the memory floor blocks a start. It keeps its pane text and DONE marker, and Run Claude relaunches it when a fix instruction arrives (LOCAL-201, LOCAL-211).
- A start or a resume below the memory floor now waits up to 30 minutes. A second Start during the wait answers 409, and the Resume route answers 202 instead of 409 (LOCAL-186, LOCAL-192).
- Orchestrator sessions start with the bypass permissions flag from their next start (LOCAL-126). At boot, an orchestrator with a dead token is relaunched (LOCAL-219).
- After the restart, the boot resume sweep resumes the sessions that the restart lost, one at a time inside the memory floor and the cap (LOCAL-155). A lost session whose workspace folder is gone moves to Needs input with
workspace-missing. - The first start after the upgrade can raise account decisions (LOCAL-159). The Accounts page offers to move the Default account to a Dispatch login.
- Pages removed: Sessions, Workspace and Activity. Old links open the board or the boards list. The Conversation pane is removed from the command centre. The board header orchestrator button is replaced by the sidebar row and the palette. The Board and Dashboard sidebar rows are replaced by the Dashboards group.
- Endpoints removed:
GET /api/sessionsand the Conversation endpoint. New board URL params:split,dirandview. - Loop sessions get
idleCompaction: falseandpromptSuggestionEnabled: falseat each start, in the config dir they launch on.idleCompactionneeds Claude Code CLI 2.1.290 or later. - A new worktree with a lock file and no
node_modulesgetsnpm ciat session start, which adds start time for that start (LOCAL-209). - An unedited installed
prd-ralph-loop.mdplaybook is rewritten with the new text. A playbook you edited stays as it is (LOCAL-215). - The budget warning percent reads 80 on an existing install (LOCAL-148). With a Pushover variable present but empty, every board shows one Notifications attention item (LOCAL-168). The Granola and Slack rounds need the claude.ai connectors connected on the account the service uses (LOCAL-154).
- New and adopted tmux sessions get
window-size manual(LOCAL-162). - For contributors: oxfmt and oxlint replace Prettier and most of ESLint (LOCAL-218). The token gate runs in
check:unlocked(LOCAL-143). Scenario files must carry a ticket id (LOCAL-185). The ship check for the Dispatch repo adds about 1 minute oflint:typed(LOCAL-220).npm run test:e2e:accountsandnpm run test:e2e:engine-closeare not part ofnpm run check. A running loop gets the new kickoff text only at its next launch. A worktree uses the new slot script after it merges main.
Known limits
- With two or more orchestrators, at widths from 768 to about 1180 px, the centre header clips the Bands and Tree toggle and the orchestrator switcher. Switching orchestrator while in Tree shows the previous Bands for one frame. A running group reads "Working" in Tree and "Running" in Bands.
- A feature orchestrator can read the sessions and events of other cards but cannot act on them. An open decision item keeps its old owner after a card moves.
- The sidebar orchestrator glyph reads the board record, so an orchestrator that stops by itself shows late. A starting or failed loop can read "1 live" until its first session frame.
- You cannot approve a permission prompt of a loop from the attention queue. Open the terminal.
- The queue refuses a reply in four cases. The session shows a permission prompt, the session shows the usage limit dialog, the session waits for the usage reset, or Claude exited.
- Below the memory floor, the boot resume, the blocked-start sweep, the frozen relaunch and the supervisor shell prompt relaunch still refuse at once.
resume_sessionrefuses withmemory-low. Astart_cardat the concurrency cap is refused with 403. - The memory release of finished sessions had no live run against a real Claude session.
- The boot resume sweep stops at the memory floor or the cap. The cards after that point stay lost until you press Restart or the orchestrator calls
resume_session. - The frozen session relaunch waits 15 minutes and re-injects the loop prompt once per freeze.
- The ship check skip compares the tree and a clean worktree, not the check command. The PR's own CI still runs before the merge.
- Until every loop runs the new slot script, a gate on the old script ignores the queue and can take a free slot first. The stopped-holder gate counts its 5 minutes from the first poll that saw the stop.
- A gate pass that first creates the identifier unit folder shows up to 60 seconds late. Two PRDs with the same slug resolve to the newest file.
- A limited loop never moves to usage credits.
- A blocker must be on the same board.
- The orchestrator in-place relaunch guard for a missing workspace has unit-test proof only.
- The Granola and Slack round fix was not verified live. The Pushover sandbox scenario is not part of
npm run check. - The sandbox scenarios and the accounts and engine-close scripts run by hand, not in CI. Under four loops on the 8 GB Mac, some unit tests fail as load flakes and pass alone.
- Linux visual baselines for several new screens come from the first CI run. The PR bodies of #362 and #365 name a follow-up PR for more test files and darwin baselines.
npm run lint:fixis unsafe: it rewrites 246 stub JSDoc blocks. The older dev tooling section ofdocs/ARCHITECTURE.mdstill names Prettier.
See it

Full changelog: https://github.com/theyashgupta/dispatch/compare/v4.5.4...v4.6.0
Requires Node ≥ 22.22, tmux, ttyd, git, and the Claude Code CLI. Setup is in the README.