GitHub issue #35940 in openai/codex, created 2026-07-29 by Darkplates and titled "Windows: codex sandbox leaks one logon session per invocation (lsass grows until reboot)", reports that on Windows 11 Pro, every `codex sandbox` invocation creates an interactive logon session for the `CodexSandboxOffline` sandbox account and never releases it, so the sessions accumulate inside `lsass.exe` for the lifetime of the boot and can only be reclaimed by a reboot. After 23 hours of automated use the author's machine held 15,510 orphaned logon sessions and `lsass` had grown to 79,396 handles, with progressive whole-desktop slowness that persisted after every Codex process had exited and disappeared only on reboot. `codex exec` does not leak; only `codex sandbox` does. The author measured 0.66 to 1.5 leaked sessions per invocation in `elevated` mode and 0 in `unelevated` mode, and expects `codex sandbox` to release the logon session it creates when the sandboxed command exits, or reuse a single session across invocations.
Verbatim Excerpts from Cited Records
“On Windows, every `codex sandbox` invocation creates an interactive logon session for the `CodexSandboxOffline` sandbox account and never releases it.”
“After 23 hours of automated use this machine held **15 510 orphaned logon sessions** and `lsass` had grown to **79 396 handles**.”
“`codex exec` does **not** leak. Only `codex sandbox` does.”
“`codex sandbox` should release the logon session it creates when the sandboxed command exits, or reuse a single session across invocations.”
Counter-record: 24 comments read in total. Issue still open as of 2026-12-05; no maintainer fix, no closure, no duplicate, no withdrawal. Multiple independent confirmations: ArsenBilov (2026-09-10, 37.6-hour session, same LSASS handle accumulation), xPkFyre (2026-09-14, kernel-level token-reference root-cause analysis), railapex (2026-10-01, on-demand reproduction with a foreground-lock candidate trigger), Tuguk (2026-10-05, still present on Desktop 26.930.3930.0), talraveh1 (2026-10-08, `codex exec` still leaks on CLI 0.160.0), xlookum (2026-10-15, 27,888 live sessions after 9.2 days), BIOcanse (2026-10-27), lorthris (2026-10-31), HK1211 (2026-11-13, CLI 0.167.0), NicolasDLT (2026-11-14, process-creation latency), mcmorry (2026-11-16, kernel stack), mack-shippen (2026-11-28 and 2026-12-03, re-measured on CLI 0.172.0), SerakX-92 (2026-12-03, CLI 0.172.0), vladSirin (2026-12-04), 43334333 (2026-12-04, controlled A/B reproduction with UAC and application launch failures), and mack-shippen again (2026-12-05, still accumulating on CLI 0.174.0, latest stable). Author follow-up (2026-07-29) qualifies the report: the leak is state-dependent, not constant — after a reboot the same measurements leaked 0 sessions on a fresh boot, and something later tips lsass into never releasing them; the 22-hour uptime figures in the opening body describe the degraded regime. djangorepos (2026-11-30) proposes switching to `unelevated` as a workaround and a single-logon-token-per-session fix. csiprivate (2026-12-05) claims a root cause and a verified fix on a fork branch (external PRs are disabled per docs/contributing.md); the fork fix is unmerged and unverified by maintainers.
Falsification probe: If issue #35940 is closed as fixed, as a duplicate, or as not planned, or if the author edits the opening body so the quoted sentences no longer match verbatim, this claim drops to Withdrawn.
Audit verification: Verified 100% continuous verbatim substring against official GitHub REST API by
scripts/verify_claim_verbatim.py.