Repository navigation
fix(projects): say where a removed project's MCP and hook settings go - #955
Merged
Merged
Conversation
Removing a project keeps its mcp.projects and hooks.projects entries on purpose: they are separate lists that no project command edits, and the dashboard lists such a folder on its own. But nothing said so. The CLI warned "mcp.projects still contains root X" with no next step, and the dashboard dialog only mentioned it for a machine-local project, so a removed project's MCP settings looked like a cleanup bug. The CLI warning now names the settings and where to remove them. The remove dialog says they stay and that removing the leftover row deletes them, except when only this machine's copy goes and config.yaml's project remains. project.md, ui.md and the skill reference describe it.
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)approvedlabel)Linked Issue
None. The maintainer asked for this directly.
What changed
Removing a project keeps its
mcp.projectsandhooks.projectsentries. That is intended: they are separate lists that no project command edits, and the dashboard lists such a folder on its own. Nothing said so, so the leftover MCP settings looked like a cleanup bug. Behavior is unchanged; this adds the explanation in three places.mcp.projects still contains root Xgave no next step. It now readsMCP settings for X stay in mcp.projects; remove them on the dashboard's Projects page or in config.yaml, and the same for hooks. Text output,--dry-runand--jsonwarningsall carry it.config.yaml, Projects still lists the folder, and removing it again deletes them. It names only the settings that exist. It is left out when only this machine's copy is removed andconfig.yaml's project still applies, because one more removal would not delete them there.removeLocalMessageloses its "settings are unchanged" clause, which the new line replaces. The three new strings and the trimmed one are in all 11 locales.reference/commands/project.md(Remove a project) and the Projects row ofui.md, plus their ja, ko, zh-Hans and zh-Hant copies, andskills/skillshare/references/targets.md.Checklist
make check)Checks run (devcontainer)
make docs-check fmt-check lint test: passed.make test-herdr: 143 passed.src/components/projects,src/pages/ProjectDetailPageandsrc/i18n: 35 passed. The newsettingsLefttest for the two-copies case failed before the fix.tsc --noEmitandeslinton the changed UI files: clean.project remove --yes -gon a project with anmcp.projectsentry prints the new warning.mcp.projectsentry.Not covered
--dry-run.