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
OrcaWin and m4air
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
OrcaWin and m4air
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
a766df7a7a
perf(plugins): index contributed keybindings by command ( #20241 )
2026-09-12 18:36:18 -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
OrcaWin and m4air
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
OrcaWin and Orca 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
OrcaWin and m4air
cb4321df8b
perf(agents): avoid cloning lineage ancestor sets ( #20236 )
...
Co-authored-by: m4air <m4air@Mac.localdomain >
2026-09-12 18:15:42 -07:00
OrcaWin and Orca 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
Neil
38966784de
perf: scan chat activity lines from the end ( #20356 )
2026-09-12 18:13:47 -07:00
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and m4air
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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and m4air
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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and m4air
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
OrcaWin and Orca 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
OrcaWin and m4air
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
OrcaWin and Orca 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
OrcaWin and Orca Worker
6f32701985
perf: reuse Windows PATH normalization within merges ( #20309 )
...
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:09:33 -07:00
OrcaWin and Orca Worker
b7a1aeda5d
perf: avoid per-item arrays in journal projection ( #20305 )
...
Co-authored-by: Orca Worker <orca-worker@localhost>
2026-09-12 18:09:22 -07:00
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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
OrcaWin and Orca 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