fix(milestone): preserve 999.x backlog phases during phases clear (#1858)

* fix(milestone): preserve 999.x backlog phases during phases clear

Fixes #1853

* fix: remove accidentally bundled plan-stall-detection test

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Tom Boucher
2026-04-06 08:54:18 -04:00
committed by GitHub
parent 2d80cc3afd
commit 09e56893c8
2 changed files with 73 additions and 1 deletions

View File

@@ -253,7 +253,7 @@ function cmdPhasesClear(cwd, raw, args) {
if (fs.existsSync(phasesDir)) {
const entries = fs.readdirSync(phasesDir, { withFileTypes: true });
const dirs = entries.filter(e => e.isDirectory());
const dirs = entries.filter(e => e.isDirectory() && !/^999(?:\.|$)/.test(e.name));
if (dirs.length > 0 && !confirm) {
error(