mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Prefer the most recent session when queueing by name (#39385)
## What changed - Resolve duplicate exact-name matches to the most recent session instead of rejecting the queue request as ambiguous. - Include non-interactive and custom-source sessions in name-based queue lookups. - Prefer state database matches before falling back to rollout scanning. ## Testing - Cover queueing to non-interactive and custom-source sessions, including duplicate names and a state database match that avoids importing a legacy rollout. GitOrigin-RevId: 5b019da0a950c9381d324a09a21c78a9d0ac2252
This commit is contained in:
1 parent
8843960ba0
commit
14a8ac89af
3 files changed
+62
-38
No files matched your search
@@ -92,7 +92,7 @@ pub(super) async fn run_session_queue_action_with_app_server(
|
||||
codex_home,
|
||||
target,
|
||||
/*archived*/ false,
|
||||
SessionNameMatch::Unique,
|
||||
SessionNameMatch::FirstIncludingNonInteractive,
|
||||
)
|
||||
.await?
|
||||
.ok_or_else(|| eyre!("No active session found matching '{target}'."))?;
|
||||
|
||||
Reference in new issue
Block a user