Skip to content

Fix markdown local-link path decoding for non-ASCII paths (#15499) - #15816

Closed
mle-foo wants to merge 4 commits into
mainfrom
codex/15499-run-20260325-170309-e2e-pr
Closed

mle-foo wants to merge 4 commits into
mainfrom
codex/15499-run-20260325-170309-e2e-pr

Conversation

@mle-foo

@mle-foo mle-foo commented Mar 26, 2026

Copy link
Copy Markdown

Summary

  • decode percent-encoded non-ASCII path bytes in non-file:// local markdown links for transcript display
  • preserve malformed escapes and ASCII escapes unchanged to avoid path-shape/control-character regressions
  • add mirrored regression tests in tui and tui_app_server renderers

Testing

  • cargo test -p codex-tui markdown_render_tests::file_link_
  • cargo test -p codex-tui-app-server markdown_render_tests::file_link_

Closes #15499

@mle-foo
mle-foo marked this pull request as ready for review March 26, 2026 18:10
@mle-foo
mle-foo requested a review from jif-oai March 26, 2026 18:11
@mle-foo
mle-foo marked this pull request as draft March 27, 2026 17:15
mle-foo added 2 commits March 27, 2026 10:16
…325-170309-e2e-pr

# Conflicts:
#	codex-rs/core/src/tools/handlers/multi_agents_tests.rs
#	codex-rs/tui/src/chatwidget/snapshots/codex_tui_app_server__chatwidget__tests__chatwidget_percent_encoded_local_link_vt100_snapshot.snap
#	codex-rs/tui/src/chatwidget/tests.rs
#	codex-rs/tui_app_server/src/chatwidget/tests.rs
#	codex-rs/tui_app_server/src/markdown_render.rs
#	codex-rs/tui_app_server/src/markdown_render_tests.rs
@mle-foo
mle-foo marked this pull request as ready for review April 3, 2026 16:23
@github-actions

Copy link
Copy Markdown
Contributor

Closing this pull request because it has had no updates for more than 14 days. If you plan to continue working on it, feel free to reopen or open a new PR.

@github-actions github-actions Bot closed this Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

oai PRs contributed by OpenAI employees

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: Markdown local file links render percent-encoded non-ASCII paths in transcript output

2 participants