mirror of
https://github.com/openai/codex.git
synced 2026-10-18 17:18:52 +00:00
## Why Dropping the last board handle releases its state but leaves a stale entry in `InMemoryMessageBoards`, allowing registry entries to accumulate across sessions. ## What changed Prune entries whose state has no remaining strong references whenever a board is opened, while preserving shared state for live boards. ## Testing Add a regression test that repeatedly opens and drops boards, checks that expired entries are removed, and verifies that reopening a live board shares its state. GitOrigin-RevId: c3f1c27b42ee17915f0ece01b85a22d0fdf632ce