Skill catalog alias is ambiguous when a plugin and its marketplace share a name, so the model opens a path that doesn't exist
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 69/100
Hướng nghiên cứu
Start with codex-rs/ext/skills/src/host_aliases.rs, especially shared_host_alias_roots, and trace how single-skill plugin paths receive aliases. Check the existing tests around plugin skill catalog paths and add coverage for matching marketplace and plugin names. Done means the catalog alias keeps the skill path unambiguous in that case while preserving the other described cases.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What version of Codex CLI is running?
codex-cli 0.155.0. The same code is unchanged on main as of rust-v0.172.0.
What subscription do you have?
Not relevant here: the bug is in how the local skill catalog is built.
What platform is your computer?
Darwin 27.2.0 arm64 arm
What issue are you seeing?
We publish a plugin named venom from a marketplace that's also named venom (installed as venom@venom). It has one skill. Codex installs it correctly at:
<CODEX_HOME>/plugins/cache/venom/venom/0.9.11/skills/venom/SKILL.md
The skill catalog sent to the model also gives the right path, written with an alias:
r1 = <CODEX_HOME>/plugins/cache/venom
(file: r1/venom/0.9.11/skills/venom/SKILL.md)
But the alias root ends in venom and the relative path starts with venom, so the model reads the repeated segment as one. It opens <CODEX_HOME>/plugins/cache/venom/0.9.11/skills/venom/SKILL.md, which doesn't exist, and spends a turn searching for the skill. We saw this in real sessions.
What steps can reproduce the bug?
- Fresh
CODEX_HOME, thencodex plugin marketplace add <repo with a marketplace and a plugin of the same name, one skill>. codex plugin add <name>@<name>.- Start a session and look at the skills catalog in the prompt: the alias is
cache/<name>, and the path starts with<name>/<version>.
With a different marketplace name (for example venomx), the alias is cache/venomx and the path is r1/venom/0.9.11/..., which models read correctly. With two skills in the plugin, the alias becomes …/<version>/skills, which is also unambiguous.
What is the expected behavior?
The skill path in the catalog should be read unambiguously, so the model opens the skill file on the first try.
Additional information
Cause
In codex-rs/ext/skills/src/host_aliases.rs (shared_host_alias_roots), a plugin version with only one skill is aliased to plugin_marketplace_base(root), which is plugins/cache/<marketplace>. The path then starts with <plugin>/<version>/…. When <marketplace> == <plugin>, the full path contains …/cache/venom/venom/…, and the alias splits it exactly at the repeated name.
Suggested fix
For single-skill plugins, alias the plugin-version root (plugin_version_base) or the skill directory instead of the marketplace base. Or don't alias at all when the path's first segment repeats the alias root's last segment.
A minimal version of the second option, in shared_host_alias_roots:
Some(plugin_version)
if plugin_version_skill_counts
.get(&plugin_version)
.copied()
.unwrap_or_default()
<= 1 =>
{
match plugin_marketplace_base(root) {
// `cache/<name>` + `<name>/<version>/…` reads as one segment; keep the version root.
Some(base) if base.file_name() == plugin_version.parent().and_then(Path::file_name) => {
plugin_version.clone()
}
Some(base) => base,
None => root.to_path_buf(),
}
}
This keeps the shared marketplace alias for every other plugin, and only stops it when the marketplace and plugin have the same name.
Workaround we're avoiding
Renaming the marketplace would avoid this, but it breaks every existing <name>@<name> install and config entry.
- Ngôn ngữ chính
- Rust
- Star
- 136k
- Fork
- 21.6k
- Merge trung bình
- 1 phút
- Pull request đã merge (30 ngày)
- 997
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của openai/codex
-
app bug rate-limits
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Windows PowerShell 5.1: non-ASCII text piped into a native command arrives as `?`Có thể đã có người làm @akhil9tiet đã nhận hôm nay. Đang mởbug CLI tool-calls windows-os
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
openai/codex#64139 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI connectivity
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
core-plugins: remote bundle install keeps the temp directory before a fallible rename and leaves it behind on failureCó thể đã có người làm @akhil9tiet đã nhận 1 ngày trước. Đang mởbug CLI skills
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openai/codex#63907 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug CLI
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
openai/codex#63906 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
triage
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 88/100
kornia/kornia-rs#1416 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
My Caps shows "Shared" on private Caps that were never sharedCó thể đã có người làm @AksharP5 đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
CapSoftware/Cap#4569 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày