GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(server): MCP can no longer delete the built-in No project by Sidreyas · Pull Request #33812 · pingdotgg/t3code

Conversation

@Sidreyas

@Sidreyas Sidreyas commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Fixes #33766

An agent calling t3_project_delete with force: true on the built-in "No project" deleted every thread it held (1,872 thread rows in the report, pinned and running ones included) and their attachment files, with no confirmation. The server recreates that project on the next scratch launch, so deleting it has no use beyond deleting every thread in it.

The MCP delete handler now checks ManagedProjectFolders.isScratchProject first and refuses with invalid_request, telling the agent to delete or archive threads individually. Other projects are unchanged. The tool description is untouched, so no model-facing text changes. The web UI path is left as is, since it already shows a destructive confirmation before sending force: true.

Verification:

  • New case in apps/server/src/mcp/toolkits/project/handlers.test.ts: a forced delete of the scratch project returns invalid_request and never reaches ProjectService.delete. It fails on main and passes with the fix; all 12 tests in the file pass.
  • Format, lint, knip and the server typecheck pass. vp run check:changed stalls on the Windows node_modules junction scan (perf(scripts): check:changed on Windows no longer spends minutes walking node_modules (2,500 s → 5.0 s) #32023), so its stages were run directly.

Implemented with Claude Opus 5.5 via Claude Code.

🤖 Generated with Claude Code

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@Sidreyas @claude
fix(server): MCP can no longer delete the built-in No project
134607d
A forced t3_project_delete on the scratch project deleted every thread in
it, pinned and running ones included, while the server recreates the
project on the next scratch launch anyway. Refuse it with invalid_request.

Fixes pingdotgg#33766

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Copilot AI balanced review requested due to automatic review settings November 10, 2026 10:49
Copilot AI reviewed Nov 10, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Nov 10, 2026
macroscopeapp[bot]
macroscopeapp Bot approved these changes Nov 10, 2026
View reviewed changes
@macroscopeapp

macroscopeapp Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 134607d

Macroscope's review found this PR approvable — The MCP delete tool now refuses to delete the built-in “No project,” preventing bulk deletion of its threads. Ordinary project deletion remains unchanged, and the safeguard introduces no data migration or new destructive behavior.

You can add or adjust custom eligibility rules. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge GitCafe Production

juliusmarminge commented Nov 10, 2026

Copy link
Copy Markdown
Member

Thanks, Sidreyas, for protecting the built-in scratch project. Closing this as a duplicate of #33773, where Julius Marminge has the same MCP guard with regression and runtime verification.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@juliusmarminge juliusmarminge closed this Nov 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:S 10-29 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

[Bug]: MCP t3_project_delete with force deletes the built-in "No project" scratch project and every thread in it, running and pinned ones included, with no confirmation or count

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@Sidreyas @juliusmarminge
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.