codex: set created API keys in session env

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Fan
2026-03-25 23:50:26 -04:00
parent a19cf09ac5
commit 39821795d4
4 changed files with 76 additions and 72 deletions

View File

@@ -8,6 +8,7 @@ use crate::file_watcher::WatchRegistration;
use crate::protocol::Event;
use crate::protocol::Op;
use crate::protocol::Submission;
use std::collections::HashMap;
use codex_features::Feature;
use codex_protocol::config_types::ApprovalsReviewer;
use codex_protocol::config_types::Personality;
@@ -122,6 +123,10 @@ impl CodexThread {
self.codex.agent_status().await
}
pub async fn set_dependency_env(&self, values: HashMap<String, String>) {
self.codex.set_dependency_env(values).await;
}
pub(crate) fn subscribe_status(&self) -> watch::Receiver<AgentStatus> {
self.codex.agent_status.clone()
}