* fix(codex): keep the reset time when a usage limit rejects before the report reaches 100%
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(codex): read the usage-limit error code from the renamed error info
* fix(codex): skip windows that already reset when blaming a nearly spent one
---------
Co-authored-by: moncha3 <moncha3@users.noreply.github.com>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Claude records a prompt it absorbs mid-turn only as a queued_command
attachment whose images are inline base64 with no path. The decoder
dropped those images, so an image-only send had no transcript row to
match and its pending bubble stayed at the bottom of the chat.
Decode queued inline images as data URLs. Pathless image-only rows
cannot name their send, so each retires one delivered image-only send
after its boundary, oldest first, and pruning hands the claimed row to
the remaining sends so none reuses it. Failed or uncertain writes never
claim one. Keep inline image bytes out of handoff and worker text.
Co-authored-by: Xulin Wu <wuxulin@bytedance.com>
* feat(appearance): let app chrome follow the terminal theme
Add an "App Chrome Appearance" setting (Default / Match Terminal) next to
Left Sidebar Appearance. In match-terminal mode the terminal theme's
background/foreground are written as document-root CSS variables
(--bg-titlebar, --background/--card/--popover/..., both sidebar token
families), so the tab strip, status bar, side panels, full-page views and
popovers all follow the terminal instead of the app theme. Left-sidebar
modes still win because they scope their own variables below the root.
The terminal color pair and token derivation move into
terminal-surface-colors.ts and are shared with the sidebar resolver.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(status-bar): configurable usage format template
Add Settings → Appearance → Status Bar → "Usage format": a template that
replaces the built-in per-provider usage text when non-empty. Placeholders
cover {provider}, {plan}, the 5h/7d/fable/30d windows as percentages
(following Used/Remaining), {x.reset} countdowns, {x.resetAt} clock times
and Gemini {buckets}; "[...]" groups drop out when a placeholder inside is
empty so one template works across providers with different windows.
Whitespace is rendered as authored (whitespace-pre).
Persisted as PersistedUIState.statusBarUsageFormat with a byProvider
override map reserved for later; the RPC UI-update schema gains the
optional field.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore(appearance): document touched functions; surface usage format in search
Add one-line JSDoc to every function this branch adds or edits so the
review docstring gate passes. Include the usage-format entry in the
Status Bar section's search match so searching "template" or
"placeholder" no longer hides the parent row, and mention popovers in
the App Chrome Appearance descriptions since the setting styles them.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* feat(appearance): let file editors follow the terminal theme in match-terminal mode
With App Chrome Appearance = Match Terminal, the tab strip, status bar and
side panels took the terminal palette but every file pane kept the stock app
theme: Monaco (code, plain text, diffs, notebooks, markdown source) was
hard-wired to `vs`/`vs-dark`, and the markdown preview / rich editor painted
the fixed `--editor-surface` with GitHub-colored hljs tokens.
- `terminal-editor-palette.ts` derives an editor palette from the active
terminal theme (background/foreground/cursor/selection + syntax roles mapped
onto the ANSI slots) and builds a Monaco theme (`orca-terminal`) from it;
light/dark is rated by the terminal background, so a light terminal theme
under a dark OS setting still gets light styling.
- match-terminal chrome variables now include `--editor-surface` and
`--syntax-*`; the hljs stylesheets read those ahead of their defaults.
- `useEditorSurfaceAppearance` / `useMonacoEditorTheme` replace the inline
`isDark ? 'vs-dark' : 'vs'` computations; the diff-section chain passes the
Monaco theme name instead of a dark flag.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbWbChctXeMvaR2zdbFY99
(cherry picked from commit dc85fadee0a2664adbf55a49dd3c97c9b10fc111)
* fix(status-bar): honor the usage template in compact usage mode
ProviderSegment only rendered a user template on the verbose branch, so
switching usage mode to compact silently fell back to the built-in
tightest-window label. A non-empty template now replaces the built-in
text in both modes; the mini bar stays verbose-only.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbWbChctXeMvaR2zdbFY99
* docs(appearance): document remaining functions touched by the diff
Adds one-line JSDoc to the editor surfaces, diff viewers, palette helpers
and UI-slice entry points this branch modifies so the diff's docstring
coverage clears the pre-merge threshold.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbWbChctXeMvaR2zdbFY99
* fix(editor): keep Monaco theme registration and preview clock out of render
The upgraded oxlint React rules flag reassigning a module variable during
render and calling Date.now() inside useMemo. Move the terminal Monaco
theme's signature cache into ensureTerminalMonacoTheme() and pin the
usage-format preview clock with a lazy useState initializer.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VbWbChctXeMvaR2zdbFY99
* localization: complete Brazilian Portuguese catalogs
* fix(i18n): localize remaining hard-coded UI copy and complete Simplified Chinese coverage
Route the English literals and shared English labels that ignored the UI
language through the existing catalog: host labels, plugin cards and consent,
CLI and SSH errors, the checks pill, browser profile labels, shortcut groups,
app and context menus, and the macOS computer-use permission window. Shared
labels are translated where they render, so src/shared stays English for
mobile, CLI and older paired hosts.
- en.json gains 314 keys bootstrapped from inline fallbacks; four duplicate
"Unassigned" keys collapse into translateUnassignedLabel()
- zh gains 337 entries and refreshes existing ones; the other nine locales get
the newly extracted keys
- joinSentences ends a CJK sentence that has no final stop with 。 before the
next one
- the desktop caller passes the computer-use helper its locale; orcad and the
CLI stay Electron-free
- three files the copy pushed past max-lines each shed a focused module
* test: expect labeled roles in the editable context menu
The edit menu now passes explicit Cut, Copy and Select All labels so the roles render in the UI language; the upstream template assertion still expected bare roles.
* fix(i18n): key translated memos on the UI language without bare void reads
Upstream's React Compiler ratchet rejects `void language;`, which the compiler drops, and treats a react-hooks lint suppression as a bailout. The two host-label hooks now pass the language through readUiLanguageMemoInput so it stays a real memo input. ContextualTourOverlay drops its language key: getContextualTour is a static lookup, and step copy is localized at render.
* fix(i18n): translate editor theme settings
* Fix reactive localization and catalog extraction
* Fix combined localization validation
* Localize nested import failures and refine catalogs
* Handle older nested import responses
* Fix localized merge prompts and quota windows
* Address localization and runtime review feedback
* Keep host search and configuration examples usable
* Preserve configured names in add-project host selector
* Preserve host label origins across views
* Use localized fallback for missing local host
* Preserve custom names and refresh localized host labels
* Refresh task host labels without repeating searches
* Preserve Portuguese mobile tab translations
* Address localization review feedback
* fix(status-bar): import window visibility interval from its new path (#40951)
---------
Co-authored-by: lisi <lisi.see@bytedance.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: marlico77 <marlonssoficial@gmail.com>
Co-authored-by: x-Ai <5061489+x-Ai@users.noreply.github.com>
Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
* test(ephemeral-vm): make VM runtime store suites pass on Windows
Drop the process.platform=linux stubs (they made secure writes fsync a
read-only handle, EPERM on Windows, and spawned recipes POSIX-style) and
remove temp dirs through one allSettled removeTree helper so Windows ACL
work cannot fail teardown with EBUSY.
* test: restore the rmSync import dropped by the merge from main
* fix(recipes): warn which credentials recipe scripts inherit, add opt-in passEnv allowlist
Recipe lifecycle scripts run locally with Orca's full environment. Keep that
default (provider CLIs and git auth rely on it) but name the credential-like
variables in Settings and let a recipe opt into passEnv so only listed
variables plus a safe base set reach its scripts.
* fix(recipes): fail closed on a malformed passEnv instead of dropping the recipe
Dropping the recipe let a stored snapshot or a same-id plugin recipe run with
the full environment. Keep it with an empty allowlist and a diagnostic, match
base variable names exactly outside Windows, and make the warning copy apply
to any recipe source.
* fix(recipes): import user-agent-platform from its new app-shell location
* fix(activity): keep stale monitoring panes visible
* fix(activity): prioritize stale state over old previews
* fix(activity): share the card's row state so any stale live-PTY pane stays listed
The monitoring-only fallback missed stale foreground working panes, which also
vanished from Activity while the card showed No recent update. Activity and the
card now resolve state through one resolveAgentRowState.
* fix(activity): keep stale blocked panes as attention and unverifiable rows out of running work
---------
Co-authored-by: QiongyinZhang <53255639+qioyaz@users.noreply.github.com>
* fix(automations): don't start or time out runs across system sleep
- Agent startup ceiling now measures on an awake clock that excludes
suspend->resume intervals, so a Mac that sleeps mid-start no longer
expires the start (outcome "ceiling") the moment it wakes.
- Scheduled runs (incl. missed-run catch-up) wait until the system is not
suspended and has been awake 2 min since its last wake, so a macOS dark
wake no longer starts a run that the next sleep cuts off. A wall-clock
jump the monotonic clock did not see also counts as a wake.
- Chat automation runs whose prompt was rejected because the agent never
started now say so instead of "could not confirm this run's prompt".
* fix(automations): detect sleep without trusting the monotonic counter
- The awake clock no longer assumes performance.now stops in sleep: on
macOS (mach_continuous_time) and Windows (QPC) Node's counter counts it.
It now samples itself on a 20s one-shot heartbeat while in use and treats
a 60s+ gap between samples (counter or wall) as a stretch the process did
not run, so orcad, which has no power events, still sees dark wakes, and
a late resume can't clear a suspension early.
- The settle window and startup ceiling measure monotonic elapsed time, so
a backward wall-clock correction no longer extends them.
- An occurrence the wake gate holds while still inside its grace stays
eligible on the settled tick, so the gate's own delay can't turn a run
into skipped_missed (e.g. zero-grace 09:00 run, wake at 09:00:01).
- Tests cover both counter models, run a scheduler tick inside the dark
wake, and drive the startup ceiling through the production default clock.
* fix(automations): revoke wake holds on edits and idle the clock when unused
- A wake-gate hold is now bound to the definition it was granted under
(updatedAt plus schedule, grace, enabled and missed-run policy), so a
grace change, or a pause and re-enable while the gate is closed, falls
back to the current definition's grace instead of dispatching an
occurrence the user no longer allows. An unchanged occurrence still
stays eligible across repeated short wakes.
- The scheduler no longer reads the awake clock while no automation is
enabled, so the clock's heartbeat idles out instead of firing three
times a minute for the life of the process; the next tick after one is
enabled restarts it.
* fix(automations): bind wake holds to eligibility, not run bookkeeping
- A wake-gate hold no longer includes the automation's updatedAt, which
run completion, usage and terminal-retention writes move on an
unchanged definition. A zero-grace occurrence held at 09:01:01 now
still dispatches when an earlier run completes during the hold,
instead of becoming skipped_missed.
- The hold is bound to the fields that decide eligibility (schedule,
timezone, grace, missed-run policy, enabled) plus an in-memory count
of pause/re-enable transitions kept by the store, so a pause and
re-enable still revokes it, even one in the same millisecond that
restores every field. A rename keeps the hold.
* test(automations): align startup-clock tests with the awake clock
- The Codex start-deadline test now fakes performance alongside Date
and gives each test its own awake clock. The ceiling runs on the
awake clock, which read real performance and, as a process-wide
singleton, lost its fake heartbeat at useRealTimers, so the second
test's ten-minute jump read as a sleep and never expired the start.
- The coordinator-mail observation clock gives each fake-time window
its own production awake clock and counts that clock's heartbeat, so
the closed-database drain still requires every other timer to end
instead of failing on the heartbeat, depending on which test created
the shared clock first.
* test(automations): express wake-settle times in local time so CI's UTC passes
The scheduler reads BYHOUR in process-local time; the Pacific offsets only
matched on a Pacific machine.
New profiles default artifactSharingEnabled to true. Existing users are
unchanged: stored settings win over defaults on load, and a stored profile
saved before the key existed loads as false instead of inheriting the new
default. The gate still requires an explicit true, sign-in is still
required, and web clients still mirror the host (their local fallback no
longer inherits the desktop default). showArtifactsButton is unchanged.
* fix(github): show Actions jobs as checks when a token cannot read check runs
A fine-grained personal access token cannot be granted the Checks
permission, so GitHub refuses every check-run read and the checks panel
failed with 'Resource not accessible by personal access token'. When the
REST check-run read is refused that way, the fallback now lists the head
commit's GitHub Actions jobs (Actions: read) in their place; a job's id is
its check run's id, so job logs keep working.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(github): read Actions jobs in the shared REST check pages
Moves the fine-grained token fallback into readRestPRCheckRuns and
readRestPRCheckSuites so it reuses the existing pagination and also
covers the CI summary and PR watch reads. Check details skip the
refused check-run read and still load the workflow jobs and logs.
* fix(github): read refused check details from the Actions job
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
* fix(settings): list the host's models in agent settings
Settings read the built-in model list, so new Codex models never appeared.
It now reads agentSession.modelCatalog when an agent's row is open.
Fixes#38643
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(settings): mark the built-in model list and keep new-chat defaults out
Say when Settings shows the built-in list because the host gave none.
Read the host's answer through the snapshot, which drops a listed default
that a workspace's own config could replace.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(settings): show Codex's account models and don't trust an old list
A Codex account answer is scoped by workspace, so reading it through the
new-chat snapshot brought back the built-in list. Use the answer directly.
A failed read now shows the marked built-in list, not an older answer.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(settings): build the older model list without a type assertion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(settings): read the model list again when the agent command or account changes
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(settings): build the changed settings without a type assertion
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(settings): assert the shown models instead of the read count
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* test(settings): restore the store settings after each model list test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(settings): refresh the model list when a host drops its lists
A paired host can change account on reconnect with no setting changing here,
so an open row kept the old list until it was reopened.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(settings): follow the moved native-chat runtime modules
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* fix(settings): show the built-in list note only when there is a built-in list
* fix(settings): keep the Settings model list current while a host is still listing
Wait again when a host listing outlasts one wait, re-read when a paired host's launch
settings change, and stop writing the account answer into the new-chat snapshot, where
it dropped newer workspace answers.
* fix(settings): ask paired hosts to wait only after they report a running listing
Older hosts refuse waitForListing, so the first read is plain, the same order the new-chat
picker uses. A paired host's settings change re-reads without hiding the list shown.
* refactor(settings): read the host catalog without a hooks-rule suppression
---------
Co-authored-by: temp_final_v5 <>
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
* fix(droid): keep sub-droid sessions from replacing the pane resume target
Mission workers inherit the orchestrator's pane env, so their hooks
reported their own session ids on the orchestrator's pane and the last
worker became the tab's resume target after a restart.
Fixes#39278
* fix(droid): keep the orchestrator's session after the pane row is retained
Count a retained Droid row as the pane's owner, so worker hooks that arrive after the row is dismissed or reseeded still keep the orchestrator's session, and never hand a worker's own id to a pane with no Droid owner. Moves the test next to the other provider server tests.
* fix(droid): keep the pane's Droid session when a relay forwards a worker hook without one
---------
Co-authored-by: iskic-marko <142354657+iskic-marko@users.noreply.github.com>
* fix(remote-runtime): end remote streams when the host connection is replaced
A remote stream remembered its host connection's transport generation and,
once the generation moved on, main silently dropped every frame without
closing the stream. The chat reader still believed it was connected and never
reopened, so messages stayed "Sending…" until the tab was reopened.
Advancing the generation (including eviction) now ends every pending and
retained subscription fenced on the old one; readers resume from their applied
cursor on the new connection.
Tracked in STA-14427.
* fix(remote-runtime): resubscribe client events when their stream ends
Main now ends streams whose host connection was replaced, but the renderer's
client-event owner ignored the close and kept a dead subscription while its key
stayed the same, so repository, worktree and SSH updates stopped. It now drops
that subscription on close (also when the close lands mid-setup) and
resubscribes through its existing retry.
Tracked in STA-14427.
* fix(remote-runtime): back off client-event resubscribes until a stream stays up
A host that accepted the client-event subscription and then dropped it made
the owner resubscribe about once a second forever, because each install reset
the failure count. Every close now counts toward the existing capped backoff,
and the count resets only once a stream has stayed up for 30 seconds.
Tracked in STA-14427.
* fix(remote-runtime): retain the landed transport retirement implementation
* fix(remote-runtime): isolate client-event retries by host
* fix(native-chat): keep a model pick shown instead of an older answer's model
A saved model pick on a live structured Claude chat snapped back: the host's
options answer kept returning the model that answered before the pick, and the
picker shows a reported model over the selection (for provider fallback).
A pick now retires the child's earlier model reports until a turn carries that
pick, as the common pattern does with a fallback report once the user picks
again. The Claude adapter ignores old-execution frames until a turn applies the
picked value; the host drops a report captured by an options read when a pick or
a child change lands before the read answers. Picks still reach Claude at the
next turn.
* test(native-chat): cover the confirmed-init report under read freshness
* test(native-chat): cover picks during recovery and legacy no-op mutations
At 1% the edge answered fences 'conflict': it holds the fence's own epoch for another placement
(a move onto the edge whose push landed though the director counted it failed, then a placement
elsewhere minted the same epoch). Retries go to the host's current row at that same epoch, so they
kept failing until the host moved again; meanwhile the edge object claims the host and its phones
get HOST_OFFLINE instead of re-resolving. No later move can produce a same-epoch conflict (it would
answer stale), so the fence now goes once more one epoch above, which lands; a later move onto the
edge re-mints above it. Stale answers are never bumped.
* fix(github): stop re-reading every linked issue when the window returns
Each window reveal re-read the linked GitHub issue of every workspace, shown or not,
through the shared 4-slot gh queue, so PR, Checks and Merge waited behind hundreds of
issue reads, and above 500 linked issues the cache thrashed on every reveal.
Surfaces that show an issue now own its freshness: the reveal handler no longer sweeps
the catalog; workspace cards keep their own visible-only issue poll, now also in the
paired web client and for folder workspaces; the space manager's decision hover polls
its one issue while open.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(space): the open space-manager hover asks the main window to refresh its issue
The desktop Space window shows the main window's published issue cache, so a read done
in the Space window was overwritten by the next snapshot. The decision hover now owns
its issue's freshness only while open, follows the live link, and asks the main window
(the cache owner) to re-read it; the web client reads in place.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(space): route the hover's issue refresh by window and follow owner changes
Choose the main-window relay only in the separate Space window (the paired web client's
fallback API made the relay look available), and refresh when the worktree's owning host
changes, not only its link.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* perf(space): key the open hover's issue refresh off the row projection
The hover re-resolved its worktree owner from the store on every Space-window snapshot,
rebuilding the catalog lookup index each time. Use the cache key the row projection
already computes for the issue it shows.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* test(space): use typed fixtures in the hover freshness test
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
* fix(pty): scope terminal foreground rows to the anchor session on Linux
A docker run -t container holds its own private pts/N, and Linux reports
terminal membership only by number, so ps -t pts/N listed the container's
processes beside the agent's. The foreground coherence check then saw a
tpgid that never matched and refused guarded writes with
agent_not_in_foreground (#39488).
Prefix the Linux terminal ps with a sid column (macOS ps has no sid
keyword) and keep only rows in the anchor process's session; a missing
anchor row keeps every row as before.
Co-Authored-By: Claude Code <noreply@anthropic.com>
* fix(pty): require the anchor PID for terminal rows and test the real ps shape
The session filter is the fix, so every caller now passes the anchor. The
regression test answers in whatever columns ps was asked for, so reverting the
fix fails on the foreground coherence check rather than on a parse quirk.
---------
Co-authored-by: Claude Code <noreply@anthropic.com>
Co-authored-by: Kelvin Amoaba <97001695+AmoabaKelvin@users.noreply.github.com>
Reverts #40592 (12e809c755). The session bar goes back to the scrolling strip of tab cells, the + menu goes back to the action sheet, and the header subtitle shows the tab count again.
* Show Source Control menu rows on one line with a short status
* Keep Push and Force Push clickable; force push shows remote-only commits it replaces
* Match Force Push description to remote-only commits; list review blockers exhaustively
* Show short statuses for every blocked review action
* fix(github): title GitHub issue links that were saved without one
A workspace linked to a GitHub issue from the CLI (`--issue N`), a phone, the paired web
client or a typed number kept only the number, so search could match its issue title only
while a client happened to hold that issue. The host that owns the workspace now reads each
newly linked untitled issue once, after the write returns, the way its card would, and saves
the title on the link. It keeps the current review selection and never resurrects a removed link.
* fix(github): bound and publish issue-title fills like other metadata writes
Skip writes that leave links untouched before normalizing, check a queued link is still wanted
before reading it, publish filled titles once per repo per 2 s window, refresh the resolved rows
remote clients read, never wake a stopped WSL distro for a background read, keep a selected
review's PR suppression, and keep a failing write observer from failing a saved write.
* fix(github): keep link-title fills off unrelated writes and out of per-title refreshes
Ignore linkedWorkItem in the unchanged-links check (it is rebuilt on every write and always
titled), publish filled titles at once on a quiet host and at most once per repo per 30 s
during a burst on a timer, and only lift a PR suppression when the selected PR changes, so
restating the current PR (as a title fill does) keeps a hidden branch PR hidden.
* perf(github): publish filled link titles as addressed workspace metadata
Instead of a whole-repo worktreesChanged refresh per burst window, the host publishes one
addressed workspaceMetadata set record {hostId, epoch, seq, id, row} for the workspace whose
link was titled: to its desktop window over IPC and to paired clients as a runtime client event.
Clients patch that one row (Cmd-J reads it) and drop replayed records; older clients ignore the
new event and see the title on their next listing.
* fix(github): agreed workspaceMetadata record shape, per-id seqs and late-listing refill
Records name their kind and domain, clients keep the last applied seq per workspace for each
producer epoch (dropped when the epoch changes), and a listing that read metadata before the
title write cannot drop the title: recorded titles refill rows that still hold the same untitled
link for 60 s, never restoring a removed link. The IPC channel is marked as interim transport.
* fix(github): title-only, host-addressed application of workspaceMetadata records
Clients fill the record's issue titles into the named row's still-untitled links and never take
its links over the row's current ones, so a record that arrives after an unlink cannot restore
the issue. A paired host's records reach the row of their own execution host (an SSH twin is a
different row), and go through the bridge's connection-generation check like other host events.
* test(github): type the metadata-record test helper as AppState
* fix(github): keep recorded titles until expiry, refill only changed repos, retire with the pairing
A record that beats the listing adding its link keeps its titles for the full window; the refill
runs only for repos whose listing changed, indexes that repo's rows once and skips rows already
checked; per-workspace seqs live in the expiring entries; a re-pair or reconnect of the producing
environment retires its titles.
* fix(github): read the listing through the workspace record selector
* fix(github): keep link titles until their producer changes; fall back to a listing on eviction
Recorded issue titles no longer expire on a timer (a slow listing could outlast it): they live until
the producer's epoch, pairing or connection changes, refilling only present untitled links. When
more than the cap are in flight the oldest is evicted and its repo is listed afresh, which carries
the saved title. The refill runs in updater form so it never merges a stale store snapshot.
* fix(github): sequenced listings replace the retained-title refill
Per the re-plan ruling: the store keeps one workspaceMetadata cursor per process; a title record takes
the next seq in the same turn as its write, and each listing records the cursor when it reads metadata.
Clients note each record's seq per producer and repo; a listing at or past it ends the obligation, an
older one keeps titles the rows already show and lists the repo afresh (a new invocation, never joining
the stale one), a record whose row or link isn't listed yet asks for a fresh listing, and a seq gap
lists every repo of that producer. The retained-title table, its watcher, TTL and cap are gone.
* test(github): stamp capture, gap, restart and recovery coverage for workspace metadata listings
Also retire an environment's earlier coverage bookkeeping when it is re-paired or reconnects.
* fix(space): keep issue-title coverage per repo and host until a newer listing lands
Coverage now keeps each projection's newest record seq after its covering listing settles, so an older listing that finishes later still keeps shown titles. Projections are keyed by repo and host, paired producers keep their stream cursor, retired pairings and unlisted projections are dropped, every listing served by this host carries its metadata stamp, and a record with any unlisted titled link asks for a listing.
* fix(space): re-list after any stale listing and drop retired metadata producers
A stale listing now always asks for one fresh listing, so a link it dropped comes back and a failed scan can no longer end the wait. Removed environments drop their producer state, the producer's repo list is built only on a gap or a first-seen projection, and recovery listings skip the lineage refresh.
* perf(space): filter current rows only for listings that keep titles
* fix(space): forget removed repos on a metadata gap; keep titles for another producer run's listing
* fix(palette): search a linked issue by its saved title before its card renders
The issue's search entry took its title only from the issue cache, which fills when the card renders, and it shadowed the saved link's titled entry under the same id. It now falls back to the link's saved title.
* perf(palette): read a row's links once per palette document
* fix(palette): give each saved link its own search unit
Saved-link evidence was meant to carry an `attachment:` id but the override set an unused field, so a link shared the `issue:N` unit id with the legacy issue field and with same-number links from other repos, and only the first (often untitled) survived. The id now applies to the unit and its fields, so every saved link's title is searchable. Replaces the cache-title fallback.
* fix(space): keep the title queue draining past a failed link; encode environment ids in coverage keys
---------
The first-launch 'Trust <repo> for agents?' modal blocked agent launches
to ask a question that offered no real protection: undecided repos, and
every unattended launch, already pre-trusted. Drop the dialog, the launch
hold and the skipAgentWorkspaceTrust plumbing. Repos default to
pre-trust; the per-repo setting remains as an opt-out.
OMP's thinking menu belongs to the running model, but Orca copied it onto
every other OMP model in a new chat. Treat OMP like OpenCode: leave
non-running models' menus unknown, drop such copies saved by older
builds, and read a picked model's menu from a throwaway listing session
started on that model. Starting on it, rather than switching to it,
keeps OMP from recording the model as used in the user's account; if
OMP cannot start on it, the listing runs again without it.
A read that asks for a picked model's menu now reports the listing in
progress, so an open picker updates when the menu lands instead of on
the next open.
Fixes#39015
* relay edge: a keepalive host already silent when its authorization expires closes 4408
At token exp + 60 s, a keepalive control that went silent (asleep, offline) had its silence probe
pending, so the expiry check closed it 4401. Production showed these as 4401 'never refreshed'
closes with the host silent for ~5-6 minutes, inflating the auth-failure count and hiding drops
from the 4408 comparison with the cells. Such a host now closes 4408 (orphan time back-dated as
for any silence close). Local e2e K4 (fails without the change: 4401). 48/48.
* relay edge: handshake time on control_active, control age and silence on dead-control closes
At 1%, many new controls went silent at or right after activation and were closed minutes later,
with no rebound from a retry. To tell a desktop that gave up the connect (15 s deadline, e.g. a
slow first hello on a new object) from one that died later: control_active double2 = ms from the
upgrade to activation; new silence_close (seconds silent, where found, keepalive/legacy, age);
auth_expired_close double3 = control age.
* Fix workspace delete shortcut targeting
Resolve the keyboard action from the current workspace and execution host,
keep clicked menu actions bound to their rows, and advertise the shortcut
only for the committed workspace copy. Preserve confirmation preferences.
Co-authored-by: Luca Critelli <lucacri@gmail.com>
Co-authored-by: Anton Kuligin <anton.kuligin@notraffic.tech>
* Document isolated deletion test fixture boundaries
* Type the shortcut command test input
---------
Co-authored-by: Luca Critelli <lucacri@gmail.com>
Co-authored-by: Anton Kuligin <anton.kuligin@notraffic.tech>
Native chat (agent-session) tabs project Claude status entries into
agentStatusByPaneKey, which made the terminal-agent presence check fire
the Claude Code theme-sync offer without the CLI ever being launched.
Status entries now count only when their pane belongs to a terminal tab.
* fix(native-chat): show the page a browser run drove, not another chat's
* fix(browser): run each queued agent command in its own RPC call
* fix(native-chat): once a chat claims its browser activity, ignore unclaimed activity
* fix(mobile): tell Android users which WebView to update when it is too old
The page shell needs androidx's DOCUMENT_START_SCRIPT:1, which stable
WebView only reports from Chromium 101; the comments claimed 83/88.
Name the required WebView and the one installed, and how to switch it.
* fix(mobile): read the WebView provider through the shell module index
Tests stub the module index; a direct file import loaded expo-modules-core unstubbed.
* fix(claude): preserve profile-owned state during configuration refresh
* test(claude): bound profile state publications at workspace scale
* fix(claude): honor profile API approval before shared rejection
* fix(git-graph): keep loading commits while the end of history is in view
Git Graph only asked for the next page from a scroll event, so a pane
taller than the first 50 commits (or one enlarged later) had no scrollbar
and never loaded older history. The next page is now requested whenever
the end of the loaded rows is within the visible range, once per loaded
result; a failed page waits for Load more or Refresh, and a page that adds
no commits keeps the previous result so it cannot repeat.
Tracked in STA-14490.
* fix(git-graph): keep viewport paging's once-per-result latch across remounts without retaining old history
* fix(git-graph): page only the result whose rows were measured in view
* test(git-graph): replaced history is released while the pane stays mounted
Native chat strips pane env, so Orca's Codex hooks only spawn a shell per
event. On Windows with Store PowerShell first on PATH, Codex fails every
command-hook spawn with os error 5 (openai/codex#47810), which native chat
showed after each tool call. Disable just Orca's hooks.json entries for the
app-server launch with a session -c hooks.state override; user hooks keep
running.
* fix(native-chat): list Codex models in the chat's folder when its command line needs that folder
A Codex command such as `node node_modules/@openai/codex/bin/codex.js` failed from Orca's empty probe folder, so the picker fell back to the built-in list. Like Claude's probe, a command line that may name files relative to the chat's folder now lists there, with that folder untrusted so its project config never changes the account's list.
* fix(native-chat): untrust the lowercased folder key Windows Codex looks up first
The assign path judges edge cohort membership with the region the desktop asks for; the sweep used
the stored region preference, which can miss or lag it. A host whose two disagreed was placed on the
edge, drained by the sweep, and placed back on its next ask: at 1% this drained 12 of ~31 moved
hosts within 10 minutes, and each director would repeat it every cooldown. The sweep now ignores
region scope (it still drains hosts that left the cohort by mode, deny or share); a host that asks
for a region outside the scope leaves on that ask.
* fix(acp): retry transient -32603 during session model catalog probes
opencode answers ACP session/new with a transient -32603 while its
providers still open, and a single probe failure degraded the chat model
picker to one pinned model. Retry initialize and session/new up to
3 times with abort-aware backoff, mirroring the existing sweep retry.
* fix(acp): address CodeRabbit review on transient retry
Re-check operation currency after the backoff sleep so a cancelled or
rotated probe never issues another request, cap retries at three
attempts total (two backoffs), document the helpers, and cover the
abort-during-backoff case with a test.
* fix(acp): retry only OpenCode's session/new and use the abortable timer
* test(acp): list OpenCode's catalog after a -32603 session/new
---------
Co-authored-by: Mazurov Anton <anton.mazurov@reksoft.com>