Repository navigation
CLI --import <folder> uses the engine's import extensions (#1080) - #1119
Merged
Merged
Conversation
…, NRW) expand_paths kept its own PHOTO_EXTENSIONS list, which had fallen behind lightcraft_engine::import::EXTENSIONS. It now filters with import::is_supported, so folder walks and library.import take the same files. Fixes storytold#1080 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
An independent fix for #1080 made the same change: LloydNicholson/lightcraft@e94a56ad (branch
There won't be a second PR; this one covers it. |
This was referenced Oct 12, 2026
Contributor
Author
|
Thanks @LloydNicholson. Nice to have the real HEIC run and a full macOS CI pass on the same change. |
Member
|
Landed on main in #1431. Batch 32a had landed #1254 for the same issue an hour earlier; main now has this version, which uses the engine's extension list instead of a second copy. Thank you, @itrycodinganditsbad! Generated by Claude Code |
This was referenced Oct 13, 2026
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 #1080
lightcraft-cli run --import <folder>walked folders with its ownPHOTO_EXTENSIONSlist incrates/mcp/src/headless.rs. That list was a copy of the engine'simport::EXTENSIONSand had fallen behind: it was missing heic, heif and nrw. So the flag silently skipped HEIC files thatlibrary.importon the same folder took. The MCP tools that expand folders go through the sameexpand_paths, so they had the same gap.expand_pathsnow filters withlightcraft_engine::import::is_supportedand the copied list is gone, along with itspub usefromlightcraft-mcp. Nothing else in the workspace used it. The desktop file pickers and the import dialog already used the engine list. I left the other extension lists alone because they are meant to differ:xtask/src/assets.rsis the asset attribution check, andraw_filesin the CLI is a raw-only subset for its own command. HEIC without theheiffeature works the same aslibrary.import: the file is picked up and the import reports it as failed with the reason.New test
expand_paths_takes_the_engine_extensions: it makes one file for every engine extension plusB.HEICand a.txtin a temp folder and checks that the walk returns exactly the supported ones. It failed before the fix (heic, heif, nrw and HEIC were missing) and passes now. I ran fmt, clippy -D warnings on lightcraft-mcp and lightcraft-cli (with--no-deps), and the tests for both crates. I didn't run the fullcargo xtask cilocally and left that to GitHub CI. Workspace clippy fails here on an unrelated lint incrates/pipeline/src/spots.rs(chunks_exact_to_as_chunks, new in my local clippy 1.99). I didn't try it by hand with real iPhone HEICs.🤖 Generated with Claude Code