Repository navigation
feat(claude-chat): native Claude chats are registry rows, follow the pool and move through the proxy - #37573
Closed
nachumi-a2zoperations wants to merge 24 commits into
Closed
feat(claude-chat): native Claude chats are registry rows, follow the pool and move through the proxy#37573nachumi-a2zoperations wants to merge 24 commits into
nachumi-a2zoperations wants to merge 24 commits into
Conversation
nachumi-a2zoperations
force-pushed
the
pr/native-chat-account-coverage
branch
3 times, most recently
from
November 3, 2026 10:50
6b33f7e to
9621971
Compare
2 tasks done
nachumi-a2zoperations
force-pushed
the
pr/native-chat-account-coverage
branch
from
November 6, 2026 12:47
9621971 to
c8874dc
Compare
The registry names the account a pane consumes. Automatic switching stays off until it is turned on, and a headless host keeps usage polled while it is on.
The polling switch takes the settings it actually reads. Tests stamp a fixed expiry and a stepping file mtime so the flaky-clock ratchet stays at its baseline.
The command is already in the account spec and the site reference. The root help is the list a user sees first.
The account commands read --on and --off as bare switches, but registering them as global boolean flags broke `orchestration worker-start --on <server>`, whose --on takes a value. The argument parser already treats a flag followed by another flag or by nothing as a switch, so the account commands keep working without the global entry.
The data-account snapshot helpers move beside the controller.
… the bar, and state the real switch lines.
The proxy stays off unless claudeAuthProxy is true. Each launch gets a loopback slot URL in ANTHROPIC_BASE_URL unless the user set one; the pane registry records the slot and the account it bills. The session mover's proxy move strategy is not part of this change.
A launch and a quota poll each kept a slot the pane never used, so a headless status listed leftovers while account list showed sessions: 0. Forget, status, and the spawn merge now drop those slots, and a reattach into an empty registry records the live account without storing a slot the process did not receive.
… policy RPCs within the line limit. The pane registry learns a launch at spawn commit, so the proxy slot and billed account of every live pane are known. The Claude policy RPC handlers and the data-account snapshots move beside the account controller, and the account CLI group gets its own module, so no file exceeds the lint budget. The two proxy tests that time a real idle timeout and a real stop() say so; the slot prune test runs on a fixed clock.
The 200 ms idle timer and the socket reset can land late when the full suite runs; the test still proves the idle cut happened after the budget.
…a loaded machine. The ticks come every 40 ms; a 2 s idle budget still proves a writing stream is kept while a loaded suite cannot cut it by delaying one tick past 200 ms.
The default is ask, and a headless host treats ask as move. A quiet wait lets background work finish, and the hand-off note still lists jobs when the job script is absent. With the auth proxy on, a move retargets the pane's loopback slot instead of restarting Claude.
The hand-off calls the durable-job listing through Reflect.apply, and the stop handle starts unset through a helper. Both stay typed without a cast.
orcad and the CLI import the language detector, so the desktop entry binds the Electron read. Root help now lists auto-switch and session-mover, the account commands this branch ships.
anti-slop rejects Reflect.apply. The hand-off note checks the script export and calls it.
The session-mover command reads them as bare switches; the parser already treats a flag followed by another flag or by nothing as a switch, so no global boolean entry is needed.
Off unless claudeAccountPool is 'on'. An Orca-made Claude launch then starts on the signed-in account with the most room left, the pane registry records the pool pick, and the rebalancer moves a session whose account runs out ahead of the others. `orca account pool --on|--off`, `orca account moves`, the Settings row, the status-bar Pool badge with per-account session counts, and the tab chip come with it.
…like terminal panes. A chat session's launch records itself in the pane registry under its session key, so the pool can pick its account, the auth proxy gives it a slot that later turns reuse, the mover can move it, the account list counts it, and the tab chip and the phone show the account it bills. Closing the session forgets the record.
nachumi-a2zoperations
force-pushed
the
pr/native-chat-account-coverage
branch
from
November 6, 2026 14:23
c8874dc to
d6ebc61
Compare
Author
This was referenced Nov 17, 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.
ELI5
Native Claude chats now count as sessions: they appear in the account switcher and
account list, they can start on the pool's choice, and they move to another account through the auth proxy without stopping. Chats without a proxy slot are left to #36649's carry-over.What Changed
surface: 'chat',providerSessionId,worktreeId,launchSelectionId,assignedAccountId,proxySlot,source.CLAUDE_CONFIG_DIRskips the pool; a userANTHROPIC_BASE_URLis kept and the record pinned.structured-needs-proxy, no hand-off note. History recordschat: true.sessions: 3 (1 chat); move lines appendchat; the chat tab gets the account chip; the phone'schatStatus.claudeAccountIdcarries the billed id.Why
#36676. Composes with #36649 (which moves a slot-less chat on its next message by carrying the conversation over). Details in the #36676 comment.
Linked Issue
#36676, #36649. Stacked on the pool PR (the chat launch uses the pool's choice).
Visual Proof
account listwith a(1 chat)row; a chat tab's account chip changing after a move while the conversation continues.Testing
Structured launch home, pane-account choice, session key, close, registry, mover sessions/evaluation/history, list format, move line, mobile tab status, tab chip: 42 tests on the files this PR changes, plus the quality gate on the final sha; full
check-changedon the gated sha 28/30 → the one quality finding (duplicate import) fixed on the final sha, unit = Mac-local.