Skip to content

fix(app): preserve raw file path punctuation - #41434

Draft
zih428 wants to merge 1 commit into
anomalyco:devfrom
zih428:file-path-fragments
Draft

fix(app): preserve raw file path punctuation#41434
zih428 wants to merge 1 commit into
anomalyco:devfrom
zih428:file-path-fragments

Conversation

@zih428

@zih428 zih428 commented Aug 9, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #41433

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

normalize previously stripped query/hash and decoded percent sequences for every input, including raw filesystem paths. It now applies URL parsing only to file:// inputs, preserving literal %, #, and ? in raw paths. The regression test covers raw normalization and the file-tab round trip.

How did you verify your code works?

  • bun test src/context/file/path.test.ts (42 pass)
  • bun --bun run typecheck in packages/app
  • Focused oxlint (0 errors)

Screenshots / recordings

Not applicable; this is path normalization logic with a unit reproduction.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Raw file paths lose URL punctuation in the app

1 participant