Commit Graph
10787 Commits
Author SHA1 Message Date
OrcaWinandOrca Worker 2411491c2f perf: stop archive size scan once over budget (#20304)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:09:12 -07:00
OrcaWinandOrca Worker c35a479584 perf: reuse computed project identity in projection (#20303)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:09:03 -07:00
Neil 44df1780dd perf(browser): index iframe session refs for snapshot lookup (#20300) 2026-09-12 18:08:53 -07:00
Neil 3666c12414 perf(daemon): reuse encoded unsplit NDJSON frames (#20298) 2026-09-12 18:08:42 -07:00
OrcaWinandOrca Worker 37a5b3798b perf: defer scrollback pruning indexes until needed (#20297)
* perf: defer scrollback pruning indexes until needed

* test: wait for watcher reconciliation event delivery

---------

Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:08:31 -07:00
OrcaWinandOrca Worker 25939947e9 perf: reuse formatter within reset timestamp conversion (#20295)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:08:22 -07:00
OrcaWinandOrca Worker 382c281cfa perf: normalize manifest text files once (#20294)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:08:12 -07:00
OrcaWinandOrca Worker 64614d73e0 perf: reuse diagnostic bundle byte count (#20292)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:08:02 -07:00
OrcaWinandm4air 51ff9c7ff3 perf(ssh): skip terminal source spans awaiting ACK publication (#20290)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:07:53 -07:00
OrcaWinandOrca Worker f1493bd81d perf: avoid copying completed terminal source ranges (#20289)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:07:43 -07:00
Neil a1ee8081bb perf(ipc): bound SSH ACK batch selection scans (#20288) 2026-09-12 18:07:33 -07:00
Neil 69c76b5ec7 perf: bound rich Markdown comment detection and preservation scans (#20287) 2026-09-12 18:07:23 -07:00
OrcaWinandOrca Worker 1249be3c8e perf: accept UTF-8 text that fits the worst-case byte bound (#20286)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:07:13 -07:00
OrcaWinandOrca Worker 7ae8a70c8d perf: avoid flattening tabs for smart-sort liveness check (#20279)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:07:03 -07:00
OrcaWinandOrca Worker 97ea501e4f perf: skip decoding discarded diagnostic error bodies (#20276)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:06:53 -07:00
OrcaWinandOrca Worker ebfedc3e22 perf: encode skill Git tree sort keys once (#20272)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:06:43 -07:00
Neil 8713f6ee72 perf(native): avoid sanitizing snapshot values twice (#20271) 2026-09-12 18:06:33 -07:00
OrcaWinandOrca Worker a5dac280e4 perf: reuse skill file digest when normalized bytes match (#20268)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:06:22 -07:00
OrcaWinandm4air f704374e2b perf(history): scan legacy alternate-screen markers linearly (#20267)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:06:13 -07:00
Neil 57c7ef5835 perf(plugins): stop collection traversal at message size limit (#20260) 2026-09-12 18:06:03 -07:00
OrcaWinandm4air 1fe92719af perf(skills): index source ownership counts per discovery (#20259)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:05:53 -07:00
OrcaWinandOrca Worker 4e40311c55 perf: avoid repeated model pricing name normalization (#20257)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:05:43 -07:00
OrcaWinandOrca Worker 6277dd369d perf: compile nested repository ignore patterns once (#20256)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:05:33 -07:00
OrcaWinandOrca Worker afb43ea914 perf: avoid duplicate repository directory probes (#20253)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:05:23 -07:00
OrcaWinandOrca Worker efe5e296f6 perf: stop preparing over-limit palette queries (#20250)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:05:14 -07:00
OrcaWinandOrca Worker 5de75cd6e9 perf: defer browser search row formatting until matched (#20248)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:05:04 -07:00
OrcaWinandOrca Worker 80a22db9cb perf: stop heading lookup at the requested occurrence (#20246)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:04:54 -07:00
OrcaWinandm4air ee1e94a623 perf(history): cache numeric transcript timeline bounds (#20244)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:04:44 -07:00
OrcaWinandOrca Worker 1cf38bbcef perf: count local RPC request bytes incrementally (#20243)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:04:34 -07:00
OrcaWinandOrca Worker e75b46904f perf: avoid rescanning partial browser sidecar responses (#20242)
* perf: avoid rescanning partial browser sidecar responses

* test: guard sidecar response framing scan cost

---------

Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:04:24 -07:00
OrcaWinandOrca Worker 6a5d9063bb perf: skip ordinary strings in JSON structure checks (#20232)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:04:15 -07:00
OrcaWinandOrca Worker f71f868308 perf: index pending terminal reconnect tab lookups (#20229)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:04:05 -07:00
OrcaWinandm4air 56aefb542e perf(mobile): bound autocomplete substring retention (#20226)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:03:55 -07:00
OrcaWinandOrca Worker e9dabe9beb perf(diff): skip unused extension extraction during search (#20225)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:03:45 -07:00
OrcaWinandOrca Worker 96f0c5101f perf(session): reuse persisted tab membership set (#20223)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:03:35 -07:00
OrcaWinandOrca Worker 44332460b6 perf(usage): skip session scans for empty breakdowns (#20222)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:03:26 -07:00
OrcaWinandOrca Worker 0d118908c5 perf(browser): skip unneeded inventory compaction planning (#20221)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:03:16 -07:00
OrcaWinandm4air baa1cb135c perf(mobile): avoid materializing input characters on backspace (#20220)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:03:06 -07:00
Neil ce82438828 perf(relay): reuse host data attachment owner without inventory copies (#20219) 2026-09-12 18:02:56 -07:00
OrcaWinandOrca Worker 04b4a0e4be perf(files): skip unused Quick Open byte accounting (#20216)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:02:46 -07:00
OrcaWinandOrca Worker 9d62426535 perf(chat): reuse streamed delta byte lengths (#20215)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:02:36 -07:00
OrcaWinandOrca Worker 1259f3ecf4 perf(automations): skip sorting count-only Hermes history (#20213)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:02:26 -07:00
Neil 20fb3e7d13 perf(mobile): normalize history scope paths once per candidate (#20210) 2026-09-12 18:02:16 -07:00
OrcaWinandOrca Worker 541ef7ad18 perf(daemon): bound immediate flush queue scans (#20209)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:02:06 -07:00
OrcaWinandOrca Worker 8d38dbf565 perf(wsl): release environment probe deadline timers (#20207)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:01:56 -07:00
f9e825ee0a fix(ai-vault): close OpenCode handles when query_only setup fails (#14134)
* fix(ai-vault): close OpenCode handles when query_only setup fails

Keep #16587's 1500ms local / 0ms WSL timeout. A pragma failure after
open no longer leaks the handle or hides the setup error.

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix(ai-vault): isolate handle cleanup from usage timeout policy

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:01:47 -07:00
Wooseong Kimandm4air bb5aea8c70 fix(runtime): GC expired proven-absent leaf PTY verdicts (#12810)
* fix(runtime): GC expired proven-absent leaf PTY verdicts

Sweep TTL-expired provenAbsentLeafPtyVerdicts on consult and insert so
dead leaf ids do not retain Map entries for the process lifetime.

Preserves the 15s no-reprobe cache for still-fresh verdicts.

Fixes #12660

* fix(runtime): reclaim expired leaf PTY verdicts with bounded sweep frequency

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:01:37 -07:00
Neil ea0bdbb92c perf: normalize title evidence once per label search (#20331) 2026-09-12 18:00:49 -07:00
d1309d8d4a fix(claude-accounts): stop path resolution from creating the config directory (#12309)
* fix(claude-accounts): stop path resolution from creating the config directory

getRuntimePaths() created ~/.claude as a side effect of resolving paths, so
the deferred usage refresh materialized it even when Claude was disabled and
no session had ever run. Writers already create the directory themselves
(writeJson, writeRuntimeCredentials, the metadata dir), and the keychain
helpers only use configDir as a service name, so resolution can stay pure.

Fixes #12181

* test(claude-accounts): cover background auth preparation

* test(claude-accounts): prove path reads skip mkdir and writes recreate directories

* Preserve Claude keychain aliases for missing config directories

* fix: avoid ambiguous missing-path keychain aliases

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:00:13 -07:00
Neil 56fcb544e0 fix(browser): move cookie scoping off psl's stale suffix list (#20421)
* fix(browser): move cookie scoping off psl's stale suffix list

psl@1.15.0 is its latest release and ships a Dec-2024 snapshot of the
public suffix list. Measured against the current upstream list, it fails
to recognise 600 of 10,030 suffixes; tldts misses 2.

That gap is a cookie-isolation bug. psl does not know `api.br` is a
suffix, so it falls back to the `br` rule and maps foo.api.br, bar.api.br
and example.api.br all onto the single family `api.br`. Unrelated
registrants then share a removal scope, and a replace-mode import for one
clears the others' cookies. The same holds for seg.ar, co.az, gov.cz and
~597 more.

tldts is called with allowPrivateDomains, without which the PSL's PRIVATE
section is ignored and every *.github.io / *.s3.amazonaws.com / *.vercel.app
tenant collapses into one family — 21 of 49 probed hosts changed family
under the default. The new test pins that boundary.

One deliberate behaviour change: hosts under `.local` (not in the PSL)
were their own family under psl, which returned an all-null parse for
them; they now resolve to the two-label boundary (app.orca.local ->
orca.local), matching what Chromium treats as the registrable domain.

* fix(build): bundle tldts into the main process like psl was

psl sat in BUNDLED_MAIN_DEPENDENCIES, so it was inlined into the main
bundle rather than externalized and copied into resources/node_modules.
Swapping the dependency without moving that entry left a bare tldts
import that afterPack's runtime-closure check rejects.

* fix(build): point the output contract at tldts and drop the psl shim

The contract test still asserted psl was in BUNDLED_MAIN_DEPENDENCIES, so
it failed once the entry became tldts. src/types/psl.ts declared a module
that no longer resolves; tldts ships its own types.

* test(browser): pin the suffix boundaries the tldts swap moved

Three semantic changes shipped untested:

- `.local` is unlisted, and the libraries disagreed on what that means. psl
  returned an all-null parse so every `*.orca.local` host was its own family;
  tldts stops at `orca.local`. The consequence is wider than the family name —
  importDomainAncestors now yields the shared parent, so a replace-mode import
  of one host clears non-host-only cookies every sibling shares.
- psl's snapshot had `compute.amazonaws.com` as a literal PRIVATE suffix; the
  current list only carries the wildcard, so the bare host is ICANN now.
- The renderer's `psl.isValid` gate had no direct test at all — nothing imported
  the module from a test.

Also drops comments that explained a boundary in terms of psl's internals. One
was wrong under tldts: bracketed IPv6 does not reach an error branch, it parses
with the brackets stripped and falls through the unlisted path.
2026-09-12 16:00:54 -07:00