The sweep now also deletes Codex rollouts whose workspace folder is gone,
under the same folder rule. A rollout is deleted under every name it has
across the host's Codex homes (sessions and archived_sessions, .jsonl and
.jsonl.zst), only when every copy is idle, its last turn ran in the gone
folder and Codex holds no writer lock for the thread. History link passes,
backfill and resume skip a rollout while it is being deleted, and no longer
leave a dangling symlink when the source is gone.
Fixes#16776
Co-authored-by: Max Hsu <maxmilian@gmail.com>
Once dragged or resized, the floating workspace keeps its saved rect, so
after a monitor or display-scale change it can sit mostly off-screen with
no way back short of clearing app storage. The trigger's right-click menu
(status bar icon or floating button, which stays reachable when the panel
does not) now has "Reset Floating Workspace Position and Size": it clears
the saved bounds and maximize flag, and a mounted panel returns to the
default anchored layout immediately. An unmounted panel picks up the
default layout on its next mount.
Fixes#42721
Co-authored-by: Shaukat Ibrahim <shaukati@amazon.com>
Co-authored-by: Neil <4138956+nwparker@users.noreply.github.com>
The rollout walker warned on every opendir error after its caller's handler
had already classified it, so each pending backfill date without a day folder
logged ENOENT at startup. The index heal logged a stack trace for every pass
on a machine without Codex. Absence is now an empty listing, and a missing
CLI aborts the heal quietly for a later retry, like the Codex model catalog
probe already does.
Co-authored-by: Bensonluo <18586615+Bensonluo@users.noreply.github.com>
Co-authored-by: Pr1p <48266347+Pr1p@users.noreply.github.com>
* feat(editor): git blame for the cursor line
* fix(editor): blame review fixes
Co-authored-by: AnddyAgudelo <andiagudelo@gmail.com>
Co-authored-by: Matt Tuusberg <tuusberg@gmail.com>
Co-authored-by: eric <1034850788@qq.com>
Co-authored-by: 5hseok <110245258+5hseok@users.noreply.github.com>
* fix(editor): blame follows the owning repo, focused pane and visible editor
* fix(editor): blame review fixes for compiler and lint
* fix(editor): blame keeps the status bar steady and resends nothing when HEAD is unchanged
* fix(editor): inactive blame panes do no work; read worktrees through the record accessor
* fix(editor): released blame hides; split panes never take over; local IPC passes knownHeadOid
* fix(editor): blame baseline tracks shallow history, uses source lines, and drops stale results after HEAD moves
* fix(editor): blame hides the old baseline while a HEAD-change reload is pending
* fix(editor): blame baseline is the raw blob; only real HEAD moves drop it
* fix(editor): only a failed focus reload keeps blame
---------
Co-authored-by: AnddyAgudelo <andiagudelo@gmail.com>
Co-authored-by: Matt Tuusberg <tuusberg@gmail.com>
Co-authored-by: eric <1034850788@qq.com>
Co-authored-by: 5hseok <110245258+5hseok@users.noreply.github.com>
Plugin workers run with an allowlisted environment that dropped
XDG_RUNTIME_DIR, DBUS_SESSION_BUS_ADDRESS and SSH_AUTH_SOCK, so git
credential helpers backed by libsecret and ssh-agent could not reach the
user's session. Allowlist these socket pointers and strip Chromium's
`disabled:` bus marker so GLib falls back to $XDG_RUNTIME_DIR/bus.
Fixes#43189
Frames only got the colour tokens and --orca-radius, so a plugin panel could
not match a user's chosen app font. Add --font-sans and --font-mono to the
panel design token allowlist; the existing theme sync already refreshes frames
in place when the root style changes, so a font change now restyles them too.
Native chat visuals already listed both tokens and now get them from the
shared allowlist.
Fixes#42575
Co-authored-by: Claude <noreply@anthropic.com>
* fix(editor): give new files the owning host's line ending, add End of Line setting
A file with no line breaks yet took the ending of the OS the window runs on,
so a Windows client wrote CRLF into files on WSL hosts and Linux SSH hosts.
Such models now adopt the ending of the host that owns the file (LF on Linux
and macOS, CRLF on native Windows), and Settings > General > Editor gains an
End of Line choice (Auto, LF, CRLF). Files with line breaks keep theirs.
Fixes#43216
* fix(editor): resolve paired-host files by endpoint and keep new-file EOL through undo
- Resolve a file's host from its endpoint-relative authority, so a file on a
WSL host or paired server reads that host's OS instead of this client's.
- Only a WSL host's own files fall back to Linux; SSH targets behind it do not.
- Track whether a model was loaded with line breaks, and keep a new model on
its chosen ending through undo, late host reports, and setting changes.
- A model without line breaks adopts the ending of external text written in.
- Read remote OS facts directly so the selector builds no translated strings.
- Docs describe Auto by where the workspace runs (Windows projects in WSL get LF).
* fix(editor): keep undo valid across late EOL conversion; respect text written while unmounted
- Convert typed lines with an undoable pushEOL step instead of a bare setEOL,
whose stale offsets corrupted Undo. Only a new choice (late host report or
setting change) converts multiline text, so Undo of the conversion sticks.
- Record outside text with line breaks on the model from the content-sync
paths, so a remounted editor never converts text the user did not type.
* fix(editor): never convert a new file's line endings once its lines are saved
A clean buffer with line breaks matches the file on disk, so it is treated as
an existing file: changing End of Line later no longer converts it, marks it
dirty, and lets autosave rewrite it. Only typed, unsaved lines are converted.
* fix(editor): treat a new file as saved only when its bytes match disk
The dirty flag ignores Markdown trailing whitespace, so a clean flag did not
prove typed line breaks were saved. Compare the model text with the buffer's
last known disk signature instead. Also type the line-ending state by its
model shape for the anti-slop lint, localize the LF/CRLF labels, and note in
the docs that autosaved lines keep their ending if the host reports later.
* fix(editor): only set a new file's line ending while it has at most one line
Converting text that already has line breaks kept running into cases where
saved or in-flight lines were rewritten. The editor now sets the ending only
while the model has at most one line, at mount and whenever the choice
changes, and re-applies it when Undo returns to one line. Text with line
breaks is never converted. This removes the multi-line conversion, its undo
step, the per-model state and the disk-signature check.
* fix(editor): keep an existing file's line ending after it is emptied
A model that already had line breaks when the editor mounted, or got them
from a programmatic or outside write, is flagged as an existing file and
never has its ending set again, so emptying and retyping it keeps the file's
ending. Line breaks the user typed do not set the flag, so Undo back to one
line still restores the chosen ending. Scope the docs sentence on outside text.
* fix(editor): carry a buffer's line ending through model rekeys and renames
A replacement model was built from text and language alone, so an emptied
or one-line existing file lost its ending and existing-file status. The rekey
carry now copies both to the model it creates. A rename remounts the editor
under a new view id, so the rename records the old model and the remount
carries an unsaved draft the same way. Existing models at the destination are
never touched.
* fix(editor): hand a renamed buffer's line ending over as a snapshot
The rename handoff stored the old model's address, which model cleanup could
dispose before the renamed tab mounted, and records were never cleared. The
rename now snapshots { ending, existing-file } from the old model, only for a
tab with an unsaved draft, keyed by the new tab id. The tab-close cleanup
drops it, and the remount applies it only to the model it builds from the
draft. Same-view re-keys still carry from the live model.
* feat(wsl-move): let users collapse and hide moved-project entries
The sidebar's moved-to-WSL list now has a collapsible header (persisted),
and an entry without local chats can be hidden (persisted). Undo stays
reachable from the project's menu on the WSL host; an entry whose host no
longer lists the project always shows, since it is the only way back.
Fixes#42628
* fix(wsl-move): match Undo to the clicked host row, keep list fields desktop-only, unhide on Undo
- The workspace menu's Undo follows the clicked row's own host, not the first
registration of a repo id listed on several hosts.
- Both list fields are pairing-local, so paired reads and writes never carry
them and a host's strict ui.set never sees them.
- Undo forgets its projects' hidden entries in main, so moving one again to
the same distro lists it even if the next startup read fails.
- Header uses text-2xs and the chevron honors reduced motion.
Refs #42628
* fix(wsl-move): resolve folder hosts alike for hide and Undo, prune only on the desktop
- A folder's host comes from its record, falling back to its project group's
host, in both the hide rule and the right-click Undo.
- The startup prune is skipped on a web client, whose moved list is always
empty.
Refs #42628
* fix(wsl-move): never let unhiding moved entries block the undo reload
Refs #42628
* fix(wsl-move): read folder records through the catalog selector
Refs #42628
* fix(native-chat): point a refused WSL-folder chat at WSL hosts with a one-click path
When a chat is refused because a project opened from Windows runs under WSL,
the toast and chat notice now offer "Run <distro> as a host" (turns on the
setting, adds the distro, then opens the move for that project) or "Move to
<distro> host…" when the host already exists. The CLI refusal keeps its code
and message and adds data.nextSteps (and wslDistro) pointing at the same path.
All of it shows only while this desktop can add WSL hosts.
Refs #42126
* fix(native-chat): guard the WSL host setup and match the CLI hint to the app
- One setup per distro (case-insensitive) shared by the toast and the chat
notice; setups run one at a time so a failed add always restores the setting
it read. The notice button shows Setting up… and is disabled meanwhile.
- The CLI hint now uses the same gate as the app: WSL host service present,
new work accepted, server files shipped, and no Windows-drive folder (the
drive check moved to shared code). Its steps skip what is already done:
with the host added and the setting on it says only Move to <distro> host….
- Tests for the toast wording and wiring, the resume-in-chat toast, the
notice's WSL gate, and repeated or concurrent clicks.
* fix(wsl-hosts): share one per-distro run and queue between the add-project offer and chat setups
runWslDistroAsHost now joins a run already in flight for the same distro and
queues runs for other distros, so the add-project offer and a chat refusal's
setup can never interleave their setting restores.
* fix(wsl-hosts): run host setups for different distros side by side
A hung add or deploy for one distro no longer holds setups for every other
distro. Runs in flight share the setting instead: the first records it, and
the last to finish puts it back only if none of them added its host. A run
that starts while that restore is saving waits for it before reading the
setting. Same-distro calls still join the run in flight.
* fix(wsl-hosts): import GlobalSettings from its new settings path
* fix(wsl-hosts): start a new WSL host on this desktop's agent permission
A newly added WSL host kept the product default, Full access, even when
this desktop chose otherwise, so Claude workers on it launched with
--dangerously-skip-permissions and stopped on Claude's one-time Bypass
Permissions warning. Add now copies the local choice onto a host still at
the default, and the readiness failure names that warning and the setting.
Refs #42126
* fix(wsl-hosts): seed a new host's permission in one conditional host write
The read-then-write seed could overwrite a choice another client saved on
the host in between. The host now applies a capability-gated
seed-permission mutation inside its own settings write, only while it is
still at the product default. The blocked-message test replays the
captured Claude transcript.
Refs #42126
* fix(wsl-hosts): keep a synchronously throwing seed from failing Add
Refs #42126
* refactor(main): organize agent session and tab lifecycle owners
* fix(ci): carry moved backend test and mobile routing metadata
* test: retire copy assertions in headless notification test
* feat(agent): one agent picker card with agent tabs on top
Dropdown pickers show agent icon tabs, then search, the agent's models with More models, one effort and Fast row, and an Open in Chat | CLI switch. The + menu opens the same card without tabs, followed by the prompt and launch buttons. Settings and automation forms keep Permissions and Arguments as fields below the picker.
* fix(agent): address picker review findings
- Release the dropdown pane's picked setup when it closes, so a reopened
picker starts from what the Permissions/Arguments fields saved.
- Skip the trigger summary with a trigger label and memoize it on the draft.
- Remove Arguments chips from the text being typed.
- List Blank Terminal and other non-agent rows in search and reach them
with ArrowDown.
- A query naming an agent lists the agent first and picks it without a model.
- Agent tabs: roving tabindex, arrow keys, Enter/Space, Shift+Tab from search.
- Modern automations show one Arguments field.
* fix(agent): keep automation extra arguments supplemental and retranslate the trigger summary
- Restore the automation editor's supplemental Extra agent arguments field as main had it,
so saved extras stay on top of inherited host arguments.
- Recompute the memoized trigger summary when the UI language changes.
* fix(agent): keep the picker's effort and Fast row on one line
Raise the agent dropdown's minimum width to 26rem, which fits Codex's widest
measured effort row plus Fast (404px), and cap it at the available width
with 8px collision padding so it still fits narrow windows.
* fix(agent): key the picker summary on UI language without a lint suppression
* fix(agent): name the model in the closed picker trigger
Before a host's listing loads, resolve the trigger's model label from the cached host listing,
then the release's catalog, then Claude's id-based listing name, and the id only last.
* fix(agent): name live-listed models in the closed trigger and fit the text-recipe effort row
- The closed trigger reads the agent's last listing an open picker showed, so models only the
live listing names (Codex gpt-6-astra) keep their label and effort.
- Text actions label their inherit-effort choice Default, with the inherited level as its tooltip,
so the row fits one line.
* fix(agent): name a closed trigger's model from the user's pick, and keep the inherit-effort name
- Replace the per-host listing cache with a bounded record of picked models, written only at
pick time and keyed by agent, host and model; mounted closed triggers re-render when it changes.
- The text action's Default effort keeps "Same as default · <level>" as its accessible name.
* perf(agent): re-render only the pickers showing a newly picked model
Each picker subscribes to its own agent, host and model's picked row; an unchanged write is
skipped, and the subscription is hoisted to module scope.
* fix(agent-picker): address CodeRabbit review threads
- Dropdown pane derives from the controlled value when there is no form source, so a kept setup no longer shows a stale choice
- Model search drops setup rows that repeat a listed model
- Agent-only picker search matches extra choices (e.g. Custom command)
* fix(agent): label the chat/CLI switch "Open as"
Without --worktree, a reuse start resolved the caller's workspace and was refused with terminal_worktree_mismatch whenever the terminal lived elsewhere. An explicit --worktree keeps today's behaviour, including the refusal.
Clicking a legend entry in the Claude, Codex, and Muse daily usage charts
now hides or shows that token type, and the bars rescale to the visible
types across the ten days shown. At least one type always stays visible.
The Claude and Codex charts share a new UsageDailyTokenChart component.
Codex and Muse reasoning tokens are no longer double counted in the daily
bars, and the Output tooltip keeps the full output count.
Fixes#43222
Co-authored-by: Neil <neil@stably.ai>
* feat(cli): list and read agents by their Orca session ID with orca agent list/show/read
Live terminal and chat agents are listed, shown and read by Orca session ID on the selected host; sleeping native agents can be shown and read by ID. Chat reads walk the chat's own bounded history pages back to the latest /clear.
* fix(cli): agent show names a live agent and its last reply as agent list does; help says sleeping terminal agents aren't listed yet
* Bound agent reads and scoped workspace inventories
* fix(cli): agent read carries the conversation's state, so a running chat turn reads as working
agent read now reports the same state agent list/show report, from the same status
rows, in text (a leading state line) and --json (state). A turn still running no
longer reads like a finished chat with no reply.
* Fix agent conversation read consistency and limits
* fix(cli): agent read derives its state from the history it returns
agent read no longer samples live status. A chat's state comes from the
journal snapshot that produced its entries: an open turn or an accepted
send with no turn yet reads working; done needs an explicitly successful
latest turn whose reply is the newest entry shown. A terminal agent's
state comes from the provider turn markers in the same transcript bytes:
a prompt with no end after it reads working, done needs an explicit end
(Claude stop_reason, Codex task_complete) with the reply as the newest
entry. Anything else omits state. The journal lane wait added for the
live state is removed.
* Tighten agent read snapshot evidence
* Keep agent read done for finished turns
A dead owner now only voids working. Codex completion is proved by the turn's own
decoded reply rather than row adjacency, and Claude's by its end row's own reply,
without needing the prompt inside the read window.
* Adapt agent commands to reorganized shared contracts
* Warn on incomplete agent lists, read sleeping transcript paths, and retry unanswered provider id lookups
* Follow main's moved shared modules
* Bound live transcript recovery to conversation panes
* Show sleeping terminal agents where agent list lists them
agent list lists a finished terminal agent while its pane sleeps, since main keeps
that status row. agent show now counts the same sleeping place, and the help says
which sleeping agents are listed. Messaging still ignores sleeping panes.
* Clarify sleeping agent discovery and messaging help
* Say sleeping terminal agents can't be messaged and note the WSL read exception
* Follow the moved CLI argument boundary after rebasing
* Show plain Orca session IDs in agent command help
* Expect plain UUID Orca session IDs in the transcript source test
* Follow main's moved shared modules after rebasing
* Name Orca session IDs <id> in agent help, since older IDs keep their agent prefix
* Follow main's moved agent-session modules after rebasing
Drop the address field's 3px focus ring for a hairline border, size the
toolbar buttons like other pane headers (24px, 14px muted icons), and
replace the Annotate split button with one icon. Grab and Draw move to
the icon's right-click menu and the top of the ⋯ menu.
* feat(workspace-cleanup): delete chat history of deleted workspaces
Adds an off-by-default host setting. When on, each cleanup run deletes agent
transcripts whose Orca workspace folder no longer exists, through AI Vault's
validated delete, and reports the count and space in the run's activity.
* fix(workspace-cleanup): keep chat history of folders Orca never made a workspace
Skip workspace parents that are or hold a project checkout, protect folders
holding a still-listed workspace in any spelling, re-check each folder right
before deleting, batch scope paths, count companion bytes, sweep chats at most
every 6 hours on hourly runs, and refresh the report when the switch changes.
* fix(workspace-cleanup): treat only nested Orca workspace folders as deletable
Look for deleted workspaces only in <root>/<repo> of nested layouts, protect
renamed workspaces' earlier paths, folder workspaces and case variants, use the
recorded cwd only, re-check the parent and the setting before each deletion.
* fix(workspace-cleanup): protect flat workspaces and per-host rows from the chat sweep
Drop parents inside a still-listed workspace, also read this host's own
worktree rows, record a run only when a rule or a due chat sweep has work,
and cache per-folder protection with precomputed matchers.
* fix(workspace-cleanup): find deleted workspace folders by filesystem identity
Walk up from the recorded cwd to the deepest existing folder and require it to
be, by device and inode, an Orca <root>/<repo> folder without .git; key
protected paths the same way, so symlinks, case and Unicode spellings are the
OS's call. A failed history scan no longer fails the run, and an open session
history list refreshes after chats are deleted.
* fix(workspace-cleanup): close the remaining chat sweep gaps
Walk physical ancestors of a symlinked parent, skip a gone folder with a
lookalike sibling (parsers trim cwd), re-read listed paths after the scan,
never touch WSL paths, use bigint file identity, and report the next run
that actually sweeps when only chat history is on.
* fix(workspace-cleanup): keep chats resumed elsewhere and follow dangling listed links
Before deleting, re-read each transcript: skip it if it was written in the last
hour or its last recorded cwd is outside the gone folder (a chat resumed at a
live workspace's root). Listed symlinks protect their targets, and parents are
re-checked against the listed paths read after the scan.
* fix(workspace-cleanup): sweep only Claude chats, whose every message records its cwd
Keep a transcript unless its latest recorded cwd, read back past large blobs,
is still in the gone folder; agents that record cwd once can't prove a chat
wasn't resumed elsewhere. Follow symlinks along listed paths, dangling ones too.
* fix(workspace-cleanup): read only a record's own cwd and check each chat right before removal
Parse whole JSONL records backwards and use their top-level cwd, not tool
arguments; run the setting, folder, idle and last-cwd checks right before each
transcript's removal; resolve relative listed links from their real folder.
* fix(workspace-cleanup): protect subagent transcripts and re-read listed rows per folder
Check a chat's companion transcripts with the same idle and last-cwd rules,
read Orca's listed rows right before each gone folder's deletion, keep '..'
in listed link targets for the OS to resolve, and say Claude Code in the copy.
* fix(workspace-cleanup): fold names fully, keep POSIX repo names, re-stat rows only on change
Fold case with upper then lower (final sigma), take the repo name with this
host's basename, re-read listed rows per folder only when the catalog changed,
and sweep chats even when rule evaluation fails.
* fix(workspace-cleanup): re-check the chat itself after walking its companions
A chat resumed while its subagent transcripts were being checked has a new size
or mtime, so it is kept.
* chore(workspace-cleanup): sync localization catalogs and drop a cast in the cwd reader
* fix(workspace-cleanup): re-check every subagent transcript after the companion walk
Record each companion's version and require the same set, unchanged, before
approving deletion; skip the symlink-based sweep test on Windows.
* fix(workspace-cleanup): protect chats by what listed paths pass through, checked per chat
Each listed path claims the (existing folder, name) pairs along it, so a gone
folder holding one stays protected whether that path exists right now or not;
claims are re-read before every removal, and an unfollowable symlink chain
stops the sweep.
* fix(workspace-cleanup): an unreadable folder or a non-directory leaves the sweep fail-closed or ignored
A stat error other than absence while reading listed paths marks the snapshot
incomplete; ENOTDIR counts as absence instead of stopping every sweep.
* fix(workspace-cleanup): check row protection last before each removal and allow exactly eight links
Run the slow transcript checks first so the folder and listed-row checks are
the freshest before the rm, and resolve the eighth link instead of treating
it as an unfollowable chain.
* chore(workspace-cleanup): follow the shared settings and execution-host module moves
* chore(workspace-cleanup): mark an unreadable identity as undefined, not a string literal
* fix(workspace-cleanup): re-read protection when a listed symlink is retargeted
Listed paths that go through a symlink record where they led; a different
target before a removal re-reads every claim.
* fix(native-chat): fold Claude's image-source row into the prompt it follows
* refactor(native-chat): group desktop image units with the shared folding rule
* fix(mobile): take the send boundary from image-folded rows
* refactor(native-chat): share the image unit prompt lookup
* fix(orchestration): name a run's mail by its coordinator
Mail sent from a run's mailbox (run:<id>) was saved with an empty sender party, so its card showed "an agent" with a fallback icon. The sender now resolves to the run's coordinator chat or terminal, under the binding the message was sent from.
* refactor(orchestration): answers from a run reuse the shared run sender
* fix(orchestration): a run's mixed-age mail batch resolves from its oldest message
A Session History row from the user's own OpenCode store sent no account request, so the host fell back to the selected managed account, where OpenCode 2's --session silently creates an empty session with the same id. The resume now names the System store, and daemon spawns keep that choice for the private-server check.
The xterm helper's focusin now rebuilds the macOS input context when focus arrives from any text field, or after the page lost focus (a browser guest or another app) since the last terminal arrival. Refreshes for one helper within a frame share one refocus.
Fixes#23864
Co-authored-by: Fanzzzd <fanzzzd@outlook.com>
* fix(browser): stop refusing agent input while Orca's window is briefly busy
* docs(browser): say which focus refusals are safe to retry
* refactor(browser): drop the focus refusal phase that cannot happen
* fix(watchers): keep home-folder watches out of other apps' macOS data
A folder workspace rooted at the home directory subscribed to all of
~/Library. Parcel stats every changed path, and a stat inside another
app's container or group container makes macOS ask whether Orca may
access data from other apps, again for each write that app makes.
Exclude ~/Library from macOS watch roots that contain it, and only the
Containers and Group Containers stores when ~/Library itself is the root.
Ordinary project roots keep the same options.
* fix(watchers): exclude protected Library stores against the canonical watched root
Review follow-up. Decide the exclusion in the watcher supervisor, after the
root is resolved to the identity Parcel actually subscribes, and resolve
each home's Library the same way so symlinked or case-variant homes match.
Pass the paths as Parcel ignorePaths so a home containing glob characters
is still excluded literally, and protect both HOME and the account's own
home when a host runs with HOME pointed at a separate profile.
Callers go back to their previous options; every watcher gets this through
the supervisor.
* fix(watchers): fall back to no exclusion when home or realpath lookups fail
Read HOME, the account home and realpath inside the guarded lookup, as
root resolution does, so hosts or harnesses without them keep the
previous watch options.
* fix(watchers): decide Library exclusions in the watcher process
Resolve the protected Library paths where Parcel subscribes, in the
watcher child, so the realpath lookups stay off Electron main and the
supervisor is unchanged. Tests write fixture revisions instead of
wall-clock values.
* fix(watchers): apply Library exclusions where the watcher receives a subscribe
Keeps the existing Parcel options cast untouched.
* fix(watchers): count only real parent steps as outside the watched root
A home named like '..profile' inside the watched root is still a
descendant, so its Library must be excluded too.
* test(watchers): make simulated macOS paths portable
Tools like Expo, Claude and Node's spawn run BROWSER as a program, so the
"orca open-url --url %s" template failed with ENOENT. Point BROWSER at the
Orca CLI launcher this host already puts on PATH, and let the CLI treat a
lone http(s) URL as open-url.
Co-authored-by: fancive <10972140+fancive@users.noreply.github.com>
The copy took --standalone from the opencode2 row's launch command whenever the
history row said opencode2. That label never tells which OpenCode the opencode
binary is: the chat tab route always named opencode2, and OpenCode 2 copies 1.x
sessions into session_v2. OpenCode 1 rejects the flag and prints its usage.
The copy now opens with its own CLI's launch settings. prepareOpenCodePtyLaunch
already adds --standalone for OpenCode 2 when a private server is needed.
Fixes#42223
On Windows, path.relative() returns an absolute path when the plugin root
and the file are on different drives or UNC roots. The plugin test hooks
and panel-check stack locator only treated '..'-prefixed results as
outside the plugin, so Orca's bundled testing runtime was resolved as a
plugin file and panel issues pointed at Orca frames.
Add a shared pathInsidePluginRoot helper (also backing isInsidePluginRoot)
that rejects empty, '..', '..<sep>' and absolute relative paths, use it at
both call sites, regenerate orca-test-hooks.mjs, and add win32-mocked
regression tests.
Fixes#43195
Co-authored-by: alaya <21375302+AlayaElla@users.noreply.github.com>
Co-authored-by: Neil <neil@stably.ai>
OpenCode /models, /help and similar commands open a dialog the Chat
view cannot show, and later chat sends were typed into it. Flag the
commands that open a TUI screen (OpenCode, Codex pickers, OMP's
in-Terminal commands) and switch the terminal-backed chat to Terminal
once the command is submitted, on desktop and mobile.
* test(editor): keep a draft whose workspace disappeared while closed
* fix(editor): keep unsaved drafts of workspaces gone at startup and offer Reopen
* fix(editor): settle recovered stranded drafts by identity; keep them over a clean returning tab
* fix(editor): reopen stranded drafts as dirty untitled tabs in the active workspace
* fix(editor): stamp the recovered tab's empty baseline and retry stranded drafts on host changes
* refactor(session): move the editor session builder to its own file
* fix(editor): retry stranded drafts after any dropped trigger, including paired-server SSH changes
* Revert "refactor(session): move the editor session builder to its own file"
This reverts commit 47d3a79eb8.
* refactor(session): move the terminal session builders to their own file
* refactor(session): keep terminal builders in place; move only the tab sanitizer
* fix(editor): don't flag a recovered draft's own placeholder create as a change on disk
* fix(editor): retry stranded drafts when the active workspace's host changes
* fix(accounts): restart busy Claude sessions at once when the account is switched
A restart accepted after a Claude account switch waited for each busy
session's turn to end, so long turns, subagents and background shells
kept spending the old account until it hit its limit. Accepted restarts
now interrupt the session and resume it on the new account right away,
the same as Codex.
* fix(accounts): say in the restart setting that busy sessions stop their work
* fix(accounts): keep each tab's queued Claude restart selection local to that tab
* fix(accounts): run a queued account restart once its pane's terminal attaches
* fix(accounts): wake queued restarts from the leaf bind path too
* test: mark the restart mount-race test's stub casts as safe
* fix(accounts): run the queued-restart wake without a new React hook
* Wake queued account restarts when mounted ownership ends
* Move or report every running Claude terminal on an account switch
A switch only saw panes whose hook status row said Claude, so Agent Teams panes (an `Orca` foreground), panes with hooks off, and panes whose row was dismissed were skipped without a word. The scan now also finds Claude from a saved session record, the pane's own process read, or a one-pane tab's launch; resumes from the saved record when the row is gone; and, when nothing on the outgoing account moves, warns about running sessions Orca can't resume that may still be on it, with Review.
Tracked in STA-15061.
Co-authored-by: Claudio <claudiofernandopinto@gmail.com>
* Keep Claude account restart discovery aligned with saved sessions
* Restart WSL Claude panes only with live evidence
* Keep the original conversation pane during account restart
* Keep retrying account restarts in their conversation pane
* Place the restart fixture cast rationale on its assertion
---------
Co-authored-by: Claudio <claudiofernandopinto@gmail.com>
* fix(native-chat): send other agents' mail as a pointer and let the person approve a denied action
Another agent's orchestration message reached a structured chat's agent as
ordinary user input, so Codex's automatic reviewer counted a coordinator's
words as the user's authorization. The chat card still shows the whole
message, labeled with its sender; the agent is now sent Orca's existing
pointer at `check`, so the content arrives as tool output. Mail stays unread
until `check` takes it, and a new coordinator is pointed at mail the old one
never read.
Codex automatic-review denials now show as a chat row with the reviewer's
reason and an "Approve once" button, which only this computer's own Orca
window may press; it uses Codex's thread/approveGuardianDeniedAction and
records the approval in the chat.
Tracked in STA-15406.
* fix(orchestration): wake any new mailbox owner after re-pointing stale mail
* fix(native-chat): settle check:changed for pointer mail and denial approval
Move the Codex approval and mobile review copy into their own modules, reuse the shared record guard, and update the tests that encoded whole-mail consumption to pointer delivery with mail read at check.
* style: format review notice copy
* fix(native-chat): hold accepted mail while custody is unreadable and show the whole denied action
* fix(orchestration): hold in-doubt mail while custody is unreadable and wake the new owner after a send-time handoff
* test(orchestration): keep crew reads off a chat host another test file left installed