Skip to content

Update with main and address the review findings for #45518 - #2

Open
mbkkong wants to merge 1396 commits into
jtalborough:fix/sidebar-single-workspace-projectsfrom
mbkkong:fix/sidebar-single-workspace-projects-update
Open

mbkkong wants to merge 1396 commits into
jtalborough:fix/sidebar-single-workspace-projectsfrom
mbkkong:fix/sidebar-single-workspace-projects-update

Conversation

@mbkkong

@mbkkong mbkkong commented Nov 23, 2026 •

Copy link
Copy Markdown

Hi Jason, I'd really like to see stablyai#45518 land, so I brought your branch up to date with main and went through the CodeRabbit comments. If it's useful, merge this into your branch and the upstream PR picks it up. Feel free to cherry-pick only parts of it.

Update, 25 November: main moved again. stablyai#44653 (project badges) turned the card's project chip into an image or letter mark, and that conflicted with this branch in four card files. I merged main again and took main's chip as it is, so the name override I had added to the chip is gone. What this branch still adds on desktop is the rule for when a headerless project shows its mark: only when the project name differs from the card title. check:changed passes again (40 checks), and once this is in, stablyai#45518 merges cleanly into today's main. The screenshot below is from before stablyai#44653, so the badge looks different now.

What's in here

  • Main merged in. There was one textual conflict, in rendered-sidebar-worktree-order.ts: main now passes statuses to selectSidebarLineageParentIdentities, and your branch shares worktreesByRepo, so I kept both. Main also added LineageGuides.fixture.tsx, which builds a WorktreeItemRowContext without the new projectActions and projectGroups fields, so typecheck failed after the merge. It now gets no-op values.
  • Phone: Bots-listed workspaces count toward the project. The phone plans its list from rows that already have the Bots-listed workspaces taken out. A project with one listed workspace and one in Bots therefore lost its header. buildMobileWorkspacePlan now counts membership from every host row, the same way the desktop counts from allWorktrees.
  • The project name shows only when it differs from the title, as [Feature]: Show single-workspace projects as one row inside project groups stablyai/orca#45515 describes. A folder project is usually named after its folder, so the card read "personal-projects" in the title and again in the project badge. On desktop, appendWorktreeRows now sets showProjectName for the headerless card only when the name differs from the workspace's display name, and since feat(sidebar): project badges (image or distinct letters) with a click-to-edit card stablyai/orca#44653 that decides whether the project mark shows at all. On the phone, the name is also its own text after the title, so a long title truncates before it does.

Testing

pnpm check:changed --base=<stablyai main> passes (40 checks), and so does the mobile typecheck. I also did a throwaway Electron run (not committed) with one group holding a folder project, a git repo with one workspace and the seeded repo with two workspaces, all under Group by → Project. The folder project and the one-workspace repo became single rows. The one-workspace repo kept its "solo-repo" badge because its title is "main". The two-workspace repo kept its header:

Group by Project: a two-workspace repo keeps its header, a folder project and a one-workspace repo are single rows

Two things I found but didn't change, since they're your design calls

  • Dragging projects in Manual order. getSidebarOrderedRepoHeaderIdsByBucket builds the drag buckets from header rows only, and project-header-drag-start.ts refuses a drag when a bucket has one header or fewer. So in a group with one single-workspace project and one multi-workspace project, neither project can be reordered by drag, and a group made only of single-workspace projects can't be reordered at all.
  • The numbered shortcut order when the list isn't mounted. getProjectWorkspaceRevealPath keeps the header when the repo has a pending creation, an imported-worktrees card or an inbox notice. But rendered-sidebar-worktree-order.ts and worktree-reveal-group-keys.ts pass empty maps for those inputs, so their replay treats the project as headerless. If that project also has a saved collapsed state, the mounted list hides the card, while the replay still counts it, and the numbering shifts by one.

Jinwoo-H and others added 29 commits November 23, 2026 19:01
…47904)

* fix(items): send anyway skips a set's unanswered questions

* fix(items): skip only lines the answer leaves open, and only with its set named

* fix(items): skip only lines still open by the set's pairing; one-question mail wording
…t and the sign-in card (stablyai#47905)

* feat(google): start a new Google app setup when one already exists

Adds --new-app to google-setup start: it runs the guided setup instead of
showing the Connect card, and only a key saved after the start counts as
that setup's key, so the existing app's key can't finish it.

* fix(google): a new-app start replaces an ordinary setup already running

Also drops type assertions from the start routing test.

* fix(google): a new-app start marks a running setup instead of replacing it

Replacing it wiped the owner's answers and let a stale card answer land on
the new run. Also words --new-app as making a new app, not adding an account.

* feat(google): offer a new Google app from Use another account and the sign-in waiting card

* fix(google): menu fits its subtext, last-visited lookup selects one id, drop the orphaned key

* docs(google): plain wording in the setup start comments

* fix(google): a new app starts over an imported setup; cancel stops only this surface's sign-in

* fix(google): an older paired server asks to be updated before setting up a new Google app
…tablyai#47940)

The composer's menu found where to draw by looking for the chat screen's
container, which the group room and item page don't have. Each screen that
hosts a composer now marks the area its menus may cover. Room members in the
@ menu show in the regular font with their faces, as in the agent chat.
* Compact the bot hover card header

* Reveal the bot host tooltip on keyboard focus
* Cancel agent items instantly from the UI, with no reason dialog

Cancel from the status menu, Move to, the row menu, and the phone's sheets
now cancels at once. Waiting still asks what it waits on. The owner's
status call accepts a cancel without a reason; the CLI's --reason path is
unchanged.

* Drive the instant-cancel test through clicks

* Send older hosts a reason for an instant cancel

Hosts advertise reason-less owner cancel; desktop and phone share one
field builder that sends a plain reason to a host without it.
* fix(slack): explain read access refusals

* fix(slack): surface read access remedies

* fix(slack): preserve lookup refusal details

* fix(slack): keep access refusal checks typed

* fix(slack): handle connector read refusal codes

* fix(slack): preserve generic read refusals

* fix(slack): use typed connector read reasons

* test(slack): document action client fixture cast

* test(slack): scope action client fixture suppressions

* test(slack): cover typed read refusal reasons

* fix(slack): scope read refusal guidance to Slack refs

* fix(slack): keep Orca Cloud's read refusal text and add its typed reason

* fix(slack): keep rejected read reasons out of error data
… question is open (stablyai#47941)

Starting or linking a worker with worker-start --item moved a Needs you
item to In progress even with the owner's question unanswered. It now
moves only when no question is open (the same pairing that decides a set
is still waiting); the answer moves it on as before. Agent rules say to
link every worker, reviewers included, and that Waiting is only for what
none of the agent's workers is doing.
…e accent (stablyai#47859)

* fix(native-chat): fill the resume toast's Resume button with the theme accent

The Resume button on the chat resume toast used the primary fill, which is
near-black in light and near-white in dark, so it did not stand out. It now
uses a theme-accent Button variant backed by the theme's accent token
(--color-theme-accent, the theme's link colour, falling back to the
callout note blue). Hover mixes 12% toward the foreground so light text
keeps 4.5:1 on the hovered fill. Details-row actions are unchanged.

* fix(native-chat): derive the resume toast's accent label from the theme accent

The Resume button's label was a fixed near-black or white, so a theme
accent that neither reads with it (for example #b45309 in dark) dropped
the label under 4.5:1. The label is now --theme-accent-foreground: derived
from the accent (near-black or white, whichever reads better), so themes
don't author it. A theme may still set it explicitly; an explicit label
that doesn't read on its accent is replaced by the derived one.

The header Resume button is the only user of the label. Its hover moves
12% toward the neutral opposite of the label, so hover keeps 4.5:1 on
both light and dark labels. Default-theme labels are unchanged (#fafafa on
light, #171717 on dark).

* fix(native-chat): drop a theme accent that no label can read on

An accent that neither near-black nor white reaches 4.5:1 on (for example
mid-grey #767676) can't carry a label at that contrast. The validator now
drops it, as it drops any failing color, and the built-in accent stands.
Adds a test for that path.

* test(native-chat): check the accent label on every bundled theme

Runs each theme under resources/plugins/launch through the validator and
checks its accent and label (its own, or the built-in ones for its base)
read at 4.5:1 or better.

* test(native-chat): type the bundled theme JSON with an annotation, not a cast

* fix(native-chat): keep a theme's link color; only the accent button falls back

The validator dropped a theme's --text-link when neither #171717 nor
#fafafa reached 4.5:1 on it (luminance ~0.17-0.21, e.g. #d73a49,
#cb4b16, #dc322f). That color is also the link color for Markdown,
editors, chat and Monaco, so those themes lost their link color
app-wide for one button, and tokens main.css derives from it changed
without being re-checked.

safePluginThemeTokens is back to plain validation. A new
themeAccentButtonTokens paints the button's fill and label: the theme's
accent with its own label when that reads, else the derived ink; when
no ink reads, only the button uses the built-in accent and label
(--theme-accent-fill). The fill and its hover resolve per element, like
bg-theme-accent.

Tests cover mid-tone accents keeping their link color while the button
falls back, #b45309 with white ink, a theme label that fails being
rejected, and every bundled theme through both steps.
…ees (stablyai#47821)

* perf: serialize changed checks on opted-in development hosts

* Keep local scheduling guidance in the contributor guide

* Cancel and drain admitted validation trees before releasing the slot

* Wait for owned validation process groups to stop before admitting another run

* Read the validation opt-in from the shared clone config
…d to the folders and build that produced them (stablyai#47895)

* fix(bots): a Share listing is kept only under the folders it was read from

Linked project roots are resolved once, on the skills branch, and the scan reads those exact
folders; a root that cannot be resolved makes the listing uncacheable; an older build or pick
never stops or replaces a newer listing. Sessionless builds skip the cache key.

* fix(bots): an older Share build never replaces a newer one, and a moved folder's listing is never kept

A dialog's call order lives apart from its cached listing and is kept while any of its calls
run, so an older pick can't stop a read a newer pick joined, however many dialogs open. A
linked project folder that goes missing, or is swapped, while it is scanned makes that listing
one never kept. The candidate store checks, where replacement runs in turn, that an older
build never replaces the bot's newer preview.

* fix(bots): a project folder gone during a Share listing's shape checks keeps it out of the cache

The linked projects' folders are checked again once the whole listing is done, shape checks
included, so a folder that went missing while a skill's shape was checked never leaves that
skill out of a reused listing.

* test(bots): remove assertions from share test fixtures
…rows show progress (stablyai#47959)

* fix(native-chat): drop the question card's step bar; the count and arrows show progress

The colored segment row under the header of a multi-question card is gone.
The header keeps its title, the "N of M" count, the answered check and the
previous/next arrows. The question now sits at the same distance below the
header on single- and multi-question cards.

Tests and fixtures that jumped by a step segment now use the arrows; the
step tooltip's locale key is removed.

* test(native-chat): pin the question card to the arrows as its only step controls
…tablyai#47827)

* fix(browser): a streamed page's Print saves a PDF on the desktop

A Server (streamed) page runs in a hidden window on the server, so its
print() either opened a print dialog on the server or, once an agent had
driven the page, was refused and only reported to the agent. Nothing ever
reached the person viewing the page.

Server pages now never open a print dialog on the host. When a viewer's
own click or key press makes the page print, the host prints the frame
that asked (the page or an iframe) to PDF right away and sends that
viewer a print event (opt-in with prints: 1). The desktop asks where to
save it, reads it in slices through browser.readPrintPdf, which only the
device it was sent to can read, and opens it in the system PDF viewer,
where it can be printed. An agent's print is still refused and reported
to it.

* fix(browser): one stream reads each print, and a save underway keeps its print

* fix(browser): cap waiting prints per page, saves underway included

* fix(browser): one print per page and device, released on cancel; agent commands withdraw viewer credit

* fix(browser): hold at most 256 MiB of PDF for a viewer

* fix(browser): a delivered print outlives its stream until read, released or expired

* fix(browser): a print while an agent command runs anywhere in the tab is the agent's

* fix(browser): read a print only from the pairing that sent it

* fix(browser): a click that opens a tab keeps its print credit

* fix(browser): a popup's print reaches the device through its tab's stream

* fix(browser): a print that renders between streams waits for the tab's next stream

* fix(browser): retell an unread print to each new stream; the desktop saves each print once

* fix(browser): viewer input during an agent command in the tab can't authorize a print

* fix(browser): a retold print is saved once, even after its save settled
…tablyai#47779)

A bot's close now saves whom its chat acts for, and the bot-wide journal labels a close made for anyone other than the owner, or one Orca can't attribute, instead of filing it as the owner's work.

Co-authored-by: Jinjing <[email protected]>
…sh or Relaunch keeps idle mail flowing (stablyai#47887)

* fix(agent-hooks): save a pane's turn edge at once so a restart that skips quit restores it

* refactor(agent-hooks): name the save fingerprint for what it now covers

* perf(agent-hooks): coalesce turn-edge saves to one per second; authority saves stay immediate

* test(agent-hooks): drive the turn-edge save test with fake timers

* perf(agent-hooks): a turn-edge save writes only the edged panes' rows; the rest wait for the batch

* fix(agent-hooks): retry a failed batch as a batch; turn-only saves need an edged pane

* test(agent-hooks): give the failed-batch retry check room past the backoff

* fix(agent-hooks): a failed full save keeps the batch owed until one commits
…debar before the first send (stablyai#47929)

* fix(native-chat): show new Claude and Codex chats in the workspace sidebar before the first send

A chat's journal publishes status null until its first request, and the
renderer projection dropped the row for that summary. Project a published
summary with no status as an idle session-boundary row, the same shape a TUI
has after SessionStart, so the first send updates the same row in place.
A missing summary still removes the row and a failed launch still marks it
failed. The opened row keeps its first clock when the host republishes the
empty journal.

Fixes stablyai#47919

Co-authored-by: David Chen <[email protected]>

* test(native-chat): pin the opened-chat projection test to a fixed clock

Co-authored-by: dzkchen <[email protected]>

---------

Co-authored-by: Neil <[email protected]>
Co-authored-by: dzkchen <[email protected]>
)

* fix(bots): redesign Connect Google as two one-line cards

Drop the description, the setup steps and the time estimate; give each
host choice one short note; move Import file into the footer. The Soon
card keeps a solid background instead of fading the whole card, and only
its radio and title dim. The phone's Connect Google page loses the same
steps and time estimate.

* fix(bots): keep the Soon card legible and the footer reachable

The Soon card sits on the dialog's own surface, its text is muted rather
than faded, and its empty radio ring stays visible in light theme. The
footer wraps instead of clipping at the smallest window and largest zoom.
The phone says Soon like desktop. The fixture's failing picker no longer
leaks into later fixtures.

* fix(bots): keep Google dialog actions together when wrapping

* fix(bots): use responsive buttons in the Google dialog footer

* fix(fixtures): skip interaction after a fixture is replaced
* Clean up leftover plugin git temp folders

A quit, crash or kill during a plugin catalog fetch skipped the clone's finally block, leaving ~230 MB folders in tmpdir() with nothing to remove them, and the git child could keep downloading after Orca exited. Sweep orca-plugin-git-* and orca-plugin-ls-remote-* folders older than an hour in the background after startup, and abort in-flight plugin git on will-quit.

* Make plugin git cleanup tests deterministic and Windows-safe

* Stop the test git child on every path
…yai#47920)

components.native-chat had 90 keys in en.json with no entry in ko.json,
so the new-bot card, paired-computer prompt, side chat, webhook setup,
tidy-up, bot request and image preview announcements fell back to
English in the Korean UI. Adds Korean for each, reusing the wording
already used next to them (봇, 채팅, 워크스페이스, 인계, 사용자 대기 중,
변경 {{count}}개). The "Takes over" row reads 인수 대상 so it is not
confused with the bare 인수 used for CLI arguments.

Fixes stablyai#47921

Co-authored-by: Neil <[email protected]>
…ch what was written (stablyai#47963)

* fix(items): item write lines name the item, ask tips match the rules, spec titles drop Markdown marks

- A write's confirmation line shows the item's own title, not only its chat's.
- The prose-choices tip reads only questions left without options; choices
  named in the context are the buttons once every question has them.
- The long-context tip is gone: longer context belongs in --comment-file,
  which the host cannot tell from --comment, so it misfired on the advised path.
- A worker title derived from its spec drops heading, quote and emphasis
  marks, using the Markdown-to-plain-line rule question rows already use.

* fix(items): keep code spans literal and titles on one line in plain-text lines

* fix(items): pair Markdown marks across code spans in plain-text lines

* fix(items): build the code-span placeholders at runtime so bundles stay ASCII

* fix(items): drop placeholder delimiters from input before masking code spans

* fix(items): keep the long-context tip; the CLI drops it when the context came from --comment-file

* fix(items): question lines skip a bare Markdown mark; bump the waiting-ask rules
…lyai#47932)

Opening an inactive code cell with a press focused Monaco before its
caret rendered, so the notebook scrolled to line 1 of the cell, and
Monaco never saw the first mousedown, so double-click, triple-click and
drag selection failed.

Render the caret before focusing, replay a plain primary press to Monaco
once it mounts so it counts clicks and tracks the drag from the first
press, and reserve the horizontal scrollbar for code cells whose preview
overflows so Monaco's late line measurement cannot change the height and
end the drag. Modified presses, chords, touch and presses on the
preview's scrollbar or padding still only place the caret.

Fixes stablyai#47930

Co-authored-by: Neil <[email protected]>
…yai#47947)

* fix(orchestration): say what is known when a worker goes quiet

The notice fires after about 10 minutes with no hook and an unchanged
screen, so it can't tell a slow model from a stuck tool or a busy
machine. Say that instead of naming the model as the cause.

* test(orchestration): count the quiet-worker notice instead of matching its copy

* fix(orchestration): say no progress, so a retrying chat worker's notice doesn't contradict itself
…cluding SSH hosts (stablyai#47955)

* feat(browser): clear cookies for the active profile of any Settings host, including SSH hosts

Settings › Browser gets a Cookies row with Clear cookies… for the active
profile of the selected host. On a paired server it clears both of that
profile's stores (this computer's This-device jar and the server's),
on an SSH host the jar this computer keeps for that host's pages, and
locally the profile's own jar. SSH hosts join the Host list, and their
Settings imports fill the host's jar. Default's trash icon goes away.

The server side adds browser.profileClearCookies behind
browser.profile-cookie-clear.v1; agents' CLI callers are refused on it
and on browser.profileClearDefaultCookies.

* fix(browser): deleting a profile also wipes SSH jars no page prepared this launch

* perf(browser): read SSH jar bindings once when a profile is deleted

* refactor(browser): pass the Settings SSH host to the import notice and keep the clear flow compiler-safe

* fix(browser): pass the server's clear capability into the store action instead of importing runtime status there

* fix(browser): profile deletion finds SSH jars even when a prepared jar fails to release; Browser Use follows the selected host
…n " (stablyai#47961)

* fix(native-chat): an ask to an unnamed paired computer never reads "on "

The waiting line took the raw computer name instead of the name with its
'Paired computer' fallback, so a computer whose name never reached the host
showed 'Waiting for approval on ' (blank). Trim the name, use the fallback
for both the chip and the waiting line, and give the plain line older
clients show the same fallback.

* test: drop copy-pinning tests for the unnamed paired computer fallback

AGENTS.md keeps UI and copy out of unit tests; the fixture shows the fallback.
…s down (stablyai#44265)

A local worktree watch that the watcher crash fuse failed was dropped for
good: main deleted the root and never subscribed it again, while the
renderer still believed it held the watch. Open files then stopped
refreshing after external (agent) writes until Orca restarted.

Keep the root's listeners on the existing retry path and resubscribe at
the fuse's base cooldown; a successful retry sends the renderer a resync
so open tabs reconcile with disk.
… it can hold (stablyai#47878)

* perf(journal): a window of a chat's newest turns reads only the sends it can hold

Reading whom a bot's newest turn acts for opens a window of the chat's
newest turns. That window read every saved send in the chat to find the
ones it holds, so every bot request, Slack post and item add cost more the
longer the chat ran. It now reads the sends placed in the window and the
ones still unanswered, each by an existing index, as a window through
anchored turns already does. Other windows keep the whole read.

* perf(journal): an unanswered send far back keeps the whole read, and recovered sends stay unread

- Only sends still unanswered (pending, or unknown and not recovered) seed the
  newest-turns window, by the index that keeps exactly those.
- An unanswered send older than the newest turns pins the window back to it;
  the window then takes the single whole read it took before.
- The perf contract also holds with old recovered sends, and with an old
  unanswered send costs no more than the whole read.

* perf(journal): finding a window's sends never lists its tool calls

- The window's send lookups read only rows a send can sit on, by a new partial
  index over visible rows that are not tool calls or diffs (created like the
  other window indexes: IF NOT EXISTS, no version change).
- An unanswered send older than the newest turns by the head it was sent at
  also pins the window to the whole read.
- The perf contract holds with 1,000 tool calls in the newest turn.

* perf(journal): a window's send reads key on the tool-free index, and any send it must hold that sits before the newest turns takes the whole read

* perf(journal): only a newest-turns read looks for a send before those turns

* perf(journal): only a send the newest turns hold pins them back, and the perf contract states its row budgets

* perf(journal): a window holds a family of linked sends in one walk

* perf(journal): an old unanswered send takes the whole read before any send family is read

* perf(journal): a newest-turns window stops reading a send family at its first member older than the window

* perf(journal): a newest-turns window whose family walk stops early takes the whole read

* perf(journal): a newest-turns window reads at most a fixed number of related sends by index before taking the whole read

* perf(journal): a newest-turns window's seed and placement lookups stop at the cap and take the whole read

* perf(journal): a newest-turns window crowded with rows takes the whole read, and its lookups stop at the first full one
Correct 14 existing translation values across nine desktop and mobile catalogs.
AmoabaKelvin and others added 30 commits November 24, 2026 21:08
…rca on every page (stablyai#48467)

A key download Google setup claims on the host's own browser showed its private
staging path, Open and Show for the deleted file, and on Server (streamed) pages
a Save to this computer that always failed. The host now marks claimed downloads
on the download events, never offers them as copies, and desktops and phones
name the setup instead of the file.
…tions (stablyai#48431)

* fix(connector): a turn the owner typed acts for the owner in Slack actions

* fix(connector): another account's paired computer never acts for the owner, named or not

* fix(connector): owner-typed turns fail closed and never borrow an earlier opener

* test(connector): annotate the faked journal instead of casting
…stablyai#47789)

* fix(bots): a thread's follow-up goes back to the thread it started in

A handoff from a run woken by a thread now records that thread as data.
The receiving chat sees it, an item it adds links it, and a worker report
for that item lists the item's links. Mailing a running worker new work
with --item links it to the item, so its report names the item.

* fix(bots): report the item a reused worker was linked to, and only where its work started

- The report hint names the newest item linking any step of the worker, then
  the one it started for, and only the place the item's work started in,
  kept on its made event.
- A worker report with no item opens no items store.
- send --to dispatch: --item checks the link first and writes it only once the
  send succeeds; a worker already linked costs no item view.
- A turn takes an origin only when every request it took carries the same one.

* refactor(bots): check a dispatch mail's item link on the local send path, leaving the send handler as it was

* fix(bots): a report names only its starting bot's items, and same-channel threads stay apart

- A linked item counts for a worker's report only when it is the starting bot's own.
- A send's item check also refuses an item with no room for the link; a link
  that fails after the mail is sent is logged, never undoing the send.
- Report reads keep the dispatch-link cache.
- Two requests share an origin only when their links match too (a person's
  place is their channel).
- A typed link to another PR no longer hides the originating PR.

* perf(bots): a link an item already holds is settled before walking any worker's follow-up chain

* fix(bots): a finished worker's follow-up keeps the item it was sent for

Per a design council: send --to dispatch:<id> --item <n> now starts the
finished worker's follow-up with that item as its origin, in the same step
that starts it, with worker-start --item's checks. A working worker, a
paired one, or a race with another send is refused before anything is sent.
This drops the newest-link lookup, the link written after the send, and the
report-time owner filter.

* fix(bots): a worker keeps to one item, and a turn opened from two places names neither

- send --item gives a finished worker a follow-up only for the item it is
  already on, or when it has none, so one lineage never speaks for two items.
- A turn opened by several messages takes an origin only when all woke at
  the same place.
- The refusal names every reason a worker can't take the follow-up, and the
  bot rules say where a report with no item gets its place.

* fix(bots): a worker linked to an item stays on it, and a worker report's turn takes no thread

- send --item refuses a worker whose history is linked to another item, not
  only one started for it.
- A turn only a worker's report woke reads the turn before it but names no
  origin place.
- A report reads its item and the item's origin in one store call.
- The follow-up item check no longer builds the caller's item source.

* fix(bots): an add already at the link limit keeps its links without the origin

* fix(bots): settle the bot rules after rebasing on main

* perf(bots): a follow-up for an item checks its worker's start first, then at most two linking items

* perf(bots): an item add reads only its newest turn by index for where it started, and a follow-up's link check stays a read

* fix(bots): an automation's event is a turn's origin only when its results go back there, and a reused terminal's earlier item still counts

* fix(bots): a person's thread stays a turn's origin, a scheduled run's prompt reads no runs, and a terminal's earlier owners count toward its item

* perf(bots): an item add reads where its turn started from the newest turn and Orca's records alone, and an automation's event counts only in the thread's own chat

* fix(bots): an automation's event is a turn's origin only in its own thread's chat, and the item check reads each worker step once

* fix(bots): a worker whose history runs past the item check refuses new item work, and an event's run is read without an owner fence

* fix(bots): an unreadable list of a terminal's earlier owners refuses new item work, as its release does

* perf(bots): an item add's origin read stops on the index past 4096 rows in its newest turn

* perf(bots): an item add's origin read looks back for the turn ahead no further than 4096 rows

* perf(bots): an item add's look back for the turn ahead stops at its first match, and a slow contract names its time

* test(bots): an item add's look back for the turn ahead tests two candidates however long the chat ran

* test(bots): the look-back contract counts SQLite's tests through the real query, with no export for it

* fix(bots): a handoff promises an item link only for an origin place that has one

* fix(bots): a Slack thread's link in a report or handoff comes with the ref slack post takes

* fix(bots): the Slack thread post hint names its text, and leaves a thread's own chat its final message
…ays inside the dialog (stablyai#48454)

The folded "Runs on <computer> with <agent>" row in Import from another
app was a no-wrap flex row, and the computer name span could not shrink
below its longest word. A long name pushed "with <agent>" under the
Change button and past the dialog edge.

Let the row wrap between its parts (flex-wrap, gap-x-1.5 so wrapped
lines keep normal line height) and cap the name at the row width with
wrap-anywhere so a name wider than the row breaks inside it.

Fixes stablyai#48453
… installed (stablyai#48448)

readClaudeStartupFacts can resolve on the initialize answer while a foreign
system/init is still queued. If it arrives before openClaudeSession installs
initProof.onRefusal, refuse() records the error with no callback to run,
nothing rechecks the proof, and the session opens only to be ended by the
next foreign init one turn later.

The init proof now exposes the first refusal recorded by refuse() (not child
faults or journal rejections). openClaudeSession checks it before installing
onRefusal: a recorded refusal is reported through onLateRefusal and fails the
open, the same path a refusal arriving after the assignment takes.

Fixes stablyai#48402

Co-authored-by: Neil <[email protected]>
…stablyai#48450)

* fix(google): keep a bot's chosen Google accounts across older hosts and setup

- Host advertises google.botAccounts.v1; desktop and CLI send an account list only to a host that has it, else ask to update that host. CLI also fails loudly if a list comes back dropped.
- google.bot.set: a plain on keeps a bot's existing list; widening needs allAccounts, which CLI --on and desktop's plain turn-on send. Older hosts drop the flag and keep meaning every account.
- Google triggers re-check the bot's current accounts when a timer or Gmail match fires.

STA-17954, STA-17955, STA-17956

* chore(i18n): sync protected copy keys

* fix(google): ask a web window's paired server before sending an account list

* chore(i18n): sync protected copy keys

* fix(google): send an older host plain on when every account is chosen

Refuse only a strict subset there, so every desktop flow can still turn Google on. Test the real desktop gate, assert an allowed timer still runs, and trim the CLI host name.

* fix(google): refuse a Google account save based on an outdated read

google.bot.set takes basedOn, the bot's Google as the caller read it, and refuses when it has changed since, so a stale picker or add-account save can't undo a newer edit. Older hosts drop the field; older clients don't send it. An older host's every-account conversion also covers the accounts the picker showed. STA-17968

* fix(google): keep the accounts the picker showed from when ticking began

* fix(google): reload a picker whose save was refused as stale

On googleAccountsChanged the picker rereads the bot and host accounts and starts from them, so the next save carries a fresh basedOn instead of being refused forever. Turning Google on passes basedOn through (offer card, access Undo); adding an account retries once on a change between read and save. basedOn takes accounts as stored, and the host compares them as sets.

* test(google): type the stale-save fake without assertions
…gh the bot-tool relay (stablyai#48477)

MCP 2026-07-28 clients send Mcp-Method on every request, Mcp-Name on
tools/call, resources/read and prompts/get, and Mcp-Param-* headers that
mirror annotated tool arguments. Strict servers reject a request missing
them with 400 / -32020. The relay's request-header allowlist dropped all
three, so tools behind a saved credential failed to load.

Add mcp-method and mcp-name to the allowlist and forward every
mcp-param-* request header by prefix. Saved credential headers are still
applied last, and the bot token and cookies are still dropped.

Fixes stablyai#48475

Co-authored-by: Neil <[email protected]>
…lyai#48246)

* feat(sharing): contract for sharing an agent with Orca accounts

Hello sharedWith and hostKey, the bots.shares cloud feature (kept out of
the default list), share_resolved/share_accept/share_send deliveries on an
'orca' share conversation, the shares and linked-accounts routes, canAskBot
with linked accounts, and the held-message seal shared by desktop and phone.

* fix(sharing): keep orca conversations to share deliveries

* fix(sharing): keep the share conversation out of source adapters

* feat(sharing): optional owner name in the hello

* feat(sharing): seal the share offer to the device; Slack sign-in route

* feat(sharing): Slack as a connect source

* fix(sharing): bind share deliveries to their queue, validate invite emails, name the host in held-message signatures

* fix(sharing): optional host key on the share list, accept answer, URL-safe share ids, canonical keys

* feat(sharing): name the shared account a person asked through; cover Slack on account change

* refactor(sharing): connect sources live in the connector contract
…tablyai#48490)

SSH workspace pages dialed every site through an SSH direct-tcpip
channel, so hosts that refuse forwarding beyond their own loopback
failed every page with ERR_SOCKS_CONNECTION_FAILED.

Resolving the SSH egress route now probes 0.0.0.0:9 once: hosts that
forward normally answer "connect failed" and keep direct forwarding.
Hosts that answer "administratively prohibited" get the browser relay
WSL already uses, run in an SSH exec session with Node 18+ (orcad's
pinned runtime counts). It dials out as the SSH user and opens no
listener. If the relay cannot run, the existing "blocks browser
traffic" card explains it.

Fixes stablyai#48347
* Fix false Codex usage limit warnings during throttling

* Cover Codex throttle messages in the journal
…yai#48496)

A group room's member turns read their workspace as the room's home, which no
bot owns, so desktop rows never applied the bot-answer rule: NO_REPLY drew as a
message, streamed in visibly, and a quiet note kept its marker. Group turns now
mark their rows as a bot's answers. Mobile group turns had the same gap (their
identity carries no botId), so any bot identity now counts there.

Mobile remote-ask answers draw under a bot identity too, so desktop remote-ask
answers apply the same rule and both platforms read a quiet answer alike.

Quiet wakeups still show in the room as on main; hiding them is a separate UX
decision.

Refs stablyai#48444

Co-authored-by: Claude <[email protected]>
…stablyai#47381)

Draw and upload the current bot picture so its Slack icon includes the selected colour and outfit.
…ils (stablyai#48524)

* fix(web): keep startup working when the settings migration write fails

The app rail cohort change dropped the catch around the optional web
settings migration write. getStoredSettings runs while window.api is
built, so a full or denied localStorage threw before the app mounted and
Retry threw again. Restore the catch; the migration reruns next load.

* test(web): restore the storage spy and cover a denied OSC 52 notice write
…stablyai#48517)

A removed or re-paired server stayed in the status bar CLI updates list
until reload, because nothing told the agentCliUpdates slice when an
environment was retired. setRuntimeEnvironments now calls
forgetAgentCliUpdateHosts with the retired ids (removed, or a same-id
re-pair to another peer), next to the other per-host purges. It drops
their entries, check times and in-flight checks, so a late answer,
failure or run result from the old host can't list it again. A recheck
still pending for a removed host asks nothing, because its runtime
status was purged with it. A disconnected but still-configured host
keeps its entry. No polling or new RPCs.

Tests use the shared publicRuntimeEnvironment and agentCliUpdateHostTarget
fixtures, and cover a failed run result that resolves after its host is
removed.

Refs stablyai#48464 (asking paired hosts the list never asked stays open)
…d refusal blocked (stablyai#48520)

* fix(cli): read --focus text for look-around set and name what a Look around refusal blocked

* fix(bots): keep the gh and orca show reads on the look-around list

* test(bots): cover a look-around show read
)

stablyai#47381 left it at 306 counted lines, failing Lint on every PR.

Co-authored-by: m4air <[email protected]>
…e from the dock (stablyai#48427)

* fix(orchestration): let a paired window clear a settled worker failure from the dock

A bot Home Chat on a paired host showed a settled failure under Needs attention with no
Clear: the window hid owner actions for any non-local chat, and the host only accepted
them from its own window. The host now takes Clear and Stop from a person on a paired
window or phone (the same check worker approvals use; agents and the CLI are still
refused) and advertises it, and the window offers them once the host does.

Fixes stablyai#48296

* fix(orchestration): offer dock Clear only to clients a paired host counts as a person

A browser client served by a paired host is not one the host treats as a
person, so its Clear and Stop would always be refused; it now keeps Open-only
rows. Adds tests for the advertised capability, the federated refusal from a
paired person and the per-row remote mask.

* test(orchestration): type the dock owner test params instead of casting
…tablyai#48451)

A chat pane hidden by <Activity> lost its cache listener, so after a window
refocus its fresh read was dropped as stale and the tile stayed a placeholder.
Drop the empty Fork placeholder that sat between Copy and Scroll to top on
responses that offer no Fork, which left a 28px hole in the action row.

Co-authored-by: m4air <[email protected]>
…stablyai#48553)

* perf(source-control): skip unused branch counts on scope-menu history reads

The scope menu lists commits on the branch but never shows ahead, behind or
unpushed counts. A list-only read now cuts at the base without the range
counts and upstream lookups (five Git commands on a configured-upstream
branch). Full branch pages keep their counts.

* perf(source-control): prune retained history requests only on catalog changes

Consumer registration and request pruning shared one effect keyed by the
active workspace, so every workspace switch swept every retained history
request. Registration now follows the slot and pruning follows the worktree
catalog, which still retires a removed worktree's page across owners.

* perf(source-control): wake only the history readers of the published slot

Every mounted history hook, including retained collapsed folder sections,
shared one listener set, so each read's start and settlement woke them all.
Listeners are now kept per slot. Before an evicting insert, pages that
sections still read are marked recent, so unread pages leave the cache first
as before.

* perf(source-control): join a commit's pending compare when it is reselected

Selecting a commit, switching scope and reselecting it before the compare
settled dispatched a second owner read. A read for the same owner and commit
now joins the one in flight; only a ready result is cached, so a failure
still lets Retry or a later selection read again.

* perf(source-control): skip unused scope summaries while the scope menu is closed

The scope bar built the Uncommitted and All changes summaries on every
render, though a closed menu on a picked commit shows neither. Each summary
is now built only for the scope shown or while the menu is open; All changes
keeps its deduplicated count and merge-base line total.

* fix(source-control): address review on scope history follow-ups

- Retire a slot released since the last sweep at the next workspace switch,
  so a closed section's page for a worktree the panel lacks does not wait
  for a catalog change (STA-17983).
- Join an in-flight commit compare only within the owner timeout, so a read
  that never settles cannot absorb every reselect; a replaced read neither
  releases nor overwrites its successor (STA-17985).
- Render the scope menu on changeScopeMenuOpen itself (STA-17986).
…uthenticating proxy (stablyai#48556)

Behind a proxy that answers CONNECT with 407, Electron delivers the 407 as a
response and then destroys it with net::ERR_TUNNEL_CONNECTION_FAILED. The
stable-release HEAD probe settled on that response without reading it or
listening for its errors, and the asset probes used net.fetch HEAD, which
leaves its response the same way, so the startup update check quit the app.

Route every release HEAD through one net.request helper (requestReleaseHead)
that aborts the request once the status is known, using manual redirects for
GitHub release assets and followed redirects for other asset URLs.

Fixes stablyai#47027

Co-authored-by: Claude <[email protected]>
Codex's app-server can sample a hidden fork of the thread (`thread/sample`),
which is how its desktop app makes composer predictions.
…ablyai#42264)

* fix(orchestration): release workers whose exited terminal is gone

A finished worker whose terminal was closed or lost could never be
released: the release request demanded an output record that only the
live terminal could provide, so worker-release answered release_unknown
and startup recovery retried forever, even after Orca proved the exact
process had exited.

A proven exit now settles the release whatever its request state,
rechecking the row the caller saw and recording where the worker's
output lives from what Orca saved while it ran. The exit check now waits
for local terminal startup, trusts only the provider that owns local
terminals, and no longer reads an older identity format or an
unobserved in-process absence as an exit.

Co-authored-by: giloh <[email protected]>

* fix(orchestration): keep the startup wait bounded and the retained receipt current

A startup that never settles no longer collects one reaction per exit
proof: the startup promise gets one subscription per startup, and once
its shared budget is spent later proofs read the cached verdict.

A retained worker-release whose exit proof awaited now reports the row as
it is afterwards, so a keep-open, transfer or release that landed during
the proof is what the receipt says.

* fix(orchestration): prove a local exit against every daemon generation

The routed daemon listing shows one generation per PTY id, so a worker
still running in another generation under the same id read as exited.
Exit proof now lists every generation and still refuses an incomplete
inventory.

* fix(orchestration): refuse exit proof a held daemon could disprove, and settle once

A local daemon held for a newer protocol, or an older one still alive
that no adapter reaches, lists nothing Orca can read; exit proof now
reads that as unverifiable. Of two racing releases only the one that
makes the transition reports released; the other reports already
released and repeats no completion effects. Recording an in-process
exit no longer throws into the provider's listener loop, and an
unreadable database vouches for nothing.

* fix(orchestration): read daemon pid files without blocking the main thread

The exit-proof guard for daemons outside the inventory runs on Electron
main for every local exit check, so it now lists the runtime directory
and reads older pid files with node:fs/promises.

* fix(orchestration): count an unreadable daemon pid record as a daemon that may still run

Exit proof reads "no older daemon" as absence, so only a missing pid
file or a missing process may say the daemon is gone; an unparsable
record or any other read error now keeps the proof declined. Legacy
discovery keeps the lenient check it uses to delete corrupt records.

* fix(orchestration): keep worker release within its own custody and older-daemon doubt

Startup discovery deletes an older daemon's pid record only when the
daemon is provably gone, and a record naming no positive pid counts as
a daemon that may still run, so exit proof keeps declining. The
stopped-worker sweep records the saved conversation when the pane names
none. Joined releases share one check but only one reports released.
A release is keyed and fenced to its own dispatch's custody: after a
transfer it reports ownership_transferred, never the new owner's state,
and a former owner can no longer settle its successor's row.

* test(orchestration): drop the worker's dispatch authority with its terminal

In the runtime a terminal that no longer resolves has no dispatch
authority either; the release fixtures kept it alive, the pairing that
hid stablyai#19166. Every gone-terminal case now runs with both gone.

* fix(orchestration): act on release outcomes only when this custody's write landed

An older daemon's pid record proves its daemon gone only when whole: a
torn record's integer prefix no longer turns another process's absence
into proof. After its awaited observation a requested release goes on
only while its dispatch still owns the row, and reports success, failure
or a Keep open from whether its own write applied, not from the row it
reads back. Recovery charges its attempt to the initiating custody only,
and the sweep's batched release settles an item only for the dispatch
that owns the row now.

* fix(orchestration): keep the owner fence through the installed settle and on losing receipts

The crew notification wrapper over settleWorkerTerminalRelease dropped
the owner argument, so the fence never reached SQL; it now forwards
it. A release that loses its row during a close reports the winner from
the row, whether the close failed transiently, was unconfirmed or threw,
and an owner-fenced unknown write counts only when it landed on this
dispatch's row. A stopped worker that loses custody during its own exit
proof no longer reports the successor's output summary; a lookup by a
former owner keeps its lineage summary. A bare pid record proves a pid
only as plain digits.

* fix(orchestration): keep a fresh release pending when a held close it joined fails transiently

After Keep open and Allow Auto-Close, a new release request can join an
automatic close still in flight. A transient close failure then left
that request's intent in place but answered it as retained; it now
answers release_pending, and recovery finishes it.

* fix(orchestration): name the output record a failed close leaves, not the one it captured

When Keep open drops the output record during a held automatic close
and a fresh release joins it, a failed or unreachable close reported
the record captured before the close. Its pending and unknown receipts
now read the record from the row as it is.

---------

Co-authored-by: Jinjing <[email protected]>
Co-authored-by: giloh <[email protected]>
…own in agent rows (stablyai#48489)

The model chip in sidebar agent rows never shrank (shrink-0 in the full
row, no shrink in the compact row), so at normal sidebar widths the
session title collapsed to one or two characters.

The title and chip now share one flex group, and the title gets a floor
of min(its content width, 60% of the line) so the chip truncates first.
Compact subagent rows get the same floor via AgentChildRowContent.
Adds model-chip fixtures at the narrowest and default sidebar widths.

Fixes stablyai#48460

Co-authored-by: Neil <[email protected]>
…ts so memory stays flat (stablyai#45956)

* perf(terminal): release hidden parked workspace surfaces

* perf(terminal): keep chat overlays mounted when releasing a parked workspace

* perf(terminal): keep workspaces with plugin editor frames mounted

* perf(terminal): release only layouts whose active tabs draw outside them

* perf(terminal): derive release eligibility from identity-stable tab selections

* chore: drop unrelated lockfile churn

* fix(terminal): park restored hidden terminals once every pane has a live PTY

* fix(terminal): re-ask snapshot capability when a restored session revives under its id

* fix(terminal): keep idle admission from mounting unbound restored tabs that can never park

* fix(terminal): keep restored chat-view terminals unparked and drop superseded capability retries

* fix(terminal): coalesce revived-session capability re-asks and keep empty split panes mounted

* fix(terminal): stop the revived re-ask once its own sessions are answered

* fix(tab-bar): keep each group's tab-strip scroll across a released layout

* perf(terminal): ask only revived ids once at a time with bounded retries, index settled and release checks, keep strip scroll through hidden prewarm

* fix(terminal): keep unanswered revived ids on the inventory's slow re-ask and keep tab-strip offsets until their group closes

* fix(terminal): hand unanswered revived ids to the inventory loop and wake it

* fix(terminal): settle unanswered revived ids back to their cached answer instead of polling

* fix(tab-bar): remember a tab strip scrolled to its start

* fix(terminal): clear an id's unknown retry when its revived answer settles

* fix(tab-bar): sync strip navigation with a restored offset before its resize pass

* perf(terminal): skip backoff for answered capability ids and reuse the live local re-probe on tab-strip remount

* docs(terminal): unbound restored tabs now wait until shown

* perf(terminal): key release eligibility on tab membership, drop strip offsets of closed groups, cap capability reuse at the re-probe ceiling

* refactor(terminal): move released-layout eligibility into its own module

* fix(terminal): reuse a recent capability answer only for tab strips returning from a released layout

* fix(terminal): a tab strip returning from a released layout reads the shared capability answer, as a retained strip did

* fix(terminal): settle restored splits by every layout leaf; returning strips reload after a failed capability probe

* perf(terminal): keep a host's shell-capability answer while a released tab strip holds it

* perf(terminal): released strips' hosts survive the capability cache cap; holds are scoped to live groups

* fix(terminal): keep layouts with an open quick-command editor, count revived re-asks per id, never trim live capability owners

* fix(terminal): a returning strip reuses the cached capability answer only for the host it returned with

* fix(terminal): dispose released strips' state with their tab group; keep agent detection's observed hosts across a remount

* test(terminal): hoist the capability read mock so the store import can't initialise it first

* fix(terminal): unbound restored tabs no longer hold a hidden workspace's simulator and browser overlays unmounted

* fix(terminal): a drained activation admission stops holding hidden simulator and browser overlays unmounted

Replaces the per-store-write tab scan: admission marks its restriction drained when only unbound restored tabs remain, so over-cap restrictions keep base behaviour.

* fix(terminal): pruning a closed tab keeps a drained admission's restriction drained

* fix(terminal): a targeted background mount keeps a drained admission's restriction drained

* fix(terminal): a partial reveal keeps a drained admission's restriction drained

* perf(terminal): retire tab-group state only for the workspaces a groups write addressed

* fix(terminal): closing a quick-command dialog re-checks its hidden workspace's layout release

* fix(terminal): a returning strip reuses its held capability answer only on the same host; tidy observed-host and hold lifetimes

- Comparing the held owner key keeps a host-changed return on the normal TTL load.
- Agent detection resolves its group's observed-host set once per group, not per render.
- A capability hold left by a dependency change on a still-mounted strip is dropped when probing turns off.

* chore(terminal): record useDetectedAgents' react-compiler bailouts dropping to 0

* fix(terminal): install tab-group state retirement from the store so the registry doesn't import it (dependency cycle)

* fix(terminal): the folded pane-actions quick-command editor also keeps its workspace's layout mounted while open
* fix(chat): keep bot purpose visible after creation

* fix(chat): full-strength focus ring on the bot card's open controls

* fix(mobile): add the bot card's openBot copy to the phone translations

* chore: keep the lockfile as the base has it
…workspace-projects-update

# Conflicts:
#	src/renderer/src/components/sidebar/workspace-card/identity/worktree-card-header-items.tsx
#	src/renderer/src/components/sidebar/workspace-card/metadata/worktree-card-meta-items.tsx
#	src/renderer/src/components/sidebar/workspace-card/template/card-identity-parts.tsx
#	src/renderer/src/components/sidebar/workspace-card/template/default-workspace-card.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.