Skip to content

Fix file path detection across wrapped lines#9356

Open
Obed0101 wants to merge 1 commit intowarpdotdev:masterfrom
Obed0101:obed/fix-long-wrapped-file-paths
Open

Fix file path detection across wrapped lines#9356
Obed0101 wants to merge 1 commit intowarpdotdev:masterfrom
Obed0101:obed/fix-long-wrapped-file-paths

Conversation

@Obed0101
Copy link
Copy Markdown

Description

Fixes #9193.

This updates terminal file path detection so fragments split only by a soft-wrapped terminal line are treated as one continuous path. Fragments are still kept separate when either side contains a file-link separator.

A regression test covers the long wrapped path from the issue and verifies detection from both sides of the wrap boundary.

Testing

  • cargo fmt --check
  • cargo test -p warp terminal::model::grid::grid_handler::tests::test_possible_file_paths_across_wrapped_lines --no-default-features

Server API dependencies

None.

Changelog Entries for Stable

CHANGELOG-BUG-FIX: Fixed long file paths split across wrapped terminal lines not being detected as file links.

@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Apr 29, 2026

Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @Obed0101 on file. In order for us to review and merge your code, each contributor must visit https://cla.warp.dev to read and agree to our CLA. Once you have done so, please comment @cla-bot check to trigger another check.

@oz-for-oss
Copy link
Copy Markdown

oz-for-oss Bot commented Apr 29, 2026

@Obed0101

I'm starting a first review of this pull request.

You can follow along in the session on Warp.

I approved this pull request and requested human review from: @vorporeal, @alokedesai, @zachbai.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

I approved this pull request. No matching stakeholder was found for the changed files, so no human reviewers were requested.

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR fixes terminal file path detection across soft-wrapped lines by merging adjacent path fragments only when neither side contains a file-link separator, and adds a regression test for hovering on both sides of the wrap boundary.

Concerns

  • No blocking correctness, security, error-handling, or performance concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

Copy link
Copy Markdown

@oz-for-oss oz-for-oss Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overview

This PR fixes file path candidate generation across soft-wrapped terminal rows by concatenating adjacent wrapped fragments only when neither side contains a file-link separator. It also adds a regression test covering hover detection on both sides of the wrap boundary.

Concerns

  • No blocking correctness or security concerns found in the changed lines.

Verdict

Found: 0 critical, 0 important, 0 suggestions

Approve

Comment /oz-review on this pull request to retrigger a review (up to 3 times on the same pull request).

Powered by Oz

@Obed0101
Copy link
Copy Markdown
Author

@cla-bot check

@cla-bot cla-bot Bot added the cla-signed label Apr 29, 2026
@cla-bot
Copy link
Copy Markdown

cla-bot Bot commented Apr 29, 2026

The cla-bot has been summoned, and re-checked this pull request!

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Warp doesn't parse long path

1 participant