Skip to content

fix(registry): recover incomplete generation cleanup - #393

Merged
yaojin3616 merged 1 commit into
mainfrom
agent/debugger/16b968ddae56
Sep 11, 2026
Merged

yaojin3616 merged 1 commit into
mainfrom
agent/debugger/16b968ddae56

Conversation

@yaojin3616

Copy link
Copy Markdown
Contributor

Summary

  • tolerate generation directories whose generation.json disappeared during a partial Windows deletion
  • discover unreferenced directories independently of their metadata while retaining fail-closed validation for desired generations
  • move unreferenced generations from live to uniquely named trash entries before recursive deletion
  • cover incomplete metadata, desired-generation protection, and locked-child retry behavior

Verification

  • npm test -- --run test/generation-registry.test.ts test/generation-projection.test.ts test/generation-launch.test.ts (34 tests passed)
  • npm test -- --run (854 tests passed)
  • git diff --check
  • npm run typecheck (blocked by pre-existing test/desktop-client-ui.test.ts:108-109 TS18048 errors on origin/main)

Fixes #389

@yaojin3616
yaojin3616 merged commit d34eacc into main Sep 11, 2026
5 of 6 checks passed
@yaojin3616
yaojin3616 deleted the agent/debugger/16b968ddae56 branch September 11, 2026 13:56
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.

[Bug] 清扫部分删除失败会留下缺少 generation.json 的目录,导致清扫永久自锁、只能进安全模式

1 participant