Skip to content

Improve composer completion target resolution#32628

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/352a42c7bcdbf4f6cd35368ced25f71926fdbc1b
Jul 12, 2026
Merged

Improve composer completion target resolution#32628
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/352a42c7bcdbf4f6cd35368ced25f71926fdbc1b

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 12, 2026

Copy link
Copy Markdown

Improve composer completion target resolution

What changed

  • Resolve @ and $ completion targets on either side of the cursor while treating atomic text elements and line breaks as boundaries.
  • Prefer the nearest editable mention when file, skill, and plugin candidates compete, and avoid treating common uppercase environment variables as skill queries.
  • Insert a separator before completions adjacent to atomic elements and keep dismissed popup state scoped to the matching editable token occurrence.

Testing

  • Add unit and snapshot coverage for adjacent and partially bound mentions, whitespace boundaries, shell variables, popup dismissal, and file, image, skill, and plugin insertion.

## What changed

- Resolve `@` and `$` completion targets on either side of the cursor while treating atomic text elements and line breaks as boundaries.
- Prefer the nearest editable mention when file, skill, and plugin candidates compete, and avoid treating common uppercase environment variables as skill queries.
- Insert a separator before completions adjacent to atomic elements and keep dismissed popup state scoped to the matching editable token occurrence.

## Testing

- Add unit and snapshot coverage for adjacent and partially bound mentions, whitespace boundaries, shell variables, popup dismissal, and file, image, skill, and plugin insertion.

GitOrigin-RevId: 352a42c7bcdbf4f6cd35368ced25f71926fdbc1b
@copyberry copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/352a42c7bcdbf4f6cd35368ced25f71926fdbc1b branch from c7da1cd to c888e8e Compare July 12, 2026 19:19
@copyberry copyberry Bot merged commit c888e8e into main Jul 12, 2026
14 of 32 checks passed
@copyberry copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/352a42c7bcdbf4f6cd35368ced25f71926fdbc1b branch July 12, 2026 19:20
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 12, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.