This commit is contained in:
parent
1f67ce250b
commit
84e772f086
1 changed files with 5 additions and 0 deletions
|
|
@ -944,6 +944,11 @@ export async function startAuto(
|
|||
ctx.ui.notify(`Debug logging enabled → ${getDebugLogPath()}`, "info");
|
||||
}
|
||||
|
||||
// Invalidate all caches before initial state derivation to ensure we read
|
||||
// fresh disk state. Without this, a stale cache from a prior session (e.g.
|
||||
// after a discussion that wrote new artifacts) may cause deriveState to
|
||||
// return pre-planning when the roadmap already exists (#800).
|
||||
invalidateAllCaches();
|
||||
let state = await deriveState(base);
|
||||
|
||||
// ── Stale worktree state recovery (#654) ─────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue