Skip to content

fix(cli): persist backfill checkpoints - #310

Merged
xingkaixin merged 1 commit into
mainfrom
feat/cs-188-backfill-checkpoints
Aug 11, 2026
Merged

fix(cli): persist backfill checkpoints#310
xingkaixin merged 1 commit into
mainfrom
feat/cs-188-backfill-checkpoints

Conversation

@xingkaixin

Copy link
Copy Markdown
Owner

Summary

  • enable durable checkpoints for full and source backfill operations
  • persist each finalization cursor emitted by the scan worker
  • keep stale sessions before a restored cursor eligible for re-finalization

Root cause

Backfill scheduling read the stored cursor but never requested durable worker checkpoints or installed a checkpoint callback. As a result, markAgentFullSyncProgress had no production caller and interrupted backfills always restarted finalization from the beginning.

Verification

  • added an engine test for checkpoint wiring and cursor persistence
  • extended the worker integration test to cover stale sessions before the cursor
  • pnpm --filter codesesh lint
  • pnpm --filter codesesh format:check
  • pnpm --filter codesesh test
  • pnpm --filter codesesh build

Issue: CS-188

@xingkaixin
xingkaixin merged commit f3dd43e into main Aug 11, 2026
19 of 20 checks passed
@xingkaixin
xingkaixin deleted the feat/cs-188-backfill-checkpoints branch August 11, 2026 14:57
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