Skip to content

Fix thread deletion while turns are active - #209

Merged
BunsDev merged 3 commits into
mainfrom
fix-thread-delete
Oct 15, 2026
Merged

BunsDev merged 3 commits into
mainfrom
fix-thread-delete

Conversation

@BunsDev

@BunsDev BunsDev commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Thread and project deletion incorrectly acquired the restart guard, so an active turn anywhere in Modex rejected deletion with “Let current turns and worktree operations finish before restarting.”

Use a dedicated owner-removal admission hold: deletion stops and drains its own turns while unrelated turns continue. Internal routing and title updates remain admitted, and the renderer preserves unrelated thread updates delivered during canonical adoption. Structural-operation fences, native draft preparation/adoption, strict restart checks, and force-stop recovery remain intact.

Validation: full build and unit tests passed; desktop typecheck passed. The full desktop E2E run had 275 passes, with missing-browser, startup-event, and draft-baseline failures; all 15 affected/deferred cases passed on rerun after installing Chromium and fixing the baseline wait. All five owner-removal tests then passed three consecutive runs; seven site E2E tests passed. Combined deletion/archive/fallback regressions passed 31 tests. Independent review found no remaining actionable issues. Current-head CI remains required before landing.

Coven-Harness: Codex / GPT-6

Use a dedicated owner-removal admission hold so deletion can stop its own turns without requiring unrelated turns to finish. Preserve draft preparation, structural-operation fences, and restart checks.

Coven-Harness: Codex / GPT-6
@vercel

vercel Bot commented Oct 15, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
modex Ready Ready Preview Oct 15, 2026 4:26am UTC

Request Review

Keep internal routing and naming updates available under the owner-removal fence. Replay surviving thread metadata received after canonical adoption. Include current main and its iPhone test timing fixes.

Coven-Harness: Codex / GPT-6
@BunsDev
BunsDev merged commit 6009226 into main Oct 15, 2026
12 checks passed
@BunsDev
BunsDev deleted the fix-thread-delete branch October 15, 2026 15:41

This branch was successfully deployed

1 active deployment
Preview — af339b9e Deployed Oct 15, 2026 by vercel[bot]
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