feat: discover repos one level deeper inside grouping folders#89
Merged
simion merged 1 commit intoJul 12, 2026
Merged
Conversation
discover_repos scanned exactly one level under repos_dir, so a layout like code/<category>/<repo> discovered nothing (the category folders are not git repos). A direct child that is not a repo is now treated as a grouping folder and scanned one more level. Hidden dirs and node_modules are skipped at both levels, and a repo child is never descended into, so nested clones stay out of the list. Activity sorting is unchanged. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
simion
added a commit
that referenced
this pull request
Jul 12, 2026
Adds unit coverage for the #89 grouping-folder discovery: flat layouts, code/<category>/<repo> descent, mixed top-level repo + grouping, nested clones staying out (repo children are not descended into), and the hidden / node_modules skip at both levels. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013PFQv2FX8HNKG5yXfSu2ve
Owner
|
Merged, thanks! Verified the two-level scan locally against a temp tree (flat, Followed up on main with unit coverage for One behavior note for anyone reading later: the hidden-dir skip now also applies at the top level, so a repo sitting directly at |
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.
What
discover_reposscans exactly one level underrepos_dir, so a layout likecode/<category>/<repo>discovers nothing: the category folders are not git repos, and the repos below them are never reached. This PR treats a direct child that is NOT a git repo as a grouping folder and scans its children once more.Guardrails to keep the list clean and the scan cheap:
node_modulesare skipped at both levelsWhy
Plenty of people organize a projects dir by category (
work/,oss/,clients/...). Today discovery silently returns nothing for them, which reads as broken in the Add Project dialog and the first-run wizard. Two levels covers this shape without recursing into build artifacts.Testing
make check-allpasses/evalofsettingsLoad() -> discoverRepos()returns all 23, activity-sorted, and the Add Project dialog lists themNo CHANGELOG changes per contributing rules. Happy to adjust naming or fold the skip-list differently if you prefer.