Repository navigation
Description
What version of Codex CLI is running?
codex-cli 0.149.1
Platform
Arch Linux, kernel 7.1.9, x86_64
Originator
codex-tui, source cli
What issue are you seeing?
Selecting an explicit-only skill from the $ picker produces a mention using the
skill's title-cased interface.display_name. The canonical skill name is lowercase.
The picker-generated mention fails. Manually typing the canonical lowercase name
succeeds.
The valid skill appears in the picker, but selection immediately produces:
The Wayfinder skill is not available in this session.
Skill metadata
SKILL.md:
---
name: wayfinder
description: Plan a large effort as a shared map of decision tickets.
disable-model-invocation: true
---agents/openai.yaml:
interface:
display_name: "Wayfinder"
short_description: "Map a large effort as decision tickets"
policy:
allow_implicit_invocation: falseThe skill is installed at:
~/.agents/skills/wayfinder/SKILL.md
There is no skills.config entry disabling it.
Reproduction
- Start a fresh Codex TUI session.
- Open the
$skill picker. - Select
Wayfinder. - Submit
$Wayfinder #1. - Observe that Codex reports the skill unavailable.
- Start another fresh session.
- Manually type
$wayfinder #1. - Observe that Codex loads and follows the skill.
Redacted rollout evidence
Picker invocation:
session_meta:
cli_version: 0.149.1
originator: codex-tui
source: cli
user:
$Wayfinder #1
assistant:
The Wayfinder skill is not available in this session.
Manual invocation:
session_meta:
cli_version: 0.149.1
originator: codex-tui
source: cli
user:
$wayfinder #1
assistant:
I'm using Wayfinder to load map #1...
I reproduced the picker failure in at least four fresh sessions.
Suspected cause
The picker appears to submit interface.display_name as a plain $name token
instead of submitting the canonical skill identity or a structured
UserInput::Skill.
Plain mention selection currently calls:
mentions.contains_plain_name(skill.name.as_str())contains_plain_name performs an exact set lookup. Therefore $Wayfinder does
not match the canonical name wayfinder.
Expected behavior
Selecting a skill from the picker should invoke that exact skill regardless of
display-name capitalization.
The picker could submit a structured UserInput::Skill containing the canonical
path, emit the canonical name, or make plain-name comparison case-insensitive.
Activity
Hughhhhcoder commentedon Sep 8, 2026
I tried to reproduce this against both
rust-v0.149.1and currentmain, but the picker path appears to preserve the canonical identity already.In both versions, the skill catalog uses
interface.display_nameonly for rendering/search and setsinsert_texttoformat!("${skill_name}"), with the canonicalskill.pathas the binding. I also added a focused interaction test locally with canonical namewayfinder, display nameWayfinder, typed$Way, and selected the popup row. It passed with composer text$wayfinderand a binding to/tmp/wayfinder/SKILL.md.Could you check what text is visible in the composer immediately after selecting the row, before submission? If it is actually
$Wayfinder, could you also share how this binary was installed plus the output ofwhich codexandcodex --version? A short screen recording showing the text before and after selection would help distinguish a packaged-binary mismatch from a later submission/history path. The reported direct picker code path does not currently reproduce the casing conversion.argszero commentedon Sep 8, 2026
Confirmed the root cause against current
main— and it's a genuine case-sensitivity defect in the plain-name skill match, not just a picker-emission quirk.The locus
The mention parser preserves the case of whatever
$nametoken appears in the text.extract_tool_mentions_with_sigil(codex-rs/skills/src/mentions.rs) pushes the token as-is intoplain_names:Then selection does an exact case-sensitive set lookup against the canonical
skill.name(codex-rs/skills/src/selection.rs:174):contains_plain_name(mentions.rs:18) isself.plain_names.contains(name)— aHashSet<&str>, byte-exact. So$Wayfinder(title-cased) producesplain_names = {"Wayfinder"}, which does not equal the canonicalskill.name = "wayfinder". The skill is skipped → "The Wayfinder skill is not available in this session".Why this is the bug, not just the picker
Even where the picker emits the canonical
$wayfinder(themention_items()path buildsinsert_text: format!("${skill_name}")), the match is still fragile: any plain$Namewith non-canonical casing (manual typing, a picker that surfaces thedisplay_name, an agent emitting it) silently fails. The reporter's transcript showing$Wayfinderis one such path. The defect is the case-sensitive exact-match on plain names, not a single emission site — that's why it has multiple faces.Fix shape (small, contained)
Two options, both localized:
skill.name(notdisplay_name/interface.display_name). This fixes the picker but leaves the manual-typing footgun.select_skills_from_mentions, when a mention's plain name matchesskill.nameignoring ASCII case (and the name is unambiguous viaskill_name_counts), select it. Hash on lowercase:mentions.plain_names().any(|n| n.eq_ignore_ascii_case(skill.name))in place ofcontains_plain_name(skill.name).skill.nameis documented as lowercase canonical, and the existingskill_name_countsdisambiguation already guards ambiguity, so a case-insensitive plain-name lookup is safe. No current test pins the case-sensitive behavior (selection_tests.rs/mentions_tests.rshave no case-sensitivity assertion), so a regression test ($Wayfinderselects thewayfinderskill) is straightforward.The change touches
selection.rs+ a regression test in theskillscrate. Happy to prepare the patch.argszero commentedon Sep 8, 2026
Thanks for the careful verification — I traced the same path and it agrees with your finding. On current
mainthe picker keeps the canonical identity end-to-end, so the plain-name case-sensitivity is a real latent defect but not the cause of the reported$Wayfindersymptom.Confirmed: the picker path is canonical on current main
mention_items()buildsinsert_text: format!("${skill_name}")(chat_composer.rs:4288) — canonical, notdisplay_name.UserInput::Skillconstruction (input_submission.rs:239,253) usesskill.name.clone()and the canonicalskill.path— nodisplay_name.skill_display_name()(skills_helpers.rs:4) is used only for rendering/search (mentions_v2/search_catalog.rs:68,chatwidget/skills.rs:76), never for the inserted token.So on both
rust-v0.149.1and currentmain, selecting a skill row inserts$wayfinderwith the canonicalskill://binding. The reported$Wayfinderis not produced by this path.The latent defect (worth an #23454-adjacent note, but not the symptom's cause)
extract_tool_mentions_with_sigil(skills/src/mentions.rs:139) preserves whatever casing is in the text, andselect_skills_from_mentions(skills/src/selection.rs:174) does an exact case-sensitivecontains_plain_name(skill.name). So a manually typed$Wayfinder(or an agent/abbreviated re-insert) would still fail to match canonicalwayfindereven though the picker is fine. That's a separate robustness gap, not the picker regression.The discriminating question for the reporter
The user's transcript showing
$Wayfinderalmost certainly came from a path that isn't the live picker. As @Hughhhhcoder suggested, the key data is: what is the exact composer text immediately after selecting the row (before submission)? If it shows$Wayfinder, then this binary was built from a source state (or a packaged bundle / extension hook) that pre-dates the canonical insert; if it shows$wayfinder, the failure is in a later submission/history path. The reporter'scodex --version,which codex, and how it was installed would resolve a packaged-binary mismatch.I'd suggest the maintainer close this as not-a-picker-regression (the picker path is canonical and verified) and either split the case-sensitivity robustness gap into a separate low-priority issue or leave it open as a hardening item. Happy to prepare the small case-insensitive match patch if the team wants the robustness fix regardless.
SurefireStudios commentedon Sep 9, 2026
I went looking for this and think the suspected cause is off, so flagging that before anyone spends time on the picker.
The picker already emits the canonical name
Both production paths that build a
$skill mention useskill.name, notinterface.display_name:codex-rs/tui/src/bottom_pane/chat_composer.rs, inmention_items→insert_text: format!("${skill_name}")codex-rs/tui/src/bottom_pane/mentions_v2/search_catalog.rs→insert_text: format!("${skill_name}")I checked both at
mainand at therust-v0.149.1tag, since that is the version in the report, and they are the same on both. The selected item is inserted viainsert_selected_mention(...), which inserts exactly thatinsert_textand additionally registers amention_bindingsentry carrying the skill path.There is a
format!("${display_name}")inskill_popup.rs, which looks like the culprit on a grep, but it sits inside#[cfg(test)] mod testsas theranked_mention_itemhelper. It is not a code path.So I could not reproduce "the picker submits
display_name" from the source at the reported version. If the composer really did show$Wayfinderafter selecting from the picker, something I have not found is producing it, and it would be worth knowing whether the token in the composer read$Wayfinderor$wayfinderbefore submitting.What is reproducible
The symptom stands regardless of how the casing arises, because plain-name matching is exact:
The picker displays
Wayfinder. Anyone who types back the spelling they were shown gets "The Wayfinder skill is not available in this session", with nothing pointing at case as the reason. That is a real gap onmaintoday, and it is the third remedy suggested in the issue.Patch
One wrinkle is worth calling out: once matching ignores case, two skills whose names differ only in case become one ambiguous name rather than two that each resolve independently. The ambiguity guard has to count the same way, or
$wayfinderwith bothwayfinderandWayfinderloaded would quietly resolve to whichever loaded first.build_skill_name_countsalready returns an ASCII-lowercase tally alongside the exact one, so this needs no new plumbing, only the other element of the pair.The lowercased block list keeps a structured
UserInput::Skillsuppressing the plain-name fallback when the text spells the name differently.contains_plain_namehas no callers outside the crate, and the only external caller ofbuild_skill_name_countsalready takes the lowercase tally for connector slugs, so nothing downstream changes shape. The linear scan replaces a hash lookup over a set holding at most a handful of names parsed from one message.Tests
Four added, three of which fail without the change:
contains_plain_name_ignores_ascii_casecollect_explicit_skill_mentions_matches_mention_casing_insensitively($Wayfinder)collect_explicit_skill_mentions_treats_case_variants_as_one_ambiguous_namecollect_explicit_skill_mentions_blocks_plain_fallback_across_casingcargo test -p codex-skillsgives 55 passed, and clippy and rustfmt are clean on the crate.I would have opened a PR, but this repo appears not to take them from forks: none of the last 100 pull requests originate outside
openai/codex. The full branch including tests is at https://github.com/SurefireStudios/codex/tree/fix/case-insensitive-skill-mentions if it is useful to pull from. Happy to adjust the approach if you would rather fix it in the picker or by submitting a structuredUserInput::Skill.etraut-openai commentedon Oct 12, 2026
(response from codex)
Closing because in CLI 0.162.1 both skill picker paths insert the canonical skill name (for example, $wayfinder), independently of the display label Wayfinder. The reported display-name casing mechanism no longer applies. If you can still produce $Wayfinder by selecting that skill on a current release, please reopen with the picker steps; other skill-availability failures may have a different cause.