Commit Graph
10839 Commits
Author SHA1 Message Date
35a5259ccd perf(android): queue fragmented scrcpy video packets (#20230)
* perf(android): queue fragmented scrcpy video packets

* fix(android): release consumed scrcpy chunk storage

* fix(android): bound queued scrcpy fragment count

- Coalesce pending video fragments once more than MAX_PENDING_CHUNKS
  (1024) are queued, so a large frame delivered in tiny socket chunks
  cannot retain millions of Buffer objects below the 16 MiB byte guard.
- Add a regression test feeding a 256 KiB frame one byte at a time and
  asserting the retained fragment count stays bounded.

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
Co-authored-by: Neil <neil@stably.ai>
2026-09-12 19:39:40 -07:00
Neil fee47fdb09 fix(chat): bound journal replay memory by live history (#20247)
* fix(chat): stream journal replay without retaining obsolete revisions

* fix: page journal replay reads so no SQLite snapshot outlives its statement

- iterateJournalEpochRows fetches one completed LIMIT statement per page
  instead of a lazily consumed .iterate() cursor, so reduction never runs
  inside an open read snapshot and a WAL checkpoint can pass mid-replay.
  Regression test: a checkpoint issued from inside the reducer is not busy.
- The retention test now asserts the applyJournalRow spy observed every
  row, so the 8 MiB bound cannot pass vacuously if the spy stops
  intercepting.
- Reliability gate manifest records the new assertion and the paged
  read design.
2026-09-12 19:39:30 -07:00
659f204fec perf: avoid rescanning partial Windows desktop responses (#20235)
* perf: avoid rescanning partial Windows desktop responses

* fix: own the retained serve-channel tail and pin the no-newline invariant

- Copy the retained partial line via ownRetainedString after each drain so
  a 13+ char tail no longer pins the whole drained response as a V8
  SlicedString (measured 23 MB -> 22 KB for 32 pending tails behind 1 Mi
  lines); regression test with --expose-gc.
- Add a test asserting the retained buffer never contains a newline after
  a drain, which the chunk-only fast path depends on.
- Locate the first delimiter with decoded.indexOf offset by the retained
  length instead of rescanning the whole accumulated buffer; test pins
  that no indexOf runs over more than the new chunk.

---------

Co-authored-by: Orca Worker <orca-worker@localhost>
Co-authored-by: Neil <neil@stably.ai>
2026-09-12 19:39:20 -07:00
Neil de7558f095 fix(editor): eliminate multi-second Markdown blank-run scans (#20231)
* fix(editor): keep Markdown blank-run scans linear

* test(editor): guard rich Markdown blank-run performance
2026-09-12 19:39:10 -07:00
b9263eaaf6 perf: reuse pending filesystem watcher debounce timers (#20264)
* perf: reuse pending filesystem watcher debounce timers

* fix: cancel watcher batches after terminal errors

* fix: null the cleared batch timer on last-listener unsubscribe

`Timeout.refresh()` is a no-op on a handle already passed to
`clearTimeout`. `unsubscribeLocalWatcher` cleared `root.batch.timer`
without nulling it, so a re-subscribe inside the teardown grace window
reused the root with a dead handle and `scheduleLocalBatchFlush` never
re-armed — fs change events for that root stopped reaching the renderer.

- Null `root.batch.timer` after clearing it in the unsubscribe path.
- Add a real-timer regression test covering unsubscribe + re-subscribe
  within the grace window; it fails on the previous PR head.

---------

Co-authored-by: Orca Worker <orca-worker@localhost>
Co-authored-by: Neil <neil@stably.ai>
2026-09-12 19:39:01 -07:00
Neil 8641b3af09 perf: remove repeated sibling scans from cyclic agent lineage cleanup (#20302) 2026-09-12 18:49:34 -07:00
OrcaWinandm4air 25a1259d28 perf(ai-vault): count recent sessions for scan cutoffs (#20301)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:36:57 -07:00
Neil 25d6cd75eb perf(cmd-j): scan phrase word boundaries monotonically (#20282) 2026-09-12 18:36:47 -07:00
OrcaWinandm4air 824dc5353a perf(chat): join transcript line fragments at record boundaries (#20278)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:36:37 -07:00
Neil a045af3618 perf(mobile): precompute Linear issue sort keys (#20249) 2026-09-12 18:36:28 -07:00
Neil a766df7a7a perf(plugins): index contributed keybindings by command (#20241) 2026-09-12 18:36:18 -07:00
Neil fbab61ec09 perf: skip unclosed suffixes when stripping review markdown tags (#20329) 2026-09-12 18:19:16 -07:00
Neil b1c6d53e90 perf: bound palette phrase placement to word starts (#20306) 2026-09-12 18:16:51 -07:00
Neil 490937a043 perf(git): classify bulk discard paths once (#20274)
* perf(git): classify bulk discard paths once

* style: format bulk discard partition
2026-09-12 18:16:41 -07:00
Neil d66de72db1 perf: stop review acknowledgement summaries at the first readable line (#20263) 2026-09-12 18:16:31 -07:00
OrcaWinandm4air 59d643c62b perf(ai-vault): deduplicate session scan batches incrementally (#20255)
* perf(ai-vault): deduplicate session scan batches incrementally

* perf(ai-vault): reduce scan-local occurrence metadata

---------

Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:16:21 -07:00
Neil b8f1849ba8 perf: scan markdown review lines with native newline search (#20245) 2026-09-12 18:16:12 -07:00
OrcaWinandOrca Worker dbac4e6ed2 perf: avoid rescanning partial transcript records (#20239)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:16:02 -07:00
Neil 2185389f2e perf(plugins): reconcile shortcut conflicts once per owner (#20237) 2026-09-12 18:15:52 -07:00
OrcaWinandm4air cb4321df8b perf(agents): avoid cloning lineage ancestor sets (#20236)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:15:42 -07:00
Neil 701dc2211c perf(mobile): precompute task sort keys and reuse repository collation (#20233) 2026-09-12 18:15:32 -07:00
Neil ef3b7e83b9 perf(mobile): reuse numeric collators across source control sorts (#20224) 2026-09-12 18:15:22 -07:00
OrcaWinandOrca Worker 2285971186 perf(checks): bound earlier error context collection (#20211)
* perf(checks): bound earlier error context collection

* docs: record bounded log excerpt ordering invariant

---------

Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:15:12 -07:00
OrcaWinandm4air 9b2b02bb3b perf(mobile): reuse UTF-8 prefix truncation for diagnostics (#20358)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:13:57 -07:00
Neil 38966784de perf: scan chat activity lines from the end (#20356) 2026-09-12 18:13:47 -07:00
OrcaWinandOrca Worker 37fca54473 perf: avoid copying single-chunk process output (#20355)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:13:37 -07:00
OrcaWinandm4air e74075d351 perf(localization): prefilter absent brands before regex matching (#20354)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:13:27 -07:00
OrcaWinandOrca Worker 8830b508b3 perf: reuse normalized executable during agent recognition (#20353)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:13:18 -07:00
Neil 6440fccf08 perf: skip quick command fields that cannot improve search scores (#20352) 2026-09-12 18:13:08 -07:00
Neil e3b72e17ec perf: skip nonmatching spans in quick open fuzzy scoring (#20349) 2026-09-12 18:12:58 -07:00
OrcaWinandm4air a0d26cadd8 perf(computer): avoid rescanning fragmented native provider replies (#20348)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:12:49 -07:00
OrcaWinandOrca Worker c07e33bf42 perf: reuse shared SHA-256 for renderer fallback (#20347)
* perf: reuse shared SHA-256 for renderer fallback

* test: wait for Windows child marker to become removable

---------

Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:12:39 -07:00
OrcaWinandOrca Worker 11fcb03dfa perf: avoid typed-array iteration in shared SHA-256 blocks (#20346)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:12:29 -07:00
Neil 0537c6eb3b perf: index drain migration inventories by assignment identity (#20344) 2026-09-12 18:12:20 -07:00
OrcaWinandOrca Worker dcc1f90125 perf: count bot comments without a filtered array (#20343)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:12:10 -07:00
OrcaWinandOrca Worker 3c7c846a1d perf: compute check severity once per sort (#20342)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:12:00 -07:00
OrcaWinandOrca Worker 230f834013 perf: reuse accepted project group IDs for parent validation (#20341)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:11:51 -07:00
OrcaWinandOrca Worker 5f0c5d15d9 perf: collect terminal snapshot replay without wrapper arrays (#20338)
* perf: collect terminal snapshot replay without wrapper arrays

* test: wait for Windows child marker to become removable

---------

Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:11:41 -07:00
Neil 597d079535 perf: reuse unchanged history page byte totals (#20337) 2026-09-12 18:11:31 -07:00
OrcaWinandOrca Worker 973add3dc6 perf: remove duplicate empty-file filtering from search finalization (#20335)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:11:21 -07:00
OrcaWinandOrca Worker 13c0c8b535 perf: select matching model IDs without sorting (#20334)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:11:11 -07:00
OrcaWinandm4air 91ecd32711 perf(terminal): reuse bounded native snapshot byte checks (#20333)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:11:01 -07:00
OrcaWinandOrca Worker b94ecbcaa1 perf: reject file-count labels before parsing edit patches (#20330)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:10:50 -07:00
OrcaWinandOrca Worker 3d648003ec perf: count chat tool calls without a filtered array (#20328)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:10:40 -07:00
OrcaWinandOrca Worker 0d4d059ae1 perf: stop building chat diff sections beyond preview limit (#20321)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:10:30 -07:00
Neil 30424810fe perf: use native newline search in rich Markdown code stripping (#20320) 2026-09-12 18:10:21 -07:00
OrcaWinandm4air d57011fb34 perf(checks): bound log excerpt byte-limit checks (#20319)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:10:11 -07:00
OrcaWinandOrca Worker 35e2986cec perf: fast-path Windows arguments without escapes (#20318)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:10:01 -07:00
OrcaWinandm4air 99cca036e7 perf(ssh): copy cleanup tab map only once (#20315)
Co-authored-by: m4air <m4air@Mac.localdomain>
2026-09-12 18:09:51 -07:00
OrcaWinandOrca Worker 627b7432c5 perf: find path basename without splitting all segments (#20312)
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:09:42 -07:00