Repository navigation
feat(project): register every Git checkout in a workspace with --scan - #958
Merged
Merged
Conversation
Some tools, such as Codex, look for project skills only up to the Git root of the folder you open. When one workspace folder holds several checkouts or worktrees, skills synced to the workspace are not seen inside them, and registering each checkout by hand repeats the same settings many times. `project add <root> --scan DIR` registers the root and each Git checkout found below the scan folders as ordinary project entries with the same settings, in one write. No scan setting is saved; rerun it after a new clone. It only adds: a checkout already registered with the same settings is kept, one with different settings or its own .skillshare/ is skipped with the reason, and a name clash derives the name from the path. A scan folder that is missing or cannot be read is skipped with a warning so one unreadable folder does not block the rest. Rows carry a root-relative path and a skip code so the dashboard can explain them in its own words. Refs #953
The dashboard should offer what `project add --scan` does, so a workspace with many checkouts can be set up without the terminal. The Add project dialog gains "Also add each checkout inside this folder" with the folders to look in. Review runs the scan as a dry run through the new POST /api/projects/scan and lists each folder as Added, Kept or Skipped with a translated reason and a link to a project whose settings differ; nothing is written until it is confirmed. The write scans again and counts what it actually added, so a checkout registered in the meantime is not reported as new. MCP and Hooks, when picked, are set up for each added project. Without an explicit storage choice the default follows projects_storage, as the CLI does without a flag. Refs #953 Release-As: 0.30.12
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
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.
Type
proposals/only — see CONTRIBUTING.md)feature, notapproved)Linked Issue
Closes #953
Summary
Some tools, such as Codex, look for project skills only up to the Git root of the folder you open, so skills synced to a workspace folder are not seen inside the checkouts it holds.
CLI:
skillshare project add <root> --scan DIR [--scan DIR]...registers the root and each Git checkout below the scan folders as ordinaryprojectsentries with the same settings, in one write. No new config field;projects_storage,--machine-localand-nwork as for a single add..skillshare/, or a name that is already used is skipped with the reason..worktrees/app-a→worktrees-app-a) and is saved asname.--jsonrows carrypath(relative to the root) and askipcode.Dashboard: the Add project dialog gains Also add each checkout inside this folder with the folders to look in. Review runs the scan as a dry run (
POST /api/projects/scan) and lists each folder as Added, Kept or Skipped with a translated reason, and an Open link for a project whose settings differ. Nothing is written until Add N projects is confirmed. MCP and Hooks, when picked, are set up for each added project.Docs:
project.mdandui.mdwith their ja, ko, zh-Hans and zh-Hant translations, the built-in skill reference, and the project command runbook.Not covered
config.yamlstorage; machine-local storage is covered by the CLI integration tests only.Checks
make checkin the devcontainervitest(1001 tests),format:check,build,lint:typed(0 errors)python3 scripts/ai-context.py checkChecklist
make check) — for code changes