Files
orca/docs
Jinwoo-H 3d50a886c7 refactor(browser): match the desktop guest budget instead of inventing policy
Headless reclamation now has exactly the policy surface the desktop guest budget
has, and nothing more.

Dropped the retained-page limit and its outright close. Desktop destroys guests
but never removes a tab, so closing a page past a count had no precedent here
and was the one genuinely novel product decision in this change — it permanently
destroyed a page id an agent still held. Parked records are ~200 bytes against
the 220-480 MB renderers being reclaimed, so retaining them indefinitely is the
right trade and matches what desktop already does.

Dropped the download veto's progress window with it. Desktop treats an active
download as work in progress for as long as it stays active, and headless now
does the same. That accepts the same unbounded-veto shape desktop has: a
download that never completes keeps its page resident. Deliberate, and the
alternative was a threshold desktop does not have.

What stays is the part with precedent: a resident cap of 4 (the desktop limit),
LRU eviction, and the idle clock headless needs because it has no notion of a
visible worktree.
2026-08-19 19:07:13 -04:00
..