From 7e5cdbd8839ae3d3635af9bc35f066c14c71a936 Mon Sep 17 00:00:00 2001 From: starr-openai Date: Fri, 29 May 2026 07:37:21 -0700 Subject: [PATCH] codex: fix alias expectation ownership --- codex-rs/core-skills/src/render.rs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/codex-rs/core-skills/src/render.rs b/codex-rs/core-skills/src/render.rs index 89b1a2f5b5..4c5b25f2ae 100644 --- a/codex-rs/core-skills/src/render.rs +++ b/codex-rs/core-skills/src/render.rs @@ -1354,6 +1354,7 @@ mod tests { let root = test_path_buf("/tmp/repo/.agents/skills").abs(); let mut skill = skill_with_path("gh-fix-ci", &root.join("gh-fix-ci/SKILL.md")); skill.environment_id = "devbox".to_string(); + let expected_alias_root_line = format!("- `r0` = `{}`", normalized_path(&root)); let outcome = outcome_with_roots(vec![skill.clone()], vec![root]); let absolute = build_available_skills( @@ -1384,10 +1385,7 @@ mod tests { SkillEnvironmentRender::Include, ) .expect("skills should render"); - assert_eq!( - plan.aliases.skill_root_lines, - vec![format!("- `r0` = `{}`", normalized_path(&root))] - ); + assert_eq!(plan.aliases.skill_root_lines, vec![expected_alias_root_line]); assert_eq!( aliased.skill_lines, vec![format!(