mirror of
https://github.com/openai/codex.git
synced 2026-05-04 13:21:54 +03:00
Use AbsolutePathBuf in skill loading and codex_home (#17407)
Helps with FS migration later
This commit is contained in:
@@ -870,7 +870,7 @@ pub async fn run_main(
|
||||
if matches!(app_server_target, AppServerTarget::Embedded) {
|
||||
#[allow(clippy::print_stderr)]
|
||||
if let Err(err) = enforce_login_restrictions(&AuthConfig {
|
||||
codex_home: config.codex_home.clone(),
|
||||
codex_home: config.codex_home.to_path_buf(),
|
||||
auth_credentials_store_mode: config.cli_auth_credentials_store_mode,
|
||||
forced_login_method: config.forced_login_method,
|
||||
forced_chatgpt_workspace_id: config.forced_chatgpt_workspace_id.clone(),
|
||||
@@ -1137,7 +1137,7 @@ async fn run_ratatui_app(
|
||||
// status detection edge cases.
|
||||
if show_login_screen && !remote_mode {
|
||||
cloud_requirements = cloud_requirements_loader_for_storage(
|
||||
initial_config.codex_home.clone(),
|
||||
initial_config.codex_home.to_path_buf(),
|
||||
/*enable_codex_api_key_env*/ false,
|
||||
initial_config.cli_auth_credentials_store_mode,
|
||||
initial_config.chatgpt_base_url.clone(),
|
||||
@@ -1378,7 +1378,7 @@ async fn run_ratatui_app(
|
||||
// this must happen after the last possible reload.
|
||||
if let Some(w) = crate::render::highlight::set_theme_override(
|
||||
config.tui_theme.clone(),
|
||||
find_codex_home().ok(),
|
||||
find_codex_home().ok().map(AbsolutePathBuf::into_path_buf),
|
||||
) {
|
||||
config.startup_warnings.push(w);
|
||||
}
|
||||
@@ -2052,7 +2052,7 @@ mod tests {
|
||||
std::fs::write(&rollout_path, "")?;
|
||||
|
||||
let state_runtime = codex_state::StateRuntime::init(
|
||||
config.codex_home.clone(),
|
||||
config.codex_home.to_path_buf(),
|
||||
config.model_provider_id.clone(),
|
||||
)
|
||||
.await
|
||||
@@ -2481,7 +2481,7 @@ trust_level = "untrusted"
|
||||
)?;
|
||||
|
||||
let runtime = codex_state::StateRuntime::init(
|
||||
config.codex_home.clone(),
|
||||
config.codex_home.to_path_buf(),
|
||||
config.model_provider_id.clone(),
|
||||
)
|
||||
.await
|
||||
|
||||
Reference in New Issue
Block a user