Repository navigation
fix(linux): allow local file links under /home - #57
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem and fix
Ctrl-clicking a local file under
/homewas ignored on Linux, even thoughagtermctl session overlay open --markdowncould open the same file. Both plain printed paths and explicit OSC 8 file links reachLinkPolicy.localPath, which unconditionally applied the macOS automount-root denylist, including/home. The CLI follows a separate validation path.Apply the existing automount-root check only on macOS. Linux home files now follow the existing routes: Markdown and supported images open as generated pages, while ordinary files reveal their containing folder. macOS retains the same denylist, and shared non-local host, UNC, scheme, and lexical normalization checks are unchanged. The core remains host-free, with no new control command or protocol change.
Add regression coverage for absolute paths, explicitly expanded
~/paths, empty-host and localhost file URLs, dot normalization, and Markdown/image/ordinary-file routing. Extend the existing GTK click scenario to exercise plain paths and OSC 8 links under both/tmpand/home, including root-run CI fixtures. Update Linux behavior and validation documentation.Validation
git diff --checkpassed. The boundary check used CI's exact v0.40.0 commit (c63e5158e637662ded7ba3a12eac4881b24caef1) because the tag was absent locally.links-v0400scenario passed on a private Xvfb display, including all eight image/Markdown, plain/OSC 8,/tmp//homecombinations.Limitations
macOS builds/tests and the full GTK smoke matrix were not run. The focused GTK scenario was run; native Wayland acceptance was manual. SwiftPM emitted pkg-config prohibited-flag warnings, and the successful GTK run logged an AT-SPI cache warning at startup. No installed RPM, production sessions, or persistent personal configuration were changed.