Fix Codex transcript streaming and images
This commit is contained in:
1 parent
14dd520719
commit
4dc3e3d784
7 files changed
+422
-53
No files matched your search
@@ -2416,6 +2416,22 @@ fn launch(
|
||||
}
|
||||
});
|
||||
}
|
||||
if provider.kind == DriverKind::CodexCli
|
||||
&& shared.context_tokens.lock().unwrap().is_none()
|
||||
&& let Some(thread_id) = codex::read_thread(&dir)
|
||||
{
|
||||
let transport = Transport::for_setup(setup);
|
||||
let shared = Arc::clone(&shared);
|
||||
tokio::spawn(async move {
|
||||
if let Some(context) = codex::context_of(&transport, &thread_id).await {
|
||||
// A live turn may have answered while the rollout read was in flight.
|
||||
let mut held = shared.context_tokens.lock().unwrap();
|
||||
if held.is_none() {
|
||||
*held = Some(context);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
// An imported session shares its transcript file with the CLI, so work
|
||||
// done at a terminal belongs in this session too and arrives without
|
||||
|
||||
Reference in new issue
Block a user