Files
archived-orca/src/preload
Jinjing 2c97e41cc6 fix(worktree-delete): cancel local at-risk ignored-file scans when the delete preview closes (STA-15114) (#41835)
* fix(worktree-delete): cancel local at-risk ignored-file scans when the preview closes (STA-15114)

The delete preview aborts its controller on close/retarget, but the local
branch of getRuntimeWorktreeAtRiskLocalFiles dropped the signal and the
git:atRiskLocalFiles IPC had no cancel channel, so main kept running
queued/active git ls-files and file comparisons for obsolete previews.

Mirror git:status cancellation: a per-request token plus
git:cancelAtRiskLocalFiles aborts the sender-scoped controller whose signal
now reaches readWorktreeAtRiskLocalFiles (admission, git child, compares).
The web shim registers its controller before the worktree lookup and keeps
the typed RuntimeRpcCallError unwrap for old-host fallback.

* fix(worktree-delete): bound abortable web scan responses
2026-11-13 12:27:19 -08:00
..