Skip to content

fix(runtime): prepare checkpoint directories before backup - #459

Merged
Yevanchen merged 1 commit into
mainfrom
fix/runtime-checkpoint-missing-directory
Jul 29, 2026
Merged

fix(runtime): prepare checkpoint directories before backup#459
Yevanchen merged 1 commit into
mainfrom
fix/runtime-checkpoint-missing-directory

Conversation

@Yevanchen

Copy link
Copy Markdown
Collaborator

Summary

  • materialize declared checkpoint directories before Cloudflare Sandbox backup
  • allow stale/missing pet session workspaces to converge instead of leaving the subject permanently backing_up
  • assert every checkpoint target is prepared in the recycle test

Production evidence

A pet subject repeatedly failed maintenance because an old session workspace no longer existed; the operation retried every ten minutes and blocked new runs.

Verification

  • bun test apps/api/tests/runtime-subject-recycle.test.ts
  • just tc-package @mosoo/api
  • focused formatting checks
  • git diff --check

@Yevanchen
Yevanchen merged commit 92f6627 into main Jul 29, 2026
9 checks passed
@Yevanchen
Yevanchen deleted the fix/runtime-checkpoint-missing-directory branch July 29, 2026 20:17
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