mirror of
https://github.com/openai/codex.git
synced 2026-12-02 00:31:03 +00:00
## Why Thread stores can do work before Core starts, but the ordinary creation API has no way to pass that state back to the store when it creates the thread. ## What changed Pass optional, single-use `ThreadStoreCreatePreparation` from `StartThreadOptions` to `ThreadStore::create_thread_with_preparation` when creating a persisted thread, including a fork. Reject creation preparation for ephemeral or resumed threads. Stores that do not implement the prepared creation method return an unsupported-operation error. ## Testing Add a regression test that supplies creation preparation to a prepared fork and checks that it reaches the prepared creation method by asserting the default unsupported-operation error. GitOrigin-RevId: bc4d3e9e5d89dd7503aed75423bc9c9d42c7f7fc