mirror of
https://github.com/openai/codex.git
synced 2026-09-06 15:29:32 +00:00
## Why Cold `thread/resume` configuration loading can call back into the host. Holding the global metadata permit during that work blocks unrelated thread metadata updates and MCP requests. ## What changed - Release the metadata permit while loading configuration for a cold resume. - Reacquire the permit and reload the resolved thread history before startup. - Reload configuration when persisted metadata, settings, or the history working directory changed during the unlocked interval. - Rejoin a thread that another request resumed concurrently, and avoid reopening threads that were archived or deleted. ## Testing Add coverage for unrelated metadata and MCP requests during a blocked config load, concurrent resume mutations, and the extra history read required for non-local thread stores. GitOrigin-RevId: 8cbd3868eeff84968765b1e3dbc7590ebe5fa892