Commit Graph
20612 Commits
Author SHA1 Message Date
OrcaWin 43c6ac5c84 test: remove 147 low-value GitHub and Jira store tests (#37597) 2026-11-02 16:25:45 -08:00
OrcaWin 71147f6036 test: remove 174 low-value workspace and GitHub cache tests (#37596) 2026-11-02 16:11:49 -08:00
Brennan Benson 40b660357c fix: remove orchestration panel CPU amplification (#37560)
* fix: remove orchestration panel update amplification

* test: make source cache checks deterministic

* fix: stop irrelevant federation crew rebuilds

* Use fixed federation heartbeat test timestamp

* Verify hidden crew subscription release in native pane

* Require zero SQL preparation for cached crew reads
2026-11-02 16:06:32 -08:00
OrcaWin e850589591 test: remove 153 low-value editor buffer and layout tests (#37595) 2026-11-02 15:59:46 -08:00
OrcaWin 1d2e7f6f52 test: remove 128 low-value editor and workspace state tests (#37591) 2026-11-02 15:47:59 -08:00
Brennan Benson ca4d48e6c0 ci: reject retired E2E source-route targets (#37584) 2026-11-02 15:46:26 -08:00
Brennan Benson 91f6b3dc05 Fix Grok chat screenshots saved with the conversation (#37555)
* fix(native-chat): resolve Grok screenshots from their owning session

* fix(native-chat): normalize session screenshot paths

* perf(native-chat): scope screenshot lookup to the owning tab

* test(native-chat): use deterministic media fixture clocks

* fix(native-chat): retain selected images during preview refresh
2026-11-02 15:45:27 -08:00
OrcaWin fae90b0cbb test: remove 220 low-value agent status and browser tests (#37586) 2026-11-02 15:34:55 -08:00
OrcaWin c0380f6832 test: remove 215 low-value renderer store tests (#37583) 2026-11-02 15:21:02 -08:00
OrcaWin 566982382d test: remove 407 low-value session and layout tests (#37581)
* test: remove 407 low-value session and layout tests

* test: remove 407 low-value session and layout tests
2026-11-02 15:04:16 -08:00
OrcaWin c3a90529d4 test: remove 399 low-value renderer runtime tests (#37566)
* test: remove 399 low-value runtime tests

* test: make retained close replay assertion independent of wall clock
2026-11-02 14:43:35 -08:00
Jinjing e6631d2b1e test: align floating tab width coverage with 300px cap (#37579) 2026-11-02 15:28:59 -07:00
Jinjing 415e8ad194 Show check fix action alongside conflict resolution (#37559) 2026-11-02 15:23:37 -07:00
Brennan Benson 0e3e6edb7b Make the agent-message status mark a circle (#37541)
* Make the agent-message status mark a circle

The corner badge inherited the chat line box, so it drew as a pill, and the working ring's thick stroke closed into a crescent. The badge is now a circle around the status icon, and the medium working mark keeps a full ring.

* Keep the shared working spinner in the status circle

The medium working mark had its own thinner ring. Agent status uses one spinner everywhere, and the message card only changes the circle behind it.
2026-11-02 14:23:19 -08:00
Jinjing 0e80062119 fix: hide metadata-only PR review summaries (#37562)
* fix: omit metadata-only PR review summaries without hiding code

* fix: inspect nested review Markdown for visible content
2026-11-02 15:22:17 -07:00
Neil c563f68df9 refactor: group workspace cleanup and space diagnostics (#37558)
* refactor: organize workspace diagnostics and cleanup owners

* test: target concrete cleanup and cancellation owners
2026-11-02 14:16:06 -08:00
Jinwoo Hong 5e02b47d11 Reopen a closed terminal worker from its orchestration card (#37210)
* Open a closed terminal worker's conversation as a chat

* Open closed workers through a separate partyOpen call

Keep partyLocation a pure lookup; clients call partyOpen for a sender and fall
back to partyLocation on older hosts. Adopt from the closed pane's recorded
transcript, test terminal liveness by its PTY, keep follow-ups free of chat-host
installation, and report a possibly-created chat as retryable.

* Bring back a closed chat for a follow-up and match recorded sources by identity only

A follow-up to a worker whose conversation a chat holds reveals that chat in
the background when its tab was closed, so the follow-up is delivered there
instead of being refused. Recorded-source adoption passes only the pane identity
and conversation fields source matching reads.

* Reopen a closed terminal worker as a terminal, not a chat

partyOpen now resumes the closed worker's saved conversation in a new terminal
through the follow-up resume path, reusing a terminal that already holds it, and
answers with the terminal location. Removes the chat conversion and everything
only it needed; follow-up placement is as on main.

* Retry an uncertain worker reopen as the same request

* Resume again when the agent left the reopened worker terminal

* Type the hook row in the closed-worker follow-up test

* Find a closed worker's reopened terminal through the resume claim and hook rows

* Retry an uncertain closed-worker resume as the same request; reuse only a terminal whose hook row names the conversation

* Forget an uncertain closed-worker resume once its conversation reports

* Drop the closed-worker open map; overlapping opens share one resume request
2026-11-02 17:02:05 -05:00
Jinwoo Hong f74b1fd72b Tell orchestration workers when to message the coordinator (#37550)
* Tell workers when to message the coordinator, not just where

* Count the brief's one remaining surface mention in the parity test

* Limit the brief's 'only' to messaging the coordinator
2026-11-02 17:01:52 -05:00
OrcaWin 84520199b1 test: remove 235 low-value renderer tests (#37553) 2026-11-02 13:56:09 -08:00
Jinjing b96d19d933 Keep overlays open when focusing the chat composer (#37403)
* Preserve open overlays when focusing the chat composer

* Fix chat composer focus after launch menus close

* Fix chat composer focus handoff after overlays close

* Fix composer focus after custom overlays close

* Prevent chat composer from stealing overlay focus

Scope recovery overlays to their own pane and let menus dismiss before
returning focus to the composer. This keeps the quick launcher open
when delayed chat actions complete.

* Fix composer focus across nested overlays

Track focus ownership through portaled overlays so the launch prompt can
regain focus while its model list is open. Close the context menu before
inserting a quote so the caret lands after it.

* Fix overlay focus CI regressions

* Complete overlay focus ownership for inline and retained surfaces

* Declare public overlay focus hook return type
2026-11-02 14:50:41 -07:00
Neil b14e705093 fix(relay): exit promptly on SIGTERM instead of waiting out docker's stop timeout (#37443)
* fix(relay): exit promptly on SIGTERM instead of waiting out docker's stop timeout

On SIGTERM the relay drained sessions and called server.close(), which waits
for every open socket. A TCP connection that never sends a byte (or sends
partial headers) is not idle, and server.close() also stops the header-timeout
checks, so nothing ever closed it. The process stayed alive until docker's
--stop-timeout 300 SIGKILLed it: about five minutes of every cell VM
replacement during a same-cap roll.

Shutdown now tracks accepted sockets (including upgraded WebSockets), keeps
the existing drain order, destroys sockets still open after a 5 s grace, waits
(bounded) for queued pool clients, closes the database and exits 0. An unref'd
10 s backstop exits even if the database close hangs. SIGTERM/SIGINT use
process.on behind a shutting-down guard so a repeated signal no longer kills
the process with 143.

The new blackbox test fails on the previous index.ts (silent TCP and
partial-headers peers keep it alive past the test bound) and passes now.

* style(relay): satisfy changed-lines lint gate in SIGTERM exit change
2026-11-02 13:47:54 -08:00
Kelvin Amoaba b8080dfa00 fix(mobile): show a chat's last options at once when returning to it (#37554) 2026-11-02 21:46:21 +00:00
NeilandClaude c9f2bf9aa1 feat(updater): add configurable update delay (#37447)
* feat(updater): let users delay updates until a release has been public for N days

Adds an Update Delay setting (None/1/3/7/14/30 days) for supply-chain safety (#5259).
Release age comes from GitHub's Atom feed timestamps and fails closed when unknown.
Settings shows the held release with a countdown, a one-off Skip Delay Once, and
the updater wakes when a held release clears instead of waiting a day.

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(updater): satisfy cast, progress-restyle and wall-clock test gates

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(updater): simplify delay UI and enforce release age across checks

* fix(updater): retain ready updates and recheck changed delay settings

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-11-02 13:45:25 -08:00
OrcaWin 8b5365f5df test: remove 389 low-value renderer tests (#37545) 2026-11-02 13:37:37 -08:00
Kelvin Amoaba 65cad9571a fix(agent-hooks): keep Claude's start folder and effort between hooks (#37556)
Launch seeds and terminal status rows carry the session without a hook source, so the next hook recorded the Bash tool's folder and dropped the effort.

Refs #31545
2026-11-02 21:37:34 +00:00
Brennan Benson 40f9d2a246 Keep desktop fork pull requests on their opened repository (#36172)
* Keep opened GitHub work items bound to their exact repository

* Bind GitHub work item ownership through consumers and dispatch

* Keep empty mention lists from consuming selection keys

* Preserve GitHub action and consumer ownership across resource changes

* Exercise repository account updates through their production store action

* Exercise account publication and cache settlement through GitHub consumers

* Simplify fork PR contract verification

* Make contract verification imports and clocks deterministic

* Correct mobile task test fixtures and model types

* Correct task recording fixtures and CI types

* Correct task fixture types and static checks

* Consolidate replay test RPC imports

* Separate GitHub metadata imports from Linear hooks

* Scope mobile PR sidebar reads to the selected resource

* Separate desktop GitHub changes from phone updates

* Fix relay authority probe census across topology cases

* Repair repository owner proof fixtures and compiler allocation

* Preserve repository row observation in host lookup

* Seed metadata fixture before server-side store acquisition

* Preserve nullable fixture settings and discover mixed test types

* Preserve GitHub detail argument types and optional capabilities

* Let keyed details queries own pending read replacement

* Repair GitHub RPC and relay test fixture boundaries

* Verify expected GitHub account at repository execution capture

* Preserve captured GitHub account expectations through client dispatch

* Retain observed runtime status after switching environments

* Fix account contract fixture types and RPC setup timing

* Restore the negative-capability switch probe assertion

* Align account fixtures with runtime identity and configured origin

* Consolidate details test imports

* Drop duplicate fork pull request identity tests
2026-11-02 13:22:48 -08:00
Kelvin Amoaba 81bcc6bc9a fix(native-chat): reset history when a saved record key is damaged (#37549) 2026-11-02 21:17:51 +00:00
Kelvin Amoaba 8c7fb98d87 fix(orchestration): let a coordinator reach its worker when that terminal is still bound to an older Run (#37548)
* fix(orchestration): reach a terminal that still coordinates another Run through its worker Dispatch

A terminal can stay bound to an older Run while it works a Dispatch in another.
send --to <terminal> --run <its Dispatch's Run> was refused with
recipient_run_mismatch, and run-current never mentioned the Dispatch.

* fix(orchestration): say which terminal can safely take an older Run
2026-11-02 21:17:34 +00:00
Brennan Benson 210c624043 Run the picked Claude model for AI text generation (#37367)
* Run the picked Claude model for text generation

Claude text generation used plan mode to stay read-only, and in plan mode
the Claude CLI runs Sonnet for the haiku alias. Turn tools off and set
the dontAsk permission mode instead, so every alias runs the picked model
while text generation still cannot edit files or run tools. Tracked in
STA-13412.

* Keep file reads and old Claude CLIs working for text generation

Text generation now gets Read, Grep and Glob under dontAsk instead of no
tools, so saved prompts that read repo files keep working. Claude CLIs
older than 2.0.43 refuse dontAsk; Orca retries once with the older
syntax (default mode plus a fixed deny list of the other built-ins those
versions have), never plan mode. The managed-MCP retry denies MCP tools,
matching the strict attempt, which loads none.

* Let Claude text generation read files outside the checkout

dontAsk refuses Read outside the working directory unless the tools are
also granted, so current CLIs now get --allowedTools Read,Grep,Glob
beside --tools. The older-CLI retry grants the same tools as root-path
rules (Read(//**) and so on); a bare grant there would override a user's
path-specific ask rule.

* Pass spawnAgent in the old-CLI text generation test and type its fakes
2026-11-02 13:14:17 -08:00
Max Hsu 8084c3ab7e fix(hooks): keep the approved script hash when Always trust is ticked (#37520)
A repo id on two hosts makes canUseRepoWideTrust refuse the repo-wide entry, and ticking Always trust saved nothing else, so the prompt came back on every create. Save the shown script's hash too, on desktop and mobile. A changed script still prompts on such repos.

Fixes #37484
2026-11-02 21:05:42 +00:00
OrcaWin ebf277b4aa test: remove 659 low-value renderer tests (#37544) 2026-11-02 12:58:11 -08:00
Kelvin Amoaba 0cd648d697 fix(browser): publish a server page's in-place address changes (#37547) 2026-11-02 20:57:11 +00:00
Max Hsu 4eaa12fef2 fix(cli): let worktree set --comment "" clear the comment (#37515)
`worktree set` read --comment through getOptionalStringFlag, which turns
an empty value into undefined, so `--comment ""` and `--comment=` sent no
comment field and the stored comment survived while the command reported
ok:true. Keep an explicit empty value for this flag only; the shared
helper and the RPC schema are unchanged.

Fixes #37464
2026-11-02 20:49:15 +00:00
김보경andClaude Opus 5.5 52d65e984f fix(editor): send Cmd/Ctrl +/-/0 to an open image viewer outside editor tabs (#37521)
Image and diagram viewer dialogs are portaled outside every pane, so the
zoom bridge never offered them the command unless an editor tab was
active. Over chat, terminal and other tabs the shortcut changed and saved
the app's UI Zoom instead. Where the command would otherwise change UI
Zoom, offer it first to a viewer in the frontmost open dialog.

Fixes #37489

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-02 20:49:11 +00:00
Kelvin Amoaba 1629dc4928 fix(native-chat): wrap the empty launch prompt's translated placeholder (#37546)
The placeholder float had margin-right:-100% and no width, so it could
reach 200% of the paragraph before wrapping and overflowed in French and
German. width:100% wraps it at the paragraph, and its margin box stays
zero-wide so the caret line does not move.
2026-11-02 20:46:11 +00:00
OrcaWin f77a2a5e25 test: remove 170 low-value renderer tests (#37539) 2026-11-02 12:41:03 -08:00
Jinjing aab098fb30 fix: use design-system variants for workspace source results (#37542) 2026-11-02 13:30:29 -07:00
Jinwoo Hong d7ea02de68 Stop listing a worker as retained after its follow-up took its terminal (#36978)
* Stop listing a worker as retained after its follow-up took its terminal

* Read handed-on terminal history only for the listed workers

* Detect a handed-on terminal from follow-up lineage instead of owner history

* Count a terminal as handed on only when the follow-up runs in the same process
2026-11-02 15:25:15 -05:00
Brennan Benson 34fa209fe1 fix(orchestration): native chats get each orchestration message whole instead of a check pointer (#28567)
* fix(orchestration): steer mail notices into a busy native chat's running turn

A native-chat coordinator's mail notice always queued as a card until the whole turn ended, so a
coordinator busy in a long command never saw its workers' reports. Agents that take a message
mid-turn (Claude, Codex, Pi) now get the notice at once; agents that would cancel their turn for
it (ACP) still queue it.

* fix(orchestration): drain mail that arrives while a notice is pending

* fix(orchestration): native chats get each orchestration message whole instead of a check pointer

Each mail message is sent to a native-chat agent as its own chat message,
with the sender, type, subject, body, payload and exact reply command, and
is marked read once the chat accepts it. Heartbeats are marked read, never
sent. Mail an unacknowledged check batch holds stays with that batch.

* fix(orchestration): keep the at-most-once gate's mail-lane assertions, exhaustive sender switch

* Preserve native mail compatibility and drain delivery backlogs

* Drain native mail with a finite ordered pass and scoped operation ownership

* Bound mail formatting and honor accepted queue handoffs

* Run the native mail tests that open SQLite in the Node runtime project

* Preserve live mailbox ownership and recover full reports by id

* Use a typed runtime client in inbox compatibility test

* Preserve historical mail evidence and scope the test clock

* Map historical structured-send evidence to the current test command

* fix(orchestration): settle mail handoffs per message and recover interrupted consumers

* Hold native chat mail until the chat is idle, as terminal mail waits

A mail send admitted into a running turn cancels that turn for agents that
cannot take a message mid-turn (ACP: Grok, OpenCode, OMP, Antigravity): the
second of two reports cancelled the first before the agent saw it, and the
first report cut off the turn carrying the person's answer. Mail now waits
while the chat is working or a prompt waits on the person, for every agent,
and goes out at the idle edge, one message per turn, oldest first.

* test: cover idle orchestration report turns

* fix: preserve independent mail authorization through grouped delivery

* fix: preserve routed mail identity and private inbox state

* test: bound mailbox query work on repeated delivery

* fix(orchestration): consolidate terminal mail imports

* Validate mailbox query rows and type delivery fixtures

* Keep host forwarders typed and inline single-use mail evidence reader

* Declare the mail handoff store method boundary

* Preserve mailbox contracts across typed boundaries

* Retain existing main cleanup row boundaries

* Fix mailbox handoff fixtures and helper mail transfer

* Name the mailbox fixture constructor type

* test: complete mailbox dialog pane identity

* Keep structured mail ordering and ownership current at claim

* Bound mailbox preparation and immutable cohort selection

* Consolidate structured mail contract fixtures

* Consolidate duplicate mailbox imports

* Fix mail handoff type contracts and deterministic test fixtures

* Repair journal forwarding and align mail contract fixtures

* Fix mailbox corpus message type inference

* Correct personal provenance in ACP backlog fixtures

* Correct ACP mail contract measurement and epoch wake fixtures

* Retain full ACP contract diagnostic arguments

* Restore reliability gate coverage and consolidate mail fixtures

* Preserve unknown alias release coverage

* Route native reports through the durable chat queue

* Preserve exact legacy mail holds in queue lineage proof

* Use ordinary queued messages for worker reports

* Use semantic queue and check completion for report delivery

* Record bounded queue recovery work and request cleanup proofs

* Preserve report creation evidence and bounded source wakes

* Preserve report source work and check ownership

* Use ordinary report acceptance and incremental original history

* Retire completed mail opportunities with their current owner

* Retire routed source debt and complete joined mail contracts

* Exercise Run typed peek through the command transport

* Require the queued report submission in creator coverage

* Restore database callback API and align queue contract fixtures

* Fix empty legacy tab selection in restart fixtures

* Keep relation heading assertions scoped to each report

* Native chats receive each orchestration message whole, through the chat's own queue

Each orchestration message to a chat session becomes one ordinary chat message carrying the whole
message, sent with the chat's queue like a person's message: it waits behind running work or a
question and the agent is handed one per turn. A per-message record keeps the send's operation id,
so a restart finds the card instead of sending twice; the message is marked read once the agent is
handed it, and a check that takes it first deletes the waiting card. A message too large for one
chat message keeps today's pointer to check. Terminals are unchanged.

* Test that chats get each message whole, queued like a person's message

* Repeat a report the agent may not have taken only after a later turn or /clear

A send the agent rejected or left unanswered stays unread for check and is handed over again only once
a later turn ran or a /clear replaced its context, so edges alone never restart an agent that fails on
every start. A send whose record a rewind dropped is sent again, and a send that throws is retried on
the session's next journal edge. Tests follow chats getting each message whole.

* Hand a chat orchestration mail only while it is still owed

A queued mail card now runs only while its message is unread in its mailbox and that mailbox still belongs to
the chat: the queue asks at handover and drops a stale card without a turn (abandoned or settled Dispatch,
Run taken over by another chat, mail a check or reset took). Cleanup after check, moves, run-use, abandon,
reset and worker release deletes those cards visibly and never holds the action up; mail still owed goes to
the mailbox's current owner, and Orca's own deletion is never read as the person's.

A send that may have reached the agent is never sent again; check keeps it. A send the agent proved it never
got is sent once more, under a new id, only after a later turn or /clear ordered after that failure. A send
recorded but never admitted is admitted under its own id. Each outstanding send is read by key, never by
scanning the chat's history.

A refusal no longer loses its retry when an edge arrives mid-send, and a coordinator refused for queue room
gets its mail when the queue frees room. A chat worker's follow-up now takes its short Task first and then
each moved message whole, with no check needed. The guide says a working worker gets mail when its turn ends.

* Let the chat's host answer what became of each mail send, and let the person's cards pass mail Orca cannot decide on

The chat's host now answers for each send by its id: the card first, then the send itself, then a gone card's handoff found by key, and only then the admission receipt, which alone can prove nothing was admitted. A receipt whose journal detail is gone is in doubt however old its id, so a renewed id can no longer send the same message twice. A rejected send is repeated once only after a different turn was actually handed over and accepted, or a /clear was made, after the rejection; the queue's admission cursor no longer stands in for that. No answer walks the conversation's history.

The mailbox reserves each send and stamps the message delivered in one write before the host call, so a crash after admission never leaves it selectable again. A refusal before admission releases that exact reservation; every retirement and release is checked against the current attempt, and a record an older build saved without a stamp is repaired as it retires. A person's Delete consumes an oversized pointer's mail too.

Who holds a mailbox is read from durable facts: a Run moved to a terminal, a released worker, another host or an ended chat makes a waiting card stale, so it is withdrawn without a turn and its mail released for the real owner. Only a fact that cannot be read holds a card; the person's own cards behind it go on, later mail stays behind it, and selection and the handover check use the same rule. When the owner can be read again the queue is woken. A Task or a person's edited card never opens the mail database. An explicit Send of such a card now says what happened.

Parked mail is indexed by chat, wakes only that chat's mail, ignores streamed tokens, and drops the chat's journal watch with its last mailbox. Canonical session identity is reused per session store revision instead of rebuilt from every record on each check. Main's account-switch worker test now reads "unread and still owed".

* Let the queue alone decide which card goes next, and wake a terminal given back its mail

The queue now owns one rule for what can be handed over next, installed once on each chat's queue and read by the drain, the final handover check, queue publication and scheduling alike. Mail whose owner cannot be read keeps its place; the first of the person's own cards behind it goes instead. Held cards stay held, a returned, paused or edited card behind it still stops the queue, and later mail, from any mailbox, stays behind it. The rule walks only the queue's live cards, never its history. When nothing can be handed over nothing is published as next, so the chat reads as idle and /clear works; when the owner becomes readable again the queue is published and looked at again. Choosing and publishing the next card only reads custody; settling a stale card stays with the handover.

Mail a chat gives back after its Run or worker moved goes through the runtime's own delivery, so a terminal owner is pointed at it. A chat's journal watch now lasts as long as it has mail parked, through its own redrives, so a publication that changes nothing the mail waits on starts no pass. Session identity is cached until a record joins, leaves or is cleared, not rebuilt after every admission. An explicit Send of mail whose owner cannot be read says Orca couldn't read the chat's saved state rather than that it restarted.

* Find the person's next card past undecidable mail by walking only as far as it must, and ask mail authority only once nothing else stops a send

* Say plainly when Orca can't confirm queued mail is still this chat's, and that the person can try again

* Let parked mail's own watch be the only journal subscription for mail, and stop saving a send fence nothing reads

* Count the queue's order reads with plain index getters instead of a reflected proxy

* Read saved mail sends column by column, and build test fixtures as the types they stand for

* Keep main's words for every other refused queued Send; only undecidable mail says its message wasn't sent

* Let replay read the queue's handoff links, keep the host's last mail answer where the type can see it, and drop the removed test from the send gate

* Keep the queue's possible next cards in order as each one changes, reuse the last pick until the queue moves, and look up a send by its id

* Ask whether one chat's tab closed instead of listing every open tab to find it

* Settle a mailbox's earlier mail only when something it waits on moved, republish a chat once per pass, clean up only the mail a check, abandon or move touched, and act on a chat's status only when it changes

* Date the scaling test's extra tabs by the coordinator's recorded lease instead of the wall clock

* Keep nothing in memory for a mailbox a cleanup finds with no owner and no send left, unless a pass on it is still running

* Ask about a report whose send threw before handing over newer mail, under the id it was reserved with
2026-11-02 12:08:01 -08:00
Brennan Benson 348b3bec1f Show when Claude is compacting before a reply starts (#37409)
* Show Claude compaction activity before the message echo

* Own a Claude send's turn from the moment Orca hands it over

A Claude chat now shows "Compacting the conversation" (and any other root
activity) as soon as Claude starts working on a message, including on CLIs
that send no command-lifecycle receipts. The send's turn is opened when
Orca hands the input to Claude, the echo confirms delivery into that same
turn, a follow-up handed over while it runs joins it, the previous cycle's
late idle or result no longer closes the new turn, and an input Claude
proves it never ran retracts its unworked turn instead of ending it.

Tracked in STA-9923.

* Keep each Claude run tied to the inputs and provider cycle that are really its own

A Claude turn opened when Orca hands a message over now tracks every
message handed over while it runs and which provider cycle each one ran
in. A turn Claude started and then cancelled ends on its own idle; a
refused message only removes itself, keeping the turn for any message that
joined it; a follow-up's echo with a new uuid stays in the turn it joined;
a finished turn's unechoed message never owns later work; an earlier
cycle's result no longer completes a newly handed-over turn; and
withdrawing an unrun message no longer announces the previous reply again.

Tracked in STA-9923.

* Retire a Claude input on its own endpoint wherever it is owed

A follow-up whose own result arrives after the turn it joined ended can
no longer anchor the next message's turn: every endpoint Claude reports
for an input (its named result, a terminal receipt, a refusal, or the end
of the run it ran in) now retires it in one step, wherever it is waiting.
Inputs are looked up by the ids Claude names them with instead of
scanning every message a long turn has folded in, so a turn with many
follow-ups stays cheap.

Tracked in STA-9923.

* Revert "Retire a Claude input on its own endpoint wherever it is owed"

This reverts commit bcc7dd5aba.

* Revert "Keep each Claude run tied to the inputs and provider cycle that are really its own"

This reverts commit 43df8fce90.

* Revert "Own a Claude send's turn from the moment Orca hands it over"

This reverts commit 211a0b75e3.

* Cover compaction before the echo and background-wake ownership on the started-send boundary

Precompaction: the previous turn's completed/idle tail, 14 s and zero-length
compaction, the receipt-less Working expectation, a follow-up released during
compaction with exact and reminted opener echoes across an intervening init,
both Stop forms with the published turn id, and started -> compacting ->
cancelled -> idle without an echo.

Background wake: captured CLI wake frames stay provider-owned whether the
follow-up was handed over before the first result (with or without a queued
receipt) or after the first turn ended; the follow-up's own echo opens its
turn. A follow-up settled by its own named result cannot own the next send.
2026-11-02 12:03:07 -08:00
OrcaWin 66a0f1df29 test: remove 160 low-value renderer tests (#37537) 2026-11-02 11:36:40 -08:00
OrcaWin 70c2a36dc0 test: remove 89 low-value renderer tests (#37533) 2026-11-02 19:23:08 +00:00
Jinjing ba4535880b Cap tab width at 300 pixels (#37523) 2026-11-02 12:13:26 -07:00
Brennan Benson 7872cb5aa1 Disable the lagging experimental orchestration panel (#37527)
* Disable the orchestration panel after reported app lag

* test: expect suspended orchestration card to stay hidden
2026-11-02 11:11:00 -08:00
OrcaWin 0140d76a06 test: remove 203 low-value renderer tests (#37530)
* test: remove 116 low-value renderer tests

* test: remove 87 more low-value renderer tests
2026-11-02 11:08:53 -08:00
JinjingandBrennan Benson 96cceba75a Keep selected Codex permission mode visible until the next turn (#37419)
Co-authored-by: Brennan Benson <79079362+brennanb2025@users.noreply.github.com>
2026-11-02 11:00:14 -08:00
OrcaWin 443140e485 test: remove 114 low-value renderer tests (#37526) 2026-11-02 10:43:49 -08:00
Brennan BensonandClaude Opus 5.5 e59b843336 Keep review note changes on the workspace copy they came from (#37204)
* Keep review note changes on their captured workspace owner

* Keep review note actions on the copy whose notes are shown

Review notes now read their owner and their notes together, so an action
always changes the copy the user is looking at:

- A paired SSH copy saves through its server even when its row does not
  name the server, instead of saving on this computer.
- The Markdown preview shows and edits the selected copy's notes, not the
  first copy listed with the same workspace id.
- While the selected copy is not listed yet, no other copy's notes are
  shown; a note started then saves to that copy once it lists.
- A listing that stamps the same copy's host no longer looks like a new
  copy: a pending Send stays held and unsaved note edits are kept.
- Clear all / Clear file confirmations stay on the copy they opened on
  when the selected host changes.
- A copy removed since the user acted reports the existing save or clear
  failure once instead of failing silently.
- Mounted note views skip ownership work on store updates that cannot
  change it, and do not re-render for another copy's changes.

* Keep review notes on the exact workspace copy each surface shows

Notes, their owner and every note action now come from one copy identity.
Previews and editors of a server's copy read and save that copy, paired
SSH copies keep working through their server, an SSH draft never lands on
a local row, and controls stay disabled instead of claiming "All notes
sent" while a copy's notes are unknown. Open Clear confirmations share the
cached read, so unrelated store writes do no row work.

* Resolve review-note copies through the shared workspace ownership rules

Every listed row now gets its copy from the same rules the app routes
writes with, including server provenance from detected listings and the
SSH place behind a paired server for older rows without host stamps.
Previews, editors and diffs read notes from their own tab's provenance
instead of the selected copy, folders honor their source's host, and a
note composer's shortcut captures the copy its surface shows when it
opens.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Keep folder review notes on the folder copy their source names

A folder's notes now come from the same source rules as worktree notes,
so a file from this app never shows or saves to a server's folder with
the same id. Queued folder saves and rollbacks check the captured folder
copy the same way reads do, and resolving copies no longer rescans the
project list for every row.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Read review-note copies through the shared id indexes

Folder and worktree note views now read only their own workspace's
catalog entries from the shared indexes, and readers of one folder
share its qualification, so listing updates cost work proportional to
what is shown rather than catalog size times readers. Also fixes the
type errors and the end-to-end note seeds, which now pass the owner of
the worktree they seed.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Share review-note copy resolution across rows and readers

Rows of one workspace on the same host now share a single ownership
answer per catalog snapshot, so duplicate listings of an SSH worktree
no longer make every note view rescan its peers. Folders that are not
listed return one shared answer instead of leaving cache entries behind.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Name the catalog snapshots review-note ownership results are shared under

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Save renamed-file drafts under the new path and encode restored SSH targets

A diff note draft opened before its file was renamed in place now saves
under the file's current path, still on the copy it was opened on. A
restored SSH file whose target id needs encoding now shows and saves its
own copy's notes.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

* Update the diff note path ref after render instead of during it

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2026-11-02 10:32:22 -08:00
Brennan Benson e5fd4afd0b Preserve provider failure causes from manual compaction (#37322)
* Preserve provider failures from manual compaction

* Keep compact self-failures command-owned; attribute quota only to this attempt

An ACP /compact error now uses the ordinary failure row only when the merged
evidence carries a typed usage-limit or sign-in cause; other errors keep the
command's Compaction failed row with the agent's detail, as before.

Claude /compact replies stay hidden but feed their typed provider errors to the
usage-limit evidence, with a sign-in failure as an explicit other cause. Account
rejections count for a failed manual compact only when received during that
command; older ones still supply the window and reset.

* Select compact failures in the command composer; attempt-owned Claude rejections

ACP: the compact composer merges the settlement into the retained evidence and
asks the ordinary failure owner's classification; established provider evidence
(quota, sign-in, or OpenCode's structured provider error names) writes the
ordinary row with a thread-only join, otherwise the command keeps its own
compactionFailed row. The ordinary owner no longer touches compaction state.
Grok's -32003 RPC code now reads as a rate limit.

Claude: rejection types seen while a command runs belong to that attempt and
must still be rejecting; a hidden sign-in reply selects the ordinary sign-in
notice, written once at result time.

* Assert compact failure rows by their encoded item ids

* Keep a compact's 403 access denial in Claude's words, not as sign-in guidance

* Pin the clock in the compact failure tests instead of reading it

* Parse the recorded sign-in fixture instead of casting it
2026-11-02 10:30:33 -08:00
OrcaWin 83a4024c43 test: remove 245 low-value renderer tests (#37522) 2026-11-02 10:28:49 -08:00