mirror of
https://github.com/openai/codex.git
synced 2026-05-01 01:47:18 +00:00
Use AbsolutePathBuf in skill loading and codex_home (#17407)
Helps with FS migration later
This commit is contained in:
@@ -83,7 +83,7 @@ async fn new_thread_is_recorded_in_state_db() -> Result<()> {
|
||||
|
||||
let metadata = metadata.expect("thread should exist in state db");
|
||||
assert_eq!(metadata.id, thread_id);
|
||||
assert_eq!(metadata.rollout_path, rollout_path);
|
||||
assert_eq!(metadata.rollout_path, rollout_path.to_path_buf());
|
||||
assert!(
|
||||
rollout_path.exists(),
|
||||
"rollout should be materialized after first user message"
|
||||
@@ -208,7 +208,7 @@ async fn backfill_scans_existing_rollouts() -> Result<()> {
|
||||
|
||||
let metadata = metadata.expect("backfilled thread should exist in state db");
|
||||
assert_eq!(metadata.id, thread_id);
|
||||
assert_eq!(metadata.rollout_path, rollout_path);
|
||||
assert_eq!(metadata.rollout_path, rollout_path.to_path_buf());
|
||||
assert_eq!(metadata.model_provider, default_provider);
|
||||
assert!(metadata.first_user_message.is_some());
|
||||
|
||||
|
||||
@@ -534,7 +534,7 @@ async fn spawn_agent_role_overrides_requested_model_and_reasoning_settings() ->
|
||||
"custom".to_string(),
|
||||
AgentRoleConfig {
|
||||
description: Some("Custom role".to_string()),
|
||||
config_file: Some(role_path),
|
||||
config_file: Some(role_path.to_path_buf()),
|
||||
nickname_candidates: None,
|
||||
},
|
||||
);
|
||||
@@ -582,7 +582,7 @@ async fn spawn_agent_tool_description_mentions_role_locked_settings() -> Result<
|
||||
"custom".to_string(),
|
||||
AgentRoleConfig {
|
||||
description: Some("Custom role".to_string()),
|
||||
config_file: Some(role_path),
|
||||
config_file: Some(role_path.to_path_buf()),
|
||||
nickname_candidates: None,
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user