codex: make create-api-key app-server backed

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Michael Fan
2026-04-05 18:07:48 -04:00
parent b5edeb98a0
commit 7636437244
34 changed files with 2453 additions and 254 deletions

View File

@@ -22,6 +22,7 @@ use codex_protocol::protocol::Submission;
use codex_protocol::protocol::TokenUsage;
use codex_protocol::protocol::W3cTraceContext;
use codex_protocol::user_input::UserInput;
use std::collections::HashMap;
use std::path::PathBuf;
use tokio::sync::Mutex;
use tokio::sync::watch;
@@ -123,6 +124,14 @@ impl CodexThread {
self.codex.agent_status().await
}
pub async fn dependency_env(&self) -> HashMap<String, String> {
self.codex.session.dependency_env().await
}
pub async fn set_dependency_env(&self, values: HashMap<String, String>) {
self.codex.session.set_dependency_env(values).await;
}
pub(crate) fn subscribe_status(&self) -> watch::Receiver<AgentStatus> {
self.codex.agent_status.clone()
}