Commit Graph
20254 Commits
Author SHA1 Message Date
OrcaWinandOrcaWin 7fec805e89 test: remove 559 low-value tests (#39661)
* test: remove 247 low-value tests

* test: remove 559 low-value tests

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 18:24:44 -08:00
Neil 009def47a6 feat(app-icon): import a custom app icon from Appearance settings (#39443)
Adds a Custom… option to the App Icon switcher. The picked PNG/JPEG is
header-checked before decoding (square, 64–2048 px, ≤10 MB), re-encoded as
PNG into userData, and applied to the macOS Dock and every window icon. It
persists across restarts and can be removed, which resets to Classic.

Closes #13316
2026-11-07 18:22:37 -08:00
NeilandClaude Opus 5.5 56d0fc1a90 fix(ssh): read zsh's lowercase 'no such process' as a dead managed server (#34149) (#39616)
The managed server liveness probe matched kill -0's ESRCH text
case-sensitively. zsh and ksh print it lowercase, so on hosts whose login
shell is zsh a recorded PID that no longer existed read as UNKNOWN. The
wake then never restarted the stopped server, the update deferred on an
uncounted census, and the host stayed unreachable. Match either case;
permission errors still stay UNKNOWN.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-07 18:08:40 -08:00
Kelvin Amoaba 81b696524e perf(history): skip per-session folders when scanning Claude transcripts (#39302)
Claude transcripts only sit directly in a project bucket; the History walk now shares the bucket-depth rule the session-id lookup already uses instead of only pruning subagents/.
2026-11-07 18:08:11 -08:00
OrcaWinandOrcaWin 38aa8657ce refactor(i18n): read render-path translations from useTranslate in right sidebar (remaining panels) (#39388)
Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 18:04:39 -08:00
Neil 708aca6a46 fix(terminal): never type a colour reply into the shell after the program that asked has exited (#37402)
* fix(terminal): never type a colour reply into the shell after the program that asked has exited

The PTY owner holds a colour-query reply made inside a shell command for up
to 20 ms and drops it if the command's OSC 133;D arrives, or (POSIX) another
process group takes the terminal; otherwise it answers. Command markers ride
the colour scan every emission already pays, so the hot path does no new
work until a query is pending. No daemon protocol change.

Closes #16633
Closes #14631

* fix(terminal): track command markers in the existing colour scan, drop the live-group shortcut, and hold through claimed echoes

* fix(terminal): one verdict for every query held behind the first, contiguous ranges through a held echo, drop held replies at the final snapshot

* refactor(terminal): move the torn query/echo holds out of the ingress

* fix(terminal): a query completed after a verdict is judged afresh; the final snapshot judges held askers instead of dropping them
2026-11-07 17:59:32 -08:00
Neil b35941e4f9 perf(ssh): slow remote polls while the Orca window is visible but unfocused (#39650)
* perf(renderer): add unfocused slowdown to shared visibility poll primitives

installWindowVisibilityInterval gains slowWhileUnfocused (focus read at tick
time, overdue catch-up on window focus) and the git status refresh scheduler
gains cadenceScale + retime(). Opt-in; focused cadence is unchanged.

* refactor(source-control): extract git status scheduler window-presence hook

* perf(ssh): slow remote port, git status and compare polls while unfocused

Visible-but-unfocused windows poll workspace/host ports, branch compare,
stale conflict probes and active git status 4x slower, so agent edits no
longer drive remote git status every 3s behind another app. Hidden windows
still pause; window focus runs overdue work immediately.

* perf(source-control): keep activity debounce when refocus re-times git status

* test: drop cadence-count tests for unfocused poll slowdown
2026-11-07 17:50:39 -08:00
OrcaWinandOrcaWin d031ca84a8 refactor(i18n): read render-path translations from useTranslate in right sidebar (source control, hosted review) (#39385)
Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 17:46:45 -08:00
Neil aa6c949614 perf(native-chat): render streaming markdown block by block on every streaming surface (#39647)
Live reasoning and reduced-motion replies passed streaming but never growing,
so each update re-parsed the whole message (~260ms avg per update on a 20KB
reply in happy-dom, vs ~3ms block by block).
2026-11-07 17:42:39 -08:00
OrcaWinandOrcaWin e833bb703c test: remove 140 low-value tests (#39644)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 17:40:01 -08:00
OrcaWinandOrcaWin 62cb2dde86 refactor(i18n): read render-path translations from useTranslate in sidebar (remaining) (#39382)
Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 17:34:22 -08:00
Jinjing ce1426b8eb improve chat ui rolleout (#39420)
* wip

* Standardize chat UI launch tip telemetry on corner-card-v3
2026-11-07 17:27:31 -08:00
OrcaWinandOrcaWin 27b12f5081 fix(native-chat): key option support and terminal reads on the snapshots they already take (#39641)
The accepted option support and the selection controller's terminal revision were read from mutable owners during render. Pass the reader snapshot and the selection revision each hook already subscribes to as recomputeOn inputs, so a compiled memo recomputes exactly when those values can change. Without the compiler the reads are unchanged.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 17:25:09 -08:00
OrcaWinandOrcaWin 898fd25226 refactor(i18n): read render-path translations from useTranslate in sidebar (workspace cards, worktree list) (#39375)
Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 17:16:39 -08:00
Jinjing 40aab37bb6 Hide merge badges on workspace cards (#39638)
* Hide the merging badge on workspace cards

* Show only cherry-pick conflict badges on workspace cards
2026-11-07 17:14:58 -08:00
OrcaWinandOrcaWin 126cf690ae test: remove 158 low-value tests (#39639)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 17:10:38 -08:00
Jinjing a238176954 Open HTML previews in the editor's tab group (#39367)
* wip

* Open HTML previews in the editor's tab group

Keep previews in the invoking group for local and remote files, and
avoid changing the selection if the user navigates away while opening.

* test: cover HTML preview from editor

* fix perf issue

* Prevent HTML previews from opening on the wrong host

* Guard HTML previews against workspace ownership changes
2026-11-07 17:07:14 -08:00
OrcaWinandOrcaWin 30cf87d0a1 refactor(i18n): read render-path translations from useTranslate in settings (remaining panes) (#39371)
Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 17:00:44 -08:00
OrcaWinandOrcaWin e4a479ceec test: remove 282 low-value tests (#39632)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:51:15 -08:00
OrcaWinandOrcaWin bb368c3ae6 chore(ratchet): flag discarded subscriptions and store snapshots React Compiler would cache (#39630)
Two new React Compiler compat hazards:
- discarded-subscription: a useSyncExternalStore call whose result is thrown
  away, so the reads after it get cached on unrelated inputs.
- store-read-in-memo-block: a render-level getState() that the compiler places
  in a cache-guarded block. Reads inside the source's own useMemo or callbacks
  keep their written deps and are skipped.

The compiled output is parsed once for hook and store reads. Current sites are
grandfathered in the hazard baseline.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:45:10 -08:00
OrcaWinandOrcaWin 2daee44e9b refactor(i18n): read render-path translations from useTranslate in settings (appearance, accounts, agents, source control, mobile, shortcuts, editor, voice) (#39366)
Applies pnpm i18n:reactive-translate --helpers. Output is unchanged: t delegates
to translate() and helpers default the threaded parameter.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:42:09 -08:00
OrcaWinandOrcaWin 63e019af72 fix(renderer): key render reads on the version hooks they already call (#39629)
Host chat-agent readers called useHostStructuredAgentsVersion, CrewRowTime
called useNow, and both discarded the value before reading module state or wall
time. The titlebar portal target was a bare document lookup. React Compiler
would cache all three on unrelated inputs. The reads now go through recomputeOn
with the returned version, and the titlebar lookup moves into a tiny hook whose
result the compiler never caches. With the compiler off the code runs the same.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:35:24 -08:00
OrcaWinandOrcaWin 10e8eaeb5d fix(renderer): key external-store reads on the subscription version they already take (#39628)
* fix(renderer): key external-store reads on the subscription version they already take

Browser driver, remote viewer, client-hosted row and automation visibility hooks
subscribed with useSyncExternalStore, discarded the version, then read module
state. useHighlightedSyntax did the same with a reducer tick. React Compiler
memoizes those reads on their arguments only, so they would stop updating.
Each read now goes through recomputeOn with the version it already has; with
the compiler off the same code runs on the same renders.

* fix(renderer): read the client-hosted row selection through its subscription version

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:34:52 -08:00
Brennan Benson fd334f1e99 Show CI results in the chat that opened or pushed to a pull request (#39020)
Shows CI result lines in the chat that opened or pushed to a pull request. They're hidden in the terminal overlay and on the phone until the phone app gets the setting.
2026-11-07 16:34:21 -08:00
OrcaWinandOrcaWin 892c536ecf fix(renderer): replace the last two bare void reads React Compiler would drop (#39626)
The browser page mount admission hook now returns its useSyncExternalStore
snapshot instead of recomputing it after a discarded subscription, and the
sleeping sweep keys its wall-clock read on the grace tick with recomputeOn.
Both run the same code with the compiler off; the hazard baseline is now empty.

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:25:30 -08:00
Kelvin Amoaba 34cd1161bb perf(mobile): show the workspace list from memory and refresh it on desktop changes (#39453)
* perf(mobile): show the workspace list from memory and refresh it on desktop changes

* fix(mobile): import the host list queries type without an import() annotation

* fix(mobile): keep host labels on a not-connected read and update the phone feed e2e helper

* fix(mobile): keep the event router listening when its stream ends while opening

* fix(mobile): reuse the shared read-view base and remount for the cache-return recording
2026-11-08 00:23:19 +00:00
Kelvin Amoaba 5a6e0510e1 fix(mobile): save only the listing a pre-turn read waits on, not later reads (#39622) 2026-11-08 00:21:08 +00:00
OrcaWinandOrcaWin 810080fe86 test: remove 468 low-value tests (#39614)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:13:17 -08:00
Jinjing ef55da8770 docs: add WeChat community group QR codes (#39411) 2026-11-08 00:10:19 +00:00
Jinjing 51d6192d7a fix(agent-picker): search fallback models and show cached models while the list refreshes (#39444)
* fix(agent-picker): search fallback models and show cached models while the list refreshes

The new-tab agent picker's search skipped any agent whose model catalog was
unknown, while that agent's model submenu still listed the built-in models,
so typing "gpt" found nothing even though Codex showed GPT models. Search now
covers the same models the submenu offers.

The picker also waited for a fresh model probe on every read, and Claude and
Codex catalogs go stale after two minutes, so most opens showed the built-in
list for 0.5-1.5s. Like the chat composer, it now reads the saved listing
first and shows it at once, then follows with the waiting read, which joins
the same host refresh (no extra probe). An unknown catalog still takes the
waiting read, as before.

* Fix model catalog refresh when reopening the agent picker

* fix(agent-picker): wait only for active catalog refreshes
2026-11-07 16:08:26 -08:00
OrcaWinandOrcaWin 8dad16cca2 docs(contributing): shorten the Vitest cache note to one line (#39623)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 16:07:43 -08:00
Kelvin Amoaba 3c1149ea5e fix(runtime): keep a terminal's last output on exit and stop charging dropped screencast frames (#39384)
* fix(runtime): keep a terminal's last output on exit and stop charging dropped screencast frames

* fix(browser): clear an oversize frame held for credit instead of retrying it
2026-11-08 00:03:09 +00:00
Kelvin Amoaba aa30c8140a fix(mobile): keep the saved model list right across late reads and account switches (#39470)
* fix(mobile): keep held model lists through late preloads and running chats

* fix(mobile): let progress answers fill empty lists and decide recording per read

* fix(mobile): record a pre-send listing on rejoin and leave unheld retirements alone

* test(desktop): use a valid listed catalog in the preload race test

* test(mobile): type the catalog cache test's renderer
2026-11-07 23:45:44 +00:00
Kelvin Amoaba 50a4cccbad perf(runtime): cache OMP and Grok model discovery for desktop IPC too (#39402) 2026-11-07 23:44:49 +00:00
Kelvin Amoaba 199d64fb7c fix(mobile): stop false Wi-Fi arrivals and update the relay gate text (#39391)
* fix(mobile): stop false Wi-Fi arrivals and update the relay gate text

* refactor(mobile): read the network fresh for every caller

* perf(mobile): share a network read within one nudge fan-out
2026-11-07 23:44:16 +00:00
Kelvin Amoaba 336fd01968 fix(tasks): confirm a lost Tasks comment by author on GitLab and GitHub REST reads (#39422)
* fix(tasks): confirm a lost Tasks comment by author on GitLab and GitHub REST reads

Only GitHub GraphQL's viewerDidAuthor marked the viewer's comments, so on GitLab,
the GitHub REST fallbacks (including issues with more than 100 comments) and the
gh view fallbacks the phone kept an unconfirmed draft even after the comment
posted. Those reads now match the login of the account that made them, and an
explicit PR refresh reads comments uncached.

* fix(mobile): settle an unconfirmed comment only on one posted after the send

A refresh of an issue with more than 100 comments reads comments the first
load never showed, so an older identical comment by the same account looked
new and could clear the draft.

* refactor(gitlab): share the glab viewer read and skip it on Checks polling

* test(mobile): pin the clock in the unconfirmed comment test
2026-11-07 23:44:06 +00:00
Kelvin Amoaba 32f1229564 fix(mobile): retry the Changes branch compare after a failure or quick worktree switch (#39350)
* fix(mobile): retry a failed Changes compare and drop preserveReadyOnFailure

A compare that failed, or one cleared by a worktree switch, kept its status
read marked as compared, so returning to Changes inside the 3 s fresh window
skipped it. Forget the read when its compare doesn't land and when the route
identity changes. Branch compare already always kept a ready result on
failure, so the loadStatus option and nextBranchCompareState flag were dead.

* fix(mobile): keep a superseded compare from clearing the retry marker

* refactor(mobile): forget a failed compare's read inside the attempt

* fix(mobile): clear the compare marker in an effect, not during render
2026-11-07 23:43:54 +00:00
Kelvin Amoaba 11f31112db perf(files): page large folders on the phone with Show 500 more and Search all (#39438)
* perf(files): page large folders on the phone instead of reading them whole

* fix(files): page from hasMore, refresh closed folders, retry a superseded Show more

* fix(files): rerun a refresh that paging displaced, and keep an old host's whole folder from duplicating rows

* test(mobile): re-record the Files matrix goldens for paged reads

* test(files): type the paging fake host's params without widening

* fix(files): filter folder reads that land after the folder closes
2026-11-07 23:43:43 +00:00
Kelvin Amoaba a9f65f71d2 feat(mobile): handle renames and the workspace list while the desktop is offline (#39448)
* feat(mobile): add host mutations with draft, block and queue modes, starting with rename

* fix(mobile): settle a lost rename through the reconnected client and keep server rows routed

* fix(mobile): offer Retry on the offline banner once the host is unreachable

* fix(mobile): let the offline banner's Retry redial from the page

* fix(mobile): date the offline banner from the drop, not the connect

* fix(mobile): keep the terminal rename sheet's state updates pure

* test(mobile): mount rename and close-action tests inside a query client

* refactor(mobile): share one draft rename sheet between workspace and terminal rename, and retry a confirm after a path switch

* fix(mobile): keep another target's unsaved rename and show the offline reason over an old refusal

* fix(mobile): keep a newer rename draft when an older save lands late
2026-11-07 23:43:33 +00:00
Kelvin Amoaba c950d1eebd feat(mobile): queue chat sends while the desktop is offline (#39423)
* feat(mobile): queue chat sends while the desktop is offline

* test(mobile): cover the offline chat send queue

* fix(mobile): drop a closed chat tab's queued messages

* fix(mobile): keep offline queue order and hold drains behind terminal prompts

* fix(mobile): drain a structured chat's queue only once its session loads

* test(mobile): stub reanimated in the prompt controller render mocks

* feat(mobile): bring a queued chat message back paused after Orca closes

* fix(mobile): update the queue's send ref after render and type the queued bridge test

* fix(mobile): keep the queued send intent type free of page storage imports

* test(mobile): pass a send's chips through its intent in the kill test

* fix(mobile): hand a queued host command with a lost reply back to its queue
2026-11-07 23:40:10 +00:00
Kelvin Amoaba 659f279a0f fix(mobile): chat follow-ups for held replies, per-chat zoom and streamed math (#39403)
* fix(mobile): chat page follow-ups

- clear the touch state when the chat hides, so a held reply lands on return
- keep the chat pinch scale per chat
- record waiting display-math openers in the math plugin instead of a line regex
- share the details markup test and the orphan row id predicate

* fix(mobile): record math openers whose scan reaches the end, skip no-op pinch commits

* fix(mobile): fall back to a whole parse only for details section tags

* refactor(mobile): drop a repeated comment
2026-11-07 23:39:23 +00:00
Kelvin Amoaba 4c43219b74 perf(mobile): open Jump back in and notifications inside the host document (#39474)
* perf(mobile): open Jump back in and notifications inside the host document

* fix(mobile): gate open targets on page 3, keep notification suppression, fold double taps

* fix(mobile): report the shown session from host documents and only open this host's sessions

* test(mobile): ignore the page's location report in the agent-history notify check

* fix(mobile): let a Back before the paint gate settle the host stack

* refactor(mobile): build the route-param clear frame beside its name
2026-11-07 23:39:10 +00:00
Kelvin Amoaba 525e11196e perf(mobile): let the model pill take picks before the chat attaches (#39379)
* perf(mobile): let the model pill take picks before the chat attaches

* fix(mobile): lock the picker while a held pick is sent and keep the mode toggle for attach

* fix(mobile): report a held pick's refusal only for its own chat
2026-11-07 23:34:27 +00:00
Kelvin Amoaba 138c9e3460 feat(mobile): keep chat drafts, attachments and unsent messages across app kills (#39342)
* feat(mobile): keep chat drafts and unsent text in the device store

* test(mobile): give the send tests a real draft destination

* fix(mobile): confirm reopened sends past the loaded window and save the journal id with the clear

* fix(mobile): let an open chat claim a released send, and warn on a reopened command

* refactor(mobile): share the pausable unconfirmed-send deadline between chat holds

* fix(mobile): hold every lost structured send and replace a re-held deadline; use the shared store value codec

* fix(mobile): save chip-only drafts, save only a send's own chips, and keep hold time across outages

* fix(mobile): hash a draft key the device store would refuse as too long

* fix(mobile): drop a sent message's chips in the write that settles it

* fix(mobile): return a structured host command whose reply was lost to the box
2026-11-07 23:32:44 +00:00
Kelvin Amoaba ed3a3fd9f6 perf(mobile): reuse the connection's status in the automation editor and chat capability check (#39345)
* perf(mobile): route the last status.get callers through the shared status read

* refactor(mobile): drop the unused one-shot Codex reset capability read

* fix(mobile): open the chat transcript when the text-append check fails, and key connections on one epoch
2026-11-07 23:27:28 +00:00
OrcaWinandOrcaWin 7b509e477a test: remove 581 low-value tests (#39608)
Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 15:25:35 -08:00
Kelvin Amoaba 8897f986cf perf(mobile): tell a buried Android page it's hidden (#39409) 2026-11-07 23:20:51 +00:00
Kelvin Amoaba de6c2b6f5c perf(mobile): open a session with one terminal list read and a loading body under the cached tabs (#39412)
* perf(mobile): open a session without the startup terminal polls

* test(mobile): re-record session startup goldens

* perf(mobile): cache the session strip from host snapshots and drop phone-closed tabs

* fix(mobile): keep a shown terminal over the offline and loading body states

* test(mobile): re-record the last-strip reopen golden

* refactor(mobile): drop a startup guard that can no longer fire

* fix(mobile): drop a pending-terminal activation reply from an earlier route

* test(mobile): type the pending terminal tab fixture

* test(mobile): import the last-tabs module type without an import() annotation
2026-11-07 23:20:40 +00:00
Kelvin Amoaba 481f61152d perf(mobile): reopen agent session history from memory (#39387)
* perf(mobile): reopen agent history from memory

* fix(mobile): reread history after association changes without restarting reads, and share the connection's status with query reads

* fix(mobile): reread history after an association change only when the query can read, including after a failed scan

* refactor(mobile): name every history screen state

* fix(mobile): keep history's connected-edge watcher by not gating its query on the connection
2026-11-07 23:14:37 +00:00
Kelvin Amoaba 2ec6ea4aad perf(mobile): prefetch the next and previous file in Review (#39355)
* perf(mobile): prefetch the next and previous file in Review

* perf(mobile): open Review on the tapped file without reading the first file

* fix(mobile): show failed Review diff reads and re-read refused deleted files

A re-keyed worktree diff that fails now shows its error instead of the
older lines. A deleted-file stand-in from a refused read is re-read on the
next visit and by Retry. Without git status, the branch section no longer
waits on an unused compare.
2026-11-07 23:14:26 +00:00