Skip to content

Preserve descriptive labels on local file links - #42123

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/636bf4485b2899d96c6273be3f3b7f38728c9013
Sep 1, 2026
Merged

copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/636bf4485b2899d96c6273be3f3b7f38728c9013

Conversation

@copyberry

@copyberry copyberry Bot commented Sep 1, 2026 •

Copy link
Copy Markdown

Preserve descriptive labels on local file links

What changed

  • Render descriptive Markdown labels alongside canonical local file targets instead of discarding them.
  • Collapse labels that resolve to the same path, accounting for relative and absolute forms, file:// URLs, percent encoding, case, separators, and location suffixes.
  • Preserve ~/ destinations for display and keep absolute paths unless they can be shortened relative to the session working directory.

Testing

  • Add unit and snapshot coverage for descriptive and path-equivalent labels, invalid percent encoding, trailing separators, Unix and Windows paths, UNC paths, file:// URLs, and table wrapping.

## What changed

- Render descriptive Markdown labels alongside canonical local file targets instead of discarding them.
- Collapse labels that resolve to the same path, accounting for relative and absolute forms, `file://` URLs, percent encoding, case, separators, and location suffixes.
- Preserve `~/` destinations for display and keep absolute paths unless they can be shortened relative to the session working directory.

## Testing

- Add unit and snapshot coverage for descriptive and path-equivalent labels, invalid percent encoding, trailing separators, Unix and Windows paths, UNC paths, `file://` URLs, and table wrapping.

GitOrigin-RevId: 636bf4485b2899d96c6273be3f3b7f38728c9013
@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor


Thank you for your submission, we really appreciate it. Like many open-source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution. You can sign the CLA by just posting a Pull Request Comment same as the below format.


I have read the CLA Document and I hereby sign the CLA


You can retrigger this bot by commenting recheck in this Pull Request. Posted by the CLA Assistant Lite bot.

@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/636bf4485b2899d96c6273be3f3b7f38728c9013 branch from ebb924f to 0276f2e Compare September 1, 2026 19:51
@copyberry
copyberry Bot merged commit 0276f2e into main Sep 1, 2026
23 of 30 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/636bf4485b2899d96c6273be3f3b7f38728c9013 branch September 1, 2026 19:52
@github-actions github-actions Bot locked and limited conversation to collaborators Sep 1, 2026

This branch was previously deployed

1 inactive deployment
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.

3 participants