Commit Graph
3 Commits
Author SHA1 Message Date
Neil 009e86addc refactor(terminal): drop the contrast-cache _seen map
The admission set was a third bounded map inside a patch whose purpose is
capping memory. The color and CSS maps only ever clear together, so either
one already holding the pair proves it was counted.
2026-09-19 15:08:24 -07:00
Neil 8e34d8a876 fix(terminal): count a contrast-cache pair once toward the entry cap
`_admitNewEntry` fired from both `setCss` and `setColor`, so one (bg, fg)
pair consumed two of the 4096 slots and the cache actually wiped at ~2048
pairs. Track admission in a `_seen` TwoKeyMap keyed by the pair, cleared
with the other maps, so the bound matches the documented constant.

Regenerated the desktop and mobile bundle patches and both lockfile hashes.
2026-09-19 15:04:42 -07:00
m4air 23a6b7a70c fix(mobile): ship bounded terminal contrast caches 2026-09-18 20:06:15 -07:00