Skip to content

fix(projects): say where a removed project's MCP and hook settings go - #955

Merged
runkids merged 1 commit into
mainfrom
runkids/project-remove-mcp-hint
Nov 18, 2026
Merged

runkids merged 1 commit into
mainfrom
runkids/project-remove-mcp-hint

Conversation

@runkids

@runkids runkids commented Nov 18, 2026

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

None. The maintainer asked for this directly.

What changed

Removing a project keeps its mcp.projects and hooks.projects entries. 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.

  • CLI. The warning mcp.projects still contains root X gave no next step. It now reads MCP 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-run and --json warnings all carry it.
  • Dashboard. The remove dialog adds a line when the project has MCP or hook settings: they stay in 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 and config.yaml's project still applies, because one more removal would not delete them there. removeLocalMessage loses its "settings are unchanged" clause, which the new line replaces. The three new strings and the trimmed one are in all 11 locales.
  • Docs. reference/commands/project.md (Remove a project) and the Projects row of ui.md, plus their ja, ko, zh-Hans and zh-Hant copies, and skills/skillshare/references/targets.md.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check)
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

Checks run (devcontainer)

  • make docs-check fmt-check lint test: passed. make test-herdr: 143 passed.
  • vitest, full UI suite: 983 passed before the review fixes. After them, src/components/projects, src/pages/ProjectDetailPage and src/i18n: 35 passed. The new settingsLeft test for the two-copies case failed before the fix.
  • tsc --noEmit and eslint on the changed UI files: clean.
  • CLI: project remove --yes -g on a project with an mcp.projects entry prints the new warning.
  • Browser, Clean light, zh-TW: the dialog shows the line for a shared project with MCP settings. Removing it lands on Projects with the folder still listed, and removing that row deletes the mcp.projects entry.
  • Not run:
    • Website build. The doc edits are text only and touch no links.
    • Dark mode, Playful theme and the two-copies dialog in the browser.

Not covered

  • If the MCP or hooks data fails to load, the dialog cannot know about those settings and shows no line.
  • The CLI confirmation prompt does not mention the settings; the warning appears after removal and in --dry-run.
  • The non-Chinese translations were written without a native-speaker review.

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.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-18T14:07:58.026435Z 2793567 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@runkids
runkids merged commit f8d768a into main Nov 18, 2026
9 checks passed
@runkids
runkids deleted the runkids/project-remove-mcp-hint branch November 18, 2026 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant