mirror of
https://github.com/openai/codex.git
synced 2026-11-20 07:06:24 +00:00
Allow guarded legacy resume with background migration enabled (#43178)
## Why Enabling background rollout migration disabled the TUI's cached legacy resume shortcut, even when the rollout maintenance lock could prevent migration during resume. ## What changed Allow embedded sessions to use the shortcut regardless of migration feature settings when they acquire the maintenance lock and revalidate that the thread still uses legacy history. Hold the lock through `thread/resume` so the response can safely include turns. Remove the session's cached startup migration setting. ## Testing Update the regression test to cover all four combinations of startup and workspace migration settings, checking lock acquisition before metadata revalidation, a two-request resume, and nonempty history. GitOrigin-RevId: cf525a6edb813050469dff39b83e5e61214485a1
This commit is contained in:
1 parent
9587c9ef36
commit
ac192cd793
6 files changed
+75
-97
No files matched your search
@@ -380,7 +380,8 @@ async fn start_recording_app_server_with_history(
|
||||
.await?;
|
||||
|
||||
Ok((
|
||||
AppServerSession::new(app_server, thread_params_mode).with_startup_config(config),
|
||||
AppServerSession::new(app_server, thread_params_mode)
|
||||
.with_local_codex_home(&config.codex_home),
|
||||
requests,
|
||||
proxy,
|
||||
))
|
||||
|
||||
Reference in new issue
Block a user