repo
stringlengths
6
65
file_url
stringlengths
81
311
file_path
stringlengths
6
227
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:31:58
2026-01-04 20:25:31
truncated
bool
2 classes
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/send_message.rs
codex-rs/app-server/tests/suite/send_message.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_final_assistant_message_sse_response; use app_test_support::create_mock_chat_completions_server; use app_test_support::to_response; use codex_app_server_protocol::AddConversationListenerParams; use codex_app_server_protocol::AddConversat...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/codex_message_processor_flow.rs
codex-rs/app-server/tests/suite/codex_message_processor_flow.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_final_assistant_message_sse_response; use app_test_support::create_mock_chat_completions_server; use app_test_support::create_shell_command_sse_response; use app_test_support::format_with_current_shell; use app_test_support::to_response;...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/create_conversation.rs
codex-rs/app-server/tests/suite/create_conversation.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_final_assistant_message_sse_response; use app_test_support::create_mock_chat_completions_server; use app_test_support::to_response; use codex_app_server_protocol::AddConversationListenerParams; use codex_app_server_protocol::AddConversat...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/archive_conversation.rs
codex-rs/app-server/tests/suite/archive_conversation.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::to_response; use codex_app_server_protocol::ArchiveConversationParams; use codex_app_server_protocol::ArchiveConversationResponse; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::NewConversationParams; use codex_a...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/user_info.rs
codex-rs/app-server/tests/suite/user_info.rs
use anyhow::Result; use app_test_support::ChatGptAuthFixture; use app_test_support::McpProcess; use app_test_support::to_response; use app_test_support::write_chatgpt_auth; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use codex_app_server_protocol::UserInfoResponse; use code...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/login.rs
codex-rs/app-server/tests/suite/login.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::to_response; use codex_app_server_protocol::GetAuthStatusParams; use codex_app_server_protocol::GetAuthStatusResponse; use codex_app_server_protocol::JSONRPCError; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::L...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/user_agent.rs
codex-rs/app-server/tests/suite/user_agent.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::to_response; use codex_app_server_protocol::GetUserAgentResponse; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use pretty_assertions::assert_eq; use tempfile::TempDir; use tokio::time::timeout; cons...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/list_resume.rs
codex-rs/app-server/tests/suite/list_resume.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_fake_rollout; use app_test_support::to_response; use codex_app_server_protocol::JSONRPCNotification; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::ListConversationsParams; use codex_app_server_protocol::L...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/auth.rs
codex-rs/app-server/tests/suite/auth.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::to_response; use codex_app_server_protocol::AuthMode; use codex_app_server_protocol::GetAuthStatusParams; use codex_app_server_protocol::GetAuthStatusResponse; use codex_app_server_protocol::JSONRPCError; use codex_app_server_protocol::JSONRPCR...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/set_default_model.rs
codex-rs/app-server/tests/suite/set_default_model.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::to_response; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use codex_app_server_protocol::SetDefaultModelParams; use codex_app_server_protocol::SetDefaultModelResponse; use codex_core::config::ConfigT...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/mod.rs
codex-rs/app-server/tests/suite/mod.rs
mod archive_conversation; mod auth; mod codex_message_processor_flow; mod config; mod create_conversation; mod fuzzy_file_search; mod interrupt; mod list_resume; mod login; mod send_message; mod set_default_model; mod user_agent; mod user_info; mod v2;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/interrupt.rs
codex-rs/app-server/tests/suite/interrupt.rs
#![cfg(unix)] // Support code lives in the `app_test_support` crate under tests/common. use std::path::Path; use codex_app_server_protocol::AddConversationListenerParams; use codex_app_server_protocol::InterruptConversationParams; use codex_app_server_protocol::InterruptConversationResponse; use codex_app_server_prot...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/fuzzy_file_search.rs
codex-rs/app-server/tests/suite/fuzzy_file_search.rs
use anyhow::Result; use anyhow::anyhow; use app_test_support::McpProcess; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use pretty_assertions::assert_eq; use serde_json::json; use tempfile::TempDir; use tokio::time::timeout; const DEFAULT_READ_TIMEOUT: std::time::Duration = ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/thread_archive.rs
codex-rs/app-server/tests/suite/v2/thread_archive.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::to_response; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use codex_app_server_protocol::ThreadArchiveParams; use codex_app_server_protocol::ThreadArchiveResponse; use codex_app_server_protocol::Thre...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/thread_resume.rs
codex-rs/app-server/tests/suite/v2/thread_resume.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_fake_rollout; use app_test_support::create_mock_chat_completions_server; use app_test_support::to_response; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use codex_app_server_protocol::SessionS...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/turn_interrupt.rs
codex-rs/app-server/tests/suite/v2/turn_interrupt.rs
#![cfg(unix)] use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_mock_chat_completions_server; use app_test_support::create_shell_command_sse_response; use app_test_support::to_response; use codex_app_server_protocol::JSONRPCNotification; use codex_app_server_protocol::JSONRPCResponse; ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/model_list.rs
codex-rs/app-server/tests/suite/v2/model_list.rs
use std::time::Duration; use anyhow::Result; use anyhow::anyhow; use app_test_support::McpProcess; use app_test_support::to_response; use app_test_support::write_models_cache; use codex_app_server_protocol::JSONRPCError; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::Model; use codex_ap...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/thread_start.rs
codex-rs/app-server/tests/suite/v2/thread_start.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_mock_chat_completions_server; use app_test_support::to_response; use codex_app_server_protocol::JSONRPCNotification; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use codex_app_server_protocol:...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/mod.rs
codex-rs/app-server/tests/suite/v2/mod.rs
mod account; mod config_rpc; mod model_list; mod rate_limits; mod review; mod thread_archive; mod thread_list; mod thread_resume; mod thread_start; mod turn_interrupt; mod turn_start;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/config_rpc.rs
codex-rs/app-server/tests/suite/v2/config_rpc.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::test_path_buf_with_windows; use app_test_support::test_tmp_path_buf; use app_test_support::to_response; use codex_app_server_protocol::AskForApproval; use codex_app_server_protocol::ConfigBatchWriteParams; use codex_app_server_protocol::ConfigE...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/turn_start.rs
codex-rs/app-server/tests/suite/v2/turn_start.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_apply_patch_sse_response; use app_test_support::create_exec_command_sse_response; use app_test_support::create_final_assistant_message_sse_response; use app_test_support::create_mock_chat_completions_server; use app_test_support::create_...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
true
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/thread_list.rs
codex-rs/app-server/tests/suite/v2/thread_list.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_fake_rollout; use app_test_support::to_response; use codex_app_server_protocol::GitInfo as ApiGitInfo; use codex_app_server_protocol::JSONRPCResponse; use codex_app_server_protocol::RequestId; use codex_app_server_protocol::SessionSource...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/rate_limits.rs
codex-rs/app-server/tests/suite/v2/rate_limits.rs
use anyhow::Result; use app_test_support::ChatGptAuthFixture; use app_test_support::McpProcess; use app_test_support::to_response; use app_test_support::write_chatgpt_auth; use codex_app_server_protocol::GetAccountRateLimitsResponse; use codex_app_server_protocol::JSONRPCError; use codex_app_server_protocol::JSONRPCRes...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/review.rs
codex-rs/app-server/tests/suite/v2/review.rs
use anyhow::Result; use app_test_support::McpProcess; use app_test_support::create_final_assistant_message_sse_response; use app_test_support::create_mock_chat_completions_server_unchecked; use app_test_support::to_response; use codex_app_server_protocol::ItemCompletedNotification; use codex_app_server_protocol::ItemSt...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/suite/v2/account.rs
codex-rs/app-server/tests/suite/v2/account.rs
use anyhow::Result; use anyhow::bail; use app_test_support::McpProcess; use app_test_support::to_response; use app_test_support::ChatGptAuthFixture; use app_test_support::write_chatgpt_auth; use codex_app_server_protocol::Account; use codex_app_server_protocol::AuthMode; use codex_app_server_protocol::CancelLoginAccou...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/common/responses.rs
codex-rs/app-server/tests/common/responses.rs
use serde_json::json; use std::path::Path; pub fn create_shell_command_sse_response( command: Vec<String>, workdir: Option<&Path>, timeout_ms: Option<u64>, call_id: &str, ) -> anyhow::Result<String> { // The `arguments` for the `shell_command` tool is a serialized JSON object. let command_str =...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/common/lib.rs
codex-rs/app-server/tests/common/lib.rs
mod auth_fixtures; mod mcp_process; mod mock_model_server; mod models_cache; mod responses; mod rollout; pub use auth_fixtures::ChatGptAuthFixture; pub use auth_fixtures::ChatGptIdTokenClaims; pub use auth_fixtures::encode_id_token; pub use auth_fixtures::write_chatgpt_auth; use codex_app_server_protocol::JSONRPCRespo...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/common/rollout.rs
codex-rs/app-server/tests/common/rollout.rs
use anyhow::Result; use codex_protocol::ConversationId; use codex_protocol::protocol::GitInfo; use codex_protocol::protocol::SessionMeta; use codex_protocol::protocol::SessionMetaLine; use codex_protocol::protocol::SessionSource; use serde_json::json; use std::fs; use std::path::Path; use std::path::PathBuf; use uuid::...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/common/auth_fixtures.rs
codex-rs/app-server/tests/common/auth_fixtures.rs
use std::path::Path; use anyhow::Context; use anyhow::Result; use base64::Engine; use base64::engine::general_purpose::URL_SAFE_NO_PAD; use chrono::DateTime; use chrono::Utc; use codex_core::auth::AuthCredentialsStoreMode; use codex_core::auth::AuthDotJson; use codex_core::auth::save_auth; use codex_core::token_data::...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/common/mcp_process.rs
codex-rs/app-server/tests/common/mcp_process.rs
use std::collections::VecDeque; use std::path::Path; use std::process::Stdio; use std::sync::atomic::AtomicI64; use std::sync::atomic::Ordering; use tokio::io::AsyncBufReadExt; use tokio::io::AsyncWriteExt; use tokio::io::BufReader; use tokio::process::Child; use tokio::process::ChildStdin; use tokio::process::ChildStd...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/common/mock_model_server.rs
codex-rs/app-server/tests/common/mock_model_server.rs
use std::sync::atomic::AtomicUsize; use std::sync::atomic::Ordering; use wiremock::Mock; use wiremock::MockServer; use wiremock::Respond; use wiremock::ResponseTemplate; use wiremock::matchers::method; use wiremock::matchers::path; /// Create a mock server that will provide the responses, in order, for /// requests t...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/app-server/tests/common/models_cache.rs
codex-rs/app-server/tests/common/models_cache.rs
use chrono::DateTime; use chrono::Utc; use codex_core::models_manager::model_presets::all_model_presets; use codex_protocol::openai_models::ConfigShellToolType; use codex_protocol::openai_models::ModelInfo; use codex_protocol::openai_models::ModelPreset; use codex_protocol::openai_models::ModelVisibility; use codex_pro...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/arg0/src/lib.rs
codex-rs/arg0/src/lib.rs
use std::future::Future; use std::path::Path; use std::path::PathBuf; use codex_core::CODEX_APPLY_PATCH_ARG1; #[cfg(unix)] use std::os::unix::fs::symlink; use tempfile::TempDir; const LINUX_SANDBOX_ARG0: &str = "codex-linux-sandbox"; const APPLY_PATCH_ARG0: &str = "apply_patch"; const MISSPELLED_APPLY_PATCH_ARG0: &st...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/lib.rs
codex-rs/codex-api/src/lib.rs
pub mod auth; pub mod common; pub mod endpoint; pub mod error; pub mod provider; pub mod rate_limits; pub mod requests; pub mod sse; pub mod telemetry; pub use codex_client::RequestTelemetry; pub use codex_client::ReqwestTransport; pub use codex_client::TransportError; pub use crate::auth::AuthProvider; pub use crate...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/telemetry.rs
codex-rs/codex-api/src/telemetry.rs
use codex_client::Request; use codex_client::RequestTelemetry; use codex_client::Response; use codex_client::RetryPolicy; use codex_client::StreamResponse; use codex_client::TransportError; use codex_client::run_with_retry; use http::StatusCode; use std::future::Future; use std::sync::Arc; use std::time::Duration; use ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/error.rs
codex-rs/codex-api/src/error.rs
use crate::rate_limits::RateLimitError; use codex_client::TransportError; use http::StatusCode; use std::time::Duration; use thiserror::Error; #[derive(Debug, Error)] pub enum ApiError { #[error(transparent)] Transport(#[from] TransportError), #[error("api error {status}: {message}")] Api { status: Sta...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/auth.rs
codex-rs/codex-api/src/auth.rs
use codex_client::Request; /// Provides bearer and account identity information for API requests. /// /// Implementations should be cheap and non-blocking; any asynchronous /// refresh or I/O should be handled by higher layers before requests /// reach this interface. pub trait AuthProvider: Send + Sync { fn beare...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/common.rs
codex-rs/codex-api/src/common.rs
use crate::error::ApiError; use codex_protocol::config_types::ReasoningSummary as ReasoningSummaryConfig; use codex_protocol::config_types::Verbosity as VerbosityConfig; use codex_protocol::models::ResponseItem; use codex_protocol::openai_models::ReasoningEffort as ReasoningEffortConfig; use codex_protocol::protocol::R...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/provider.rs
codex-rs/codex-api/src/provider.rs
use codex_client::Request; use codex_client::RetryOn; use codex_client::RetryPolicy; use http::Method; use http::header::HeaderMap; use std::collections::HashMap; use std::time::Duration; /// Wire-level APIs supported by a `Provider`. #[derive(Debug, Clone, PartialEq, Eq)] pub enum WireApi { Responses, Chat, ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/rate_limits.rs
codex-rs/codex-api/src/rate_limits.rs
use codex_protocol::protocol::CreditsSnapshot; use codex_protocol::protocol::RateLimitSnapshot; use codex_protocol::protocol::RateLimitWindow; use http::HeaderMap; use std::fmt::Display; #[derive(Debug)] pub struct RateLimitError { pub message: String, } impl Display for RateLimitError { fn fmt(&self, f: &mut...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/requests/responses.rs
codex-rs/codex-api/src/requests/responses.rs
use crate::common::Reasoning; use crate::common::ResponsesApiRequest; use crate::common::TextControls; use crate::error::ApiError; use crate::provider::Provider; use crate::requests::headers::build_conversation_headers; use crate::requests::headers::insert_header; use crate::requests::headers::subagent_header; use code...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/requests/headers.rs
codex-rs/codex-api/src/requests/headers.rs
use codex_protocol::protocol::SessionSource; use http::HeaderMap; use http::HeaderValue; pub(crate) fn build_conversation_headers(conversation_id: Option<String>) -> HeaderMap { let mut headers = HeaderMap::new(); if let Some(id) = conversation_id { insert_header(&mut headers, "conversation_id", &id); ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/requests/mod.rs
codex-rs/codex-api/src/requests/mod.rs
pub mod chat; pub(crate) mod headers; pub mod responses; pub use chat::ChatRequest; pub use chat::ChatRequestBuilder; pub use responses::ResponsesRequest; pub use responses::ResponsesRequestBuilder;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/requests/chat.rs
codex-rs/codex-api/src/requests/chat.rs
use crate::error::ApiError; use crate::provider::Provider; use crate::requests::headers::build_conversation_headers; use crate::requests::headers::insert_header; use crate::requests::headers::subagent_header; use codex_protocol::models::ContentItem; use codex_protocol::models::FunctionCallOutputContentItem; use codex_p...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/sse/responses.rs
codex-rs/codex-api/src/sse/responses.rs
use crate::common::ResponseEvent; use crate::common::ResponseStream; use crate::error::ApiError; use crate::rate_limits::parse_rate_limit; use crate::telemetry::SseTelemetry; use codex_client::ByteStream; use codex_client::StreamResponse; use codex_client::TransportError; use codex_protocol::models::ResponseItem; use c...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/sse/mod.rs
codex-rs/codex-api/src/sse/mod.rs
pub mod chat; pub mod responses; pub use responses::process_sse; pub use responses::spawn_response_stream; pub use responses::stream_from_fixture;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/sse/chat.rs
codex-rs/codex-api/src/sse/chat.rs
use crate::common::ResponseEvent; use crate::common::ResponseStream; use crate::error::ApiError; use crate::telemetry::SseTelemetry; use codex_client::StreamResponse; use codex_protocol::models::ContentItem; use codex_protocol::models::ReasoningItemContent; use codex_protocol::models::ResponseItem; use eventsource_stre...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/endpoint/responses.rs
codex-rs/codex-api/src/endpoint/responses.rs
use crate::auth::AuthProvider; use crate::common::Prompt as ApiPrompt; use crate::common::Reasoning; use crate::common::ResponseStream; use crate::common::TextControls; use crate::endpoint::streaming::StreamingClient; use crate::error::ApiError; use crate::provider::Provider; use crate::provider::WireApi; use crate::re...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/endpoint/compact.rs
codex-rs/codex-api/src/endpoint/compact.rs
use crate::auth::AuthProvider; use crate::auth::add_auth_headers; use crate::common::CompactionInput; use crate::error::ApiError; use crate::provider::Provider; use crate::provider::WireApi; use crate::telemetry::run_with_request_telemetry; use codex_client::HttpTransport; use codex_client::RequestTelemetry; use codex_...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/endpoint/mod.rs
codex-rs/codex-api/src/endpoint/mod.rs
pub mod chat; pub mod compact; pub mod models; pub mod responses; mod streaming;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/endpoint/chat.rs
codex-rs/codex-api/src/endpoint/chat.rs
use crate::ChatRequest; use crate::auth::AuthProvider; use crate::common::Prompt as ApiPrompt; use crate::common::ResponseEvent; use crate::common::ResponseStream; use crate::endpoint::streaming::StreamingClient; use crate::error::ApiError; use crate::provider::Provider; use crate::provider::WireApi; use crate::sse::ch...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/endpoint/streaming.rs
codex-rs/codex-api/src/endpoint/streaming.rs
use crate::auth::AuthProvider; use crate::auth::add_auth_headers; use crate::common::ResponseStream; use crate::error::ApiError; use crate::provider::Provider; use crate::telemetry::SseTelemetry; use crate::telemetry::run_with_request_telemetry; use codex_client::HttpTransport; use codex_client::RequestTelemetry; use c...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/src/endpoint/models.rs
codex-rs/codex-api/src/endpoint/models.rs
use crate::auth::AuthProvider; use crate::auth::add_auth_headers; use crate::error::ApiError; use crate::provider::Provider; use crate::telemetry::run_with_request_telemetry; use codex_client::HttpTransport; use codex_client::RequestTelemetry; use codex_protocol::openai_models::ModelInfo; use codex_protocol::openai_mod...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/tests/sse_end_to_end.rs
codex-rs/codex-api/tests/sse_end_to_end.rs
use std::time::Duration; use anyhow::Result; use async_trait::async_trait; use bytes::Bytes; use codex_api::AggregateStreamExt; use codex_api::AuthProvider; use codex_api::Provider; use codex_api::ResponseEvent; use codex_api::ResponsesClient; use codex_api::WireApi; use codex_client::HttpTransport; use codex_client::...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/tests/clients.rs
codex-rs/codex-api/tests/clients.rs
use std::sync::Arc; use std::sync::Mutex; use std::time::Duration; use anyhow::Result; use async_trait::async_trait; use bytes::Bytes; use codex_api::AuthProvider; use codex_api::ChatClient; use codex_api::Provider; use codex_api::ResponsesClient; use codex_api::ResponsesOptions; use codex_api::WireApi; use codex_clie...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-api/tests/models_integration.rs
codex-rs/codex-api/tests/models_integration.rs
use codex_api::AuthProvider; use codex_api::ModelsClient; use codex_api::provider::Provider; use codex_api::provider::RetryConfig; use codex_api::provider::WireApi; use codex_client::ReqwestTransport; use codex_protocol::openai_models::ConfigShellToolType; use codex_protocol::openai_models::ModelInfo; use codex_protoco...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/ollama/src/lib.rs
codex-rs/ollama/src/lib.rs
mod client; mod parser; mod pull; mod url; pub use client::OllamaClient; use codex_core::config::Config; pub use pull::CliProgressReporter; pub use pull::PullEvent; pub use pull::PullProgressReporter; pub use pull::TuiProgressReporter; /// Default OSS model to use when `--oss` is passed without an explicit `-m`. pub ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/ollama/src/parser.rs
codex-rs/ollama/src/parser.rs
use serde_json::Value as JsonValue; use crate::pull::PullEvent; // Convert a single JSON object representing a pull update into one or more events. pub(crate) fn pull_events_from_value(value: &JsonValue) -> Vec<PullEvent> { let mut events = Vec::new(); if let Some(status) = value.get("status").and_then(|s| s....
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/ollama/src/url.rs
codex-rs/ollama/src/url.rs
/// Identify whether a base_url points at an OpenAI-compatible root (".../v1"). pub(crate) fn is_openai_compatible_base_url(base_url: &str) -> bool { base_url.trim_end_matches('/').ends_with("/v1") } /// Convert a provider base_url into the native Ollama host root. /// For example, "http://localhost:11434/v1" -> "...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/ollama/src/client.rs
codex-rs/ollama/src/client.rs
use bytes::BytesMut; use futures::StreamExt; use futures::stream::BoxStream; use serde_json::Value as JsonValue; use std::collections::VecDeque; use std::io; use crate::parser::pull_events_from_value; use crate::pull::PullEvent; use crate::pull::PullProgressReporter; use crate::url::base_url_to_host_root; use crate::u...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/ollama/src/pull.rs
codex-rs/ollama/src/pull.rs
use std::collections::HashMap; use std::io; use std::io::Write; /// Events emitted while pulling a model from Ollama. #[derive(Debug, Clone)] pub enum PullEvent { /// A human-readable status message (e.g., "verifying", "writing"). Status(String), /// Byte-level progress update for a specific layer digest. ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/otel/src/config.rs
codex-rs/otel/src/config.rs
use std::collections::HashMap; use std::path::PathBuf; use codex_utils_absolute_path::AbsolutePathBuf; #[derive(Clone, Debug)] pub struct OtelSettings { pub environment: String, pub service_name: String, pub service_version: String, pub codex_home: PathBuf, pub exporter: OtelExporter, pub trac...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/otel/src/lib.rs
codex-rs/otel/src/lib.rs
pub mod config; pub mod otel_manager; pub mod otel_provider;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/otel/src/otel_provider.rs
codex-rs/otel/src/otel_provider.rs
use crate::config::OtelExporter; use crate::config::OtelHttpProtocol; use crate::config::OtelSettings; use crate::config::OtelTlsConfig; use codex_utils_absolute_path::AbsolutePathBuf; use http::Uri; use opentelemetry::Context; use opentelemetry::KeyValue; use opentelemetry::context::ContextGuard; use opentelemetry::gl...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/otel/src/otel_manager.rs
codex-rs/otel/src/otel_manager.rs
use crate::otel_provider::traceparent_context_from_env; use chrono::SecondsFormat; use chrono::Utc; use codex_api::ResponseEvent; use codex_app_server_protocol::AuthMode; use codex_protocol::ConversationId; use codex_protocol::config_types::ReasoningSummary; use codex_protocol::models::ResponseItem; use codex_protocol:...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/src/lib.rs
codex-rs/chatgpt/src/lib.rs
pub mod apply_command; mod chatgpt_client; mod chatgpt_token; pub mod get_task;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/src/apply_command.rs
codex-rs/chatgpt/src/apply_command.rs
use std::path::PathBuf; use clap::Parser; use codex_common::CliConfigOverrides; use codex_core::config::Config; use crate::chatgpt_token::init_chatgpt_token_from_auth; use crate::get_task::GetTaskResponse; use crate::get_task::OutputItem; use crate::get_task::PrOutputItem; use crate::get_task::get_task; /// Applies ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/src/get_task.rs
codex-rs/chatgpt/src/get_task.rs
use codex_core::config::Config; use serde::Deserialize; use crate::chatgpt_client::chatgpt_get_request; #[derive(Debug, Deserialize)] pub struct GetTaskResponse { pub current_diff_task_turn: Option<AssistantTurn>, } // Only relevant fields for our extraction #[derive(Debug, Deserialize)] pub struct AssistantTurn...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/src/chatgpt_client.rs
codex-rs/chatgpt/src/chatgpt_client.rs
use codex_core::config::Config; use codex_core::default_client::create_client; use crate::chatgpt_token::get_chatgpt_token_data; use crate::chatgpt_token::init_chatgpt_token_from_auth; use anyhow::Context; use serde::de::DeserializeOwned; /// Make a GET request to the ChatGPT backend API. pub(crate) async fn chatgpt...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/src/chatgpt_token.rs
codex-rs/chatgpt/src/chatgpt_token.rs
use codex_core::CodexAuth; use std::path::Path; use std::sync::LazyLock; use std::sync::RwLock; use codex_core::auth::AuthCredentialsStoreMode; use codex_core::token_data::TokenData; static CHATGPT_TOKEN: LazyLock<RwLock<Option<TokenData>>> = LazyLock::new(|| RwLock::new(None)); pub fn get_chatgpt_token_data() -> Op...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/tests/all.rs
codex-rs/chatgpt/tests/all.rs
// Single integration test binary that aggregates all test modules. // The submodules live in `tests/suite/`. mod suite;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/tests/suite/apply_command_e2e.rs
codex-rs/chatgpt/tests/suite/apply_command_e2e.rs
use codex_chatgpt::apply_command::apply_diff_from_task; use codex_chatgpt::get_task::GetTaskResponse; use std::path::Path; use tempfile::TempDir; use tokio::process::Command; /// Creates a temporary git repository with initial commit async fn create_temp_git_repo() -> anyhow::Result<TempDir> { let temp_dir = TempD...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/chatgpt/tests/suite/mod.rs
codex-rs/chatgpt/tests/suite/mod.rs
// Aggregates all former standalone integration tests as modules. mod apply_command_e2e;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/responses-api-proxy/src/lib.rs
codex-rs/responses-api-proxy/src/lib.rs
use std::fs::File; use std::fs::{self}; use std::io::Write; use std::net::SocketAddr; use std::net::TcpListener; use std::path::Path; use std::path::PathBuf; use std::sync::Arc; use std::time::Duration; use anyhow::Context; use anyhow::Result; use anyhow::anyhow; use clap::Parser; use reqwest::Url; use reqwest::blocki...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/responses-api-proxy/src/read_api_key.rs
codex-rs/responses-api-proxy/src/read_api_key.rs
use anyhow::Context; use anyhow::Result; use anyhow::anyhow; use zeroize::Zeroize; /// Use a generous buffer size to avoid truncation and to allow for longer API /// keys in the future. const BUFFER_SIZE: usize = 1024; const AUTH_HEADER_PREFIX: &[u8] = b"Bearer "; /// Reads the auth token from stdin and returns a sta...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/responses-api-proxy/src/main.rs
codex-rs/responses-api-proxy/src/main.rs
use clap::Parser; use codex_responses_api_proxy::Args as ResponsesApiProxyArgs; #[ctor::ctor] fn pre_main() { codex_process_hardening::pre_main_hardening(); } pub fn main() -> anyhow::Result<()> { let args = ResponsesApiProxyArgs::parse(); codex_responses_api_proxy::run_main(args) }
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/lib.rs
codex-rs/codex-backend-openapi-models/src/lib.rs
#![allow(clippy::unwrap_used, clippy::expect_used)] // Re-export generated OpenAPI models. // The regen script populates `src/models/*.rs` and writes `src/models/mod.rs`. // This module intentionally contains no hand-written types. pub mod models;
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/git_pull_request.rs
codex-rs/codex-backend-openapi-models/src/models/git_pull_request.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct GitPullRequest { #[serde(rename = "number")] ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_details.rs
codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_details.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RateLimitStatusDetails { #...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/code_task_details_response.rs
codex-rs/codex-backend-openapi-models/src/models/code_task_details_response.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CodeTaskDetailsResponse { ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/external_pull_request_response.rs
codex-rs/codex-backend-openapi-models/src/models/external_pull_request_response.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct ExternalPullRequestResponse { ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/paginated_list_task_list_item_.rs
codex-rs/codex-backend-openapi-models/src/models/paginated_list_task_list_item_.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct PaginatedListTaskListItem { ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/task_response.rs
codex-rs/codex-backend-openapi-models/src/models/task_response.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct TaskResponse { #[serde(ren...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/credit_status_details.rs
codex-rs/codex-backend-openapi-models/src/models/credit_status_details.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct CreditStatusDetails { #[serde(rename = "has_cr...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/rate_limit_window_snapshot.rs
codex-rs/codex-backend-openapi-models/src/models/rate_limit_window_snapshot.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RateLimitWindowSnapshot { #[serde(rename = "us...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/mod.rs
codex-rs/codex-backend-openapi-models/src/models/mod.rs
// Curated minimal export list for current workspace usage. // NOTE: This file was previously auto-generated by the OpenAPI generator. // Currently export only the types referenced by the workspace // The process for this will change // Cloud Tasks pub mod code_task_details_response; pub use self::code_task_details_re...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/task_list_item.rs
codex-rs/codex-backend-openapi-models/src/models/task_list_item.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct TaskListItem { #[serde(ren...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_payload.rs
codex-rs/codex-backend-openapi-models/src/models/rate_limit_status_payload.rs
/* * codex-backend * * codex-backend * * The version of the OpenAPI document: 0.0.1 * * Generated by: https://openapi-generator.tech */ use crate::models; use serde::Deserialize; use serde::Serialize; #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct RateLimitStatusPayload { #...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/safety.rs
codex-rs/core/src/safety.rs
use std::path::Component; use std::path::Path; use std::path::PathBuf; use codex_apply_patch::ApplyPatchAction; use codex_apply_patch::ApplyPatchFileChange; use crate::exec::SandboxType; use crate::util::resolve_path; use crate::protocol::AskForApproval; use crate::protocol::SandboxPolicy; #[cfg(target_os = "window...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/review_prompts.rs
codex-rs/core/src/review_prompts.rs
use codex_git::merge_base_with_head; use codex_protocol::protocol::ReviewRequest; use codex_protocol::protocol::ReviewTarget; use std::path::Path; #[derive(Clone, Debug, PartialEq)] pub struct ResolvedReviewRequest { pub target: ReviewTarget, pub prompt: String, pub user_facing_hint: String, } const UNCOM...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/project_doc.rs
codex-rs/core/src/project_doc.rs
//! Project-level documentation discovery. //! //! Project-level documentation is primarily stored in files named `AGENTS.md`. //! Additional fallback filenames can be configured via `project_doc_fallback_filenames`. //! We include the concatenation of all files found along the path from the //! repository root to the ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/codex_delegate.rs
codex-rs/core/src/codex_delegate.rs
use std::sync::Arc; use std::sync::atomic::AtomicU64; use async_channel::Receiver; use async_channel::Sender; use codex_async_utils::OrCancelExt; use codex_protocol::protocol::ApplyPatchApprovalRequestEvent; use codex_protocol::protocol::Event; use codex_protocol::protocol::EventMsg; use codex_protocol::protocol::Exec...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/exec_env.rs
codex-rs/core/src/exec_env.rs
use crate::config::types::EnvironmentVariablePattern; use crate::config::types::ShellEnvironmentPolicy; use crate::config::types::ShellEnvironmentPolicyInherit; use std::collections::HashMap; use std::collections::HashSet; /// Construct an environment map based on the rules in the specified policy. The /// resulting m...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/mcp_connection_manager.rs
codex-rs/core/src/mcp_connection_manager.rs
//! Connection manager for Model Context Protocol (MCP) servers. //! //! The [`McpConnectionManager`] owns one [`codex_rmcp_client::RmcpClient`] per //! configured server (keyed by the *server name*). It offers convenience //! helpers to query the available tools across *all* servers and returns them //! in a single ag...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
true
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/lib.rs
codex-rs/core/src/lib.rs
//! Root of the `codex-core` library. // Prevent accidental direct writes to stdout/stderr in library code. All // user-visible output must go through the appropriate abstraction (e.g., // the TUI or the tracing stack). #![deny(clippy::print_stdout, clippy::print_stderr)] pub mod api_bridge; mod apply_patch; pub mod ...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/compact_remote.rs
codex-rs/core/src/compact_remote.rs
use std::sync::Arc; use crate::Prompt; use crate::codex::Session; use crate::codex::TurnContext; use crate::error::Result as CodexResult; use crate::protocol::CompactedItem; use crate::protocol::ContextCompactedEvent; use crate::protocol::EventMsg; use crate::protocol::RolloutItem; use crate::protocol::TaskStartedEven...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/turn_diff_tracker.rs
codex-rs/core/src/turn_diff_tracker.rs
use std::collections::HashMap; use std::fs; use std::path::Path; use std::path::PathBuf; use std::process::Command; use anyhow::Context; use anyhow::Result; use anyhow::anyhow; use sha1::digest::Output; use uuid::Uuid; use crate::protocol::FileChange; const ZERO_OID: &str = "0000000000000000000000000000000000000000"...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/custom_prompts.rs
codex-rs/core/src/custom_prompts.rs
use codex_protocol::custom_prompts::CustomPrompt; use std::collections::HashSet; use std::path::Path; use std::path::PathBuf; use tokio::fs; /// Return the default prompts directory: `$CODEX_HOME/prompts`. /// If `CODEX_HOME` cannot be resolved, returns `None`. pub fn default_prompts_dir() -> Option<PathBuf> { cra...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/apply_patch.rs
codex-rs/core/src/apply_patch.rs
use crate::codex::Session; use crate::codex::TurnContext; use crate::function_tool::FunctionCallError; use crate::protocol::FileChange; use crate::protocol::ReviewDecision; use crate::safety::SafetyCheck; use crate::safety::assess_patch_safety; use codex_apply_patch::ApplyPatchAction; use codex_apply_patch::ApplyPatchF...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false
openai/codex
https://github.com/openai/codex/blob/279283fe02bf0ce7f93a160db34dd8cf9c8f42c8/codex-rs/core/src/user_instructions.rs
codex-rs/core/src/user_instructions.rs
use serde::Deserialize; use serde::Serialize; use codex_protocol::models::ContentItem; use codex_protocol::models::ResponseItem; pub const USER_INSTRUCTIONS_OPEN_TAG_LEGACY: &str = "<user_instructions>"; pub const USER_INSTRUCTIONS_PREFIX: &str = "# AGENTS.md instructions for "; pub const SKILL_INSTRUCTIONS_PREFIX: &...
rust
Apache-2.0
279283fe02bf0ce7f93a160db34dd8cf9c8f42c8
2026-01-04T15:31:59.292600Z
false