Skip to content

Disambiguate skill mentions from shell parameters - #33232

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8bb64cb5ca0fa8233c7fadb11a53678d57eb814c
Jul 15, 2026
Merged

Disambiguate skill mentions from shell parameters#33232
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/8bb64cb5ca0fa8233c7fadb11a53678d57eb814c

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 15, 2026

Copy link
Copy Markdown

Disambiguate skill mentions from shell parameters

Why

Skill mentions and shell parameters both use a $ prefix. Numeric and special
shell parameters should not open or displace completion popups, while loaded
skills can legitimately have digit- or hyphen-leading names.

What changed

  • Classify $ queries as skill candidates, shell variables, definite shell
    parameters, or ambiguous shell-like names.
  • Offer completion for an ambiguous name only when it fuzzy-matches a bindable
    loaded mention, reusing the filtered catalog when the popup opens.
  • Keep definite shell forms such as $1, $12, $-, and $_ out of mention
    completion and preserve completion targets elsewhere in the composer.

Testing

Added unit and snapshot coverage for positional and special parameters,
digit- and hyphen-leading skills, uppercase shell variables, unbindable
qualified skills, and competing completion targets.

## Why

Skill mentions and shell parameters both use a `$` prefix. Numeric and special
shell parameters should not open or displace completion popups, while loaded
skills can legitimately have digit- or hyphen-leading names.

## What changed

- Classify `$` queries as skill candidates, shell variables, definite shell
  parameters, or ambiguous shell-like names.
- Offer completion for an ambiguous name only when it fuzzy-matches a bindable
  loaded mention, reusing the filtered catalog when the popup opens.
- Keep definite shell forms such as `$1`, `$12`, `$-`, and `$_` out of mention
  completion and preserve completion targets elsewhere in the composer.

## Testing

Added unit and snapshot coverage for positional and special parameters,
digit- and hyphen-leading skills, uppercase shell variables, unbindable
qualified skills, and competing completion targets.

GitOrigin-RevId: 8bb64cb5ca0fa8233c7fadb11a53678d57eb814c
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/8bb64cb5ca0fa8233c7fadb11a53678d57eb814c branch from 3f8635e to b6f1cfa Compare July 15, 2026 04:04
@copyberry
copyberry Bot merged commit b6f1cfa into main Jul 15, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/8bb64cb5ca0fa8233c7fadb11a53678d57eb814c branch July 15, 2026 04:06
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

3 participants