The background-compaction table is written only when every Codex that
reads the config is known to be new enough. The openai.chatgpt extension's
reader was always made with no version, so any machine with the extension
installed counted as "unknown" and the table, with the threshold, was
held out: Codex compacted at its own 65%.
The extension ships bin/<target>/codex-package.json beside its codex
(checked in the real Open VSX packages of chatgpt 26.51111.21308, Linux
x64 and Windows x64: "version": "0.169.0-alpha.11.1"). It is read now, one
reader per installed copy, in every dot folder's extensions (VS Code,
VS Code Server, Cursor, Windsurf, VSCodium, ...); copies in .obsolete are
skipped. A version that can't be read stays unknown, not old. Settings'
existing note (codexAsyncHeld) names the editor extension and its version
when it is what holds the threshold back.
Run: TestExtensionCodexVersionRead (new; red with the version read turned
off by hand: got map[:4]), go vet darwin/linux/windows, gofmt, and go test
./internal/agent on mote, ok.
Not tried: a live VS Code with the extension; the full suite before the tag.
The macOS extension layout is the same package (darwin vsix not unpacked).