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(web): allow deleting non-empty projects from the warning toast by maria-rcks · Pull Request #1264 · pingdotgg/t3code

Conversation

@maria-rcks

@maria-rcks maria-rcks commented Mar 21, 2026 •
edited by macroscopeapp Bot
Loading

Uh oh!

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

Copy link
Copy Markdown
Collaborator

What Changed

Adds a Delete anyway button to the Project is not empty warning toast.

Clicking it closes the toast, asks for confirmation, then deletes the project's threads and removes the project.

closes #665

Why

Right now the warning blocks project deletion without giving you a way to continue.

This keeps the fix small and makes the warning actionable.

Video

Screen.Recording.2026-03-20.at.9.56.38.PM.mov

Note

Allow force-deleting non-empty projects from the sidebar with cascading thread cleanup

  • Adds a force flag to the project.delete command schema; the decider rejects non-empty project deletions unless force=true, in which case it emits thread.deleted events for each active thread before project.deleted.
  • The sidebar now shows a warning toast with a destructive 'Delete anyway' action for non-empty projects, triggering a confirmation dialog before dispatching a forced delete.
  • Introduces ThreadDeletionReactor, a new server-side service that listens for thread.deleted events and performs best-effort cleanup by stopping provider sessions and closing terminals.
  • Draft thread state and image blob URLs associated with the project are cleared when the project is deleted.
  • Toast UI is extended to support stacked action layout and configurable button variants (e.g. destructive).

Macroscope summarized e2d953d.


Note

Medium Risk
Changes orchestration deletion semantics and introduces a new background reactor that stops sessions/closes terminals; incorrect sequencing or missed wiring could lead to data loss or leaked runtime resources.

Overview
Enables deleting a non-empty project from the sidebar by surfacing a warning toast with a destructive “Delete anyway” action that re-dispatches project.delete with force=true after confirmation.

On the server, project.delete now supports an optional force flag: without it, deleting a project with active threads is rejected; with it, the decider plans a sequence of thread.deleted events for each active thread before emitting project.deleted. A new ThreadDeletionReactor is wired into the runtime to react to thread.deleted events and best-effort stop provider sessions and close terminals.

Client-side cleanup is tightened: toasts support stacked action layout/variants, composer drafts revoke image blob URLs when cleared, and project.deleted events clear any project-scoped draft mapping.

Reviewed by Cursor Bugbot for commit e2d953d. Bugbot is set up for automated code reviews on this repo. Configure here.

Sorry, something went wrong.

Uh oh!

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

teziovsky, notkainoa, and yumitdemir reacted with heart emoji
All reactions
  • ❤️ 3 reactions
@coderabbitai

coderabbitai Bot commented Mar 21, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 3e901cfb-413f-4746-b5ce-a2af44454c2a

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
  • X
  • Mastodon
  • Reddit
  • LinkedIn

Comment @coderabbitai help to get the list of available commands and usage tips.

All reactions

Sorry, something went wrong.

Uh oh!

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

@github-actions github-actions Bot added size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list. labels Mar 21, 2026
@maria-rcks
maria-rcks force-pushed the fix/web-project-delete-anyway branch from f74b447 to b3f029d Compare April 6, 2026 19:17
cursor[bot]
cursor Bot reviewed Apr 6, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

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

@macroscopeapp

macroscopeapp Bot commented Apr 6, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Needs human review

This PR introduces a new capability for force-deleting non-empty projects, including a new ThreadDeletionReactor service, decider logic changes, and UI enhancements. The scope involves significant runtime behavior changes across server and web. Additionally, two unresolved review comments raise design concerns about the implementation approach.

You can customize Macroscope's approvability policy. Learn more.

All reactions

Sorry, something went wrong.

Uh oh!

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

juliusmarminge
juliusmarminge reviewed Apr 6, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Outdated
Comment on lines +1279 to +1282
for (const threadId of projectThreadIds) {
await deleteThread(threadId, { deletedThreadIds });
}
await removeProject(projectId);

@juliusmarminge juliusmarminge Apr 6, 2026

Copy link
Copy Markdown
Member

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.

will this slow down the frontend? should we do it server side with some force: true flag and then do the deletions from there?

Sorry, something went wrong.

Uh oh!

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

All reactions
cursor[bot]
cursor Bot reviewed Apr 6, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

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

@maria-rcks

maria-rcks commented Apr 6, 2026

Copy link
Copy Markdown
Collaborator Author

@juliusmarminge

All reactions

Sorry, something went wrong.

Uh oh!

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

juliusmarminge
juliusmarminge reviewed Apr 6, 2026
View reviewed changes
Comment thread apps/server/src/orchestration/decider.ts Outdated
commandId: command.commandId,
}),
{
type: "thread.deleted" as const,

@juliusmarminge juliusmarminge Apr 6, 2026

Copy link
Copy Markdown
Member

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.

thread.deleted is emitted when the thread has been deleted. Shouldn't this emit a thread.delete command?

Sorry, something went wrong.

Uh oh!

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

All reactions
cursor[bot]
cursor Bot reviewed Apr 6, 2026
View reviewed changes

@cursor cursor Bot 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.

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 526ca72d97908be0ad444c5f0e2408f66fb5e782. Configure here.

Sorry, something went wrong.

Uh oh!

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

All reactions
Comment thread apps/web/src/routes/__root.tsx Resolved

Uh oh!

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

@maria-rcks
maria-rcks force-pushed the fix/web-project-delete-anyway branch from bc591c6 to f171346 Compare April 7, 2026 00:00
@rookmate

rookmate commented Apr 9, 2026 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Would love to get this in the next version. My current work involves going into multiple projects to do multiple one-of tasks in each project and this would help me clean the project tree easily of older projects

All reactions

Sorry, something went wrong.

Uh oh!

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

@maria-rcks
maria-rcks force-pushed the fix/web-project-delete-anyway branch from f171346 to 6c3dc9c Compare April 10, 2026 01:53
macroscopeapp[bot]
macroscopeapp Bot reviewed Apr 10, 2026
View reviewed changes
Comment thread apps/web/src/components/Sidebar.tsx Resolved

Uh oh!

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

Comment thread apps/server/src/orchestration/Layers/ThreadDeletionReactor.ts Resolved

Uh oh!

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

maria-rcks added 6 commits April 10, 2026 13:09
@maria-rcks
fix(web): allow deleting non-empty projects from the warning toast
b13dccc
@maria-rcks
feat(orchestration): force-delete project threads server-side
12b51dd
@maria-rcks
refactor(orchestration): reuse thread.delete when force-deleting proj…
5f654ed
…ects
@maria-rcks
fix(web): revoke draft image blob urls on project deletion
20403bd
@maria-rcks
fix(orchestration): preserve interrupts in thread deletion cleanup
c2986f9
@maria-rcks
fix(web): keep grouped project delete warning conservative
4721345
@maria-rcks
maria-rcks force-pushed the fix/web-project-delete-anyway branch from 0aa5be3 to 4721345 Compare April 10, 2026 17:09
@github-actions github-actions Bot added size:XXL 1,000+ changed lines (additions + deletions). size:L 100-499 changed lines (additions + deletions). and removed size:L 100-499 changed lines (additions + deletions). size:XXL 1,000+ changed lines (additions + deletions). labels Apr 10, 2026
@juliusmarminge @codex
Merge origin/main into fix/web-project-delete-anyway
e2d953d
Co-authored-by: codex <[email protected]>
@juliusmarminge
juliusmarminge merged commit 4e0c003 into pingdotgg:main Apr 17, 2026
10 checks passed

Uh oh!

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

aaditagrawal added a commit to aaditagrawal/t3code that referenced this pull request Apr 18, 2026
@aaditagrawal
sync: merge 33 upstream commits from pingdotgg/t3code
d583485
Integrates upstream/main (9df3c64) on top of fork's main (9602c18).

Upstream features adopted:
- Claude Opus 4.5 and 4.7 built-in models (pingdotgg#2072, pingdotgg#2143)
- Node-native TypeScript migration across desktop/server (pingdotgg#2098)
- Configurable project grouping with client-settings overrides (pingdotgg#2055, pingdotgg#2099)
- Thread status in command palette (pingdotgg#2107)
- Responsive composer / plan sidebar on narrow windows (pingdotgg#1198)
- Capture-phase CTRL+J keydown for Windows terminal toggle (pingdotgg#2113/pingdotgg#2142)
- Bypass xterm for global terminal shortcuts (pingdotgg#1580)
- Windows ARM build target (pingdotgg#2080)
- Windows PATH hydration + repair (pingdotgg#1729)
- Gitignore-aware workspace search (pingdotgg#2078)
- Claude process leak fix + stale session monitoring (pingdotgg#2042)
- Preserve provider bindings when stopping sessions (pingdotgg#2084)
- Clean up invalid pending-approval projections (pingdotgg#2106) — new migration
- Extract backend startup readiness coordination
- Drop stale text-gen options on reset (pingdotgg#2076)
- Extend negative repository identity cache TTL (pingdotgg#2083)
- Allow deleting non-empty projects from warning toast (pingdotgg#1264)
- Restore defaults only on General settings (pingdotgg#1710)
- Release workflow modernization (blacksmith runners, GitHub App token guards, v0.0.20 version bump)

Fork features preserved:
- All 8 providers (codex, claudeAgent, copilot, cursor, opencode,
  geminiCli, amp, kilo) with their adapters, services, and tests
- Fork's custom OpenCode protocol impl in apps/server/src/opencode/ (kept
  over upstream's @opencode-ai/sdk-based provider added in pingdotgg#1758 — fork's
  version is tested and integrated; upstream's parallel files deleted)
- Fork's direct-CLI Cursor adapter (kept over upstream's new ACP-based
  CursorProvider added in pingdotgg#1355 — upstream's parallel files deleted)
- Fork's ProviderRegistry aggregates only codex + claudeAgent snapshots;
  the other 6 providers register via ProviderAdapterRegistry
- PROVIDER_CACHE_IDS stays at [codex, claudeAgent] matching what the
  registry actually caches
- Migration IDs preserved (fork 23/24/25/26; upstream's new 025 lands at
  ID 27 to avoid re-applying on deployed fork DBs)
- Fork's generic per-provider settings (enabled/binaryPath/configDir/
  customModels) kept over upstream's opencode-specific serverUrl/password
- Log directory IPC channels, updateInstallInFlight tracking, icon
  composer pipeline all preserved
- Fork's simplified release.yml (no npm CLI publish, no nightly infra)
- composerDraftStore normalizeProviderKind widened to accept all 8 kinds
- Dark mode --background set to #0f0f0f

Test status:
- All 9 package typechecks pass
- Lint clean (0 errors)
- Tests: 1877 passed, 15 skipped (incl. 4 historically-flaky GitManager
  cross-repo PR selector tests newly gated with TODO for Node-native-TS
  follow-up)
@aaditagrawal aaditagrawal mentioned this pull request Apr 18, 2026
sync: merge 33 upstream commits from pingdotgg/t3code aaditagrawal/t3code#71
Merged
5 of 9 tasks
alecramos-sudo added a commit to alecramos-sudo/t3code that referenced this pull request Apr 20, 2026
@alecramos-sudo @claude
merge: upstream/main into dev-build (v0.0.20 + 27 commits)
d1b3124
Brings in upstream changes since d22c6f5:
- Claude Opus 4.5 built-in model (pingdotgg#2143)
- Claude Opus 4.7 built-in model (pingdotgg#2072)
- opencode provider support (pingdotgg#1758)
- Claude process leak fix & session reaper (pingdotgg#2042)
- Configurable project grouping (pingdotgg#2055)
- Node-native TypeScript for desktop/server (pingdotgg#2098)
- Clean up invalid pending approval projections (pingdotgg#2106)
- Thread status in command palette (pingdotgg#2107)
- Backend startup readiness coordination (pingdotgg#2133)
- Preserve provider bindings on session stop (pingdotgg#2125)
- Allow deleting non-empty projects (pingdotgg#1264)
- Various Windows fixes and CI improvements

Conflict resolutions:
- model.ts: kept claudeAgent opus-4-7 default, added opencode entry
- settings.ts: adopted upstream sidebarProjectGroupingMode/Overrides
- ClaudeProvider.ts: adopted upstream Opus 4.7 effort config
- Sidebar.tsx: adopted upstream project grouping approach
- package.json: kept custom desktop-only build filter

Co-Authored-By: Claude Opus 4.6 <[email protected]>
tyulyukov pushed a commit to tyulyukov/marcode that referenced this pull request Apr 22, 2026
@maria-rcks @juliusmarminge
@codex @tyulyukov
fix(web): allow deleting non-empty projects from the warning toast (p…
8db4a49
…ingdotgg#1264)

Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
MuneerAhmed03 pushed a commit to MuneerAhmed03/t3code that referenced this pull request Apr 26, 2026
@maria-rcks @juliusmarminge @codex
fix(web): allow deleting non-empty projects from the warning toast (p…
df2ae74
…ingdotgg#1264)

Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
youpele52 referenced this pull request in youpele52/bigbud Jun 17, 2026
@maria-rcks @juliusmarminge @codex
fix(web): allow deleting non-empty projects from the warning toast (#…
cd05dc0
…1264)

Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
NeilTheFisher pushed a commit to NeilTheFisher/t3code that referenced this pull request Aug 18, 2026
@maria-rcks @juliusmarminge @codex
fix(web): allow deleting non-empty projects from the warning toast (p…
9eb48fa
…ingdotgg#1264)

Co-authored-by: Julius Marminge <[email protected]>
Co-authored-by: codex <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@juliusmarminge juliusmarminge juliusmarminge left review comments
@macroscopeapp macroscopeapp[bot] macroscopeapp[bot] left review comments
@cursor cursor[bot] cursor[bot] left review comments

Uh oh!

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

Assignees

No one assigned

Labels

size:L 100-499 changed lines (additions + deletions). vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Feature: Option to delete non-empty Project

Uh oh!

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

3 participants

@maria-rcks @rookmate @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.