Repository navigation
Conversation
Synvoya
marked this pull request as ready for review
July 27, 2026 02:41
Contributor
Author
|
@safishamsi, when you have review bandwidth, could you please prioritize this small issue-backed set: #2118 fixes target-filesystem filename limits (#2109), #2117 suppresses false warnings for intentionally skipped files (#2107), and #1818 prevents Go type-set constraints from becoming false embeds. All three are ready for review, mergeable, and fully green. Happy to adjust or rebase anything you prefer. |
This was referenced Aug 11, 2026
The 200-byte stem cap from Graphify-Labs#1094 assumes the conventional 255-byte NAME_MAX. eCryptfs (Ubuntu's "encrypt my home folder") reports 143 because of its filename-encryption overhead, so a 150-200 byte label still produced a name the filesystem rejects and `graphify export obsidian` / `export wiki` aborted with ENAMETOOLONG. stem_filename_budget() already sizes every Obsidian, canvas and wiki stem against the destination (Graphify-Labs#2655), but returned the limit unchanged on POSIX. It now also caps the budget at the destination filesystem's PC_NAME_MAX less the caller's reserve and the ".md" extension, asking the nearest existing ancestor when the export directory does not exist yet. At the conventional 255 the budget is still 200, so output on ordinary filesystems is byte-for-byte unchanged. Closes Graphify-Labs#2109 Co-Authored-By: Claude <[email protected]>
Synvoya
force-pushed
the
agent/filesystem-aware-filename-limits
branch
from
October 19, 2026 08:03
4630ff4 to
2325ce3
Compare
12 tasks done
Contributor
Author
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.
Fixes #2109.
Problem
Export filename capping assumes the conventional 255-byte
NAME_MAX. eCryptfs (Ubuntu's "encrypt my home folder") reportsPC_NAME_MAX=143because of its filename-encryption overhead, so a 150–200 byte label still produces a name the filesystem rejects andgraphify export obsidian/export wikiabort withENAMETOOLONG.Change
Rebased onto current
v8(0.9.92) and reworked on top ofstem_filename_budget()from #2656, which every Obsidian, canvas, and wiki stem already goes through. The original version of this PR added a parallel helper; that is gone.stem_filename_budget()now also caps the budget on POSIX at the destination filesystem'sPC_NAME_MAX, minus the caller'sreserve(collision suffix /_COMMUNITY_prefix) and.md.pathconfis unavailable or errors, the budget is unchanged.MAX_PATHbranch is untouched.Regression coverage
tests/test_export_path_length.py): shrinks to fitNAME_MAX=143, stays 200 at 255, asks the nearest existing ancestor, and falls back to the limit whenpathconffails.NAME_MAX=143: every Obsidian note, canvas file ref, and wiki article name is at most 143 bytes, long duplicate labels stay case-insensitively unique, and wiki links still resolve on disk.graphify/paths.pyreverted tov8, the 5 new behavioural tests fail.Validation
Commands run locally (Python 3.12.8, macOS):
python -m pytest tests/test_export_path_length.py tests/test_obsidian_filename_cap.py tests/test_wiki.py tests/test_wiki_link_filename_parity.py tests/test_wiki_truncation_indicator.py: 78 passed, 3 skippedpython -m pytest tests: 8020 passed, 326 skipped, 10 failedv8(86c57be): 8013 passed, 326 skipped, 10 failed. The 10 failing tests are identical with and without this change. They are in files this PR does not touch (test_ext_tagged_id_clash.py,test_install_references.py,test_languages.py::test_markdown_nested_frontmatter_survives,test_skill_no_backtick_substitution.py) and look specific to my local environment.ruff checkon changed files: clean.pyright graphify/paths.py: 0 errors.Limitations
NAME_MAX. That also applies at 255 and is left for a separate change.pathconfresult. I don't have an eCryptfs mount, and the reporter offered to verify on one.