Update: Search checkpoint across all Runs in Job for --resume-from#81
Closed
FL4TLiN3 wants to merge 1 commit intoepic/job-conceptfrom
Closed
Update: Search checkpoint across all Runs in Job for --resume-from#81FL4TLiN3 wants to merge 1 commit intoepic/job-conceptfrom
FL4TLiN3 wants to merge 1 commit intoepic/job-conceptfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Contributor
Author
|
Consolidated into a combined PR with #82 |
FL4TLiN3
added a commit
that referenced
this pull request
Dec 9, 2025
- Simplify checkpoint storage path to jobs/{jobId}/checkpoints/{id}.json
- Remove timestamp from checkpoint filename
- Update --resume-from to strictly require --continue-job
- Change TUI history from Run-based to Job-based display
- Show jobId and checkpointId in TUI for easier CLI usage
Closes #81
Closes #82
This was referenced Dec 9, 2025
FL4TLiN3
added a commit
that referenced
this pull request
Dec 9, 2025
* Add: Job lifecycle management and persistence
* Refactor: Simplify checkpoint path and display Job-based history in TUI
- Simplify checkpoint storage path to jobs/{jobId}/checkpoints/{id}.json
- Remove timestamp from checkpoint filename
- Update --resume-from to strictly require --continue-job
- Change TUI history from Run-based to Job-based display
- Show jobId and checkpointId in TUI for easier CLI usage
Closes #81
Closes #82
* Refactor: Move persistence logic from run-manager to runtime
- Add getAllJobs() to job-store.ts
- Add getAllRuns() to run-setting-store.ts
- Add getCheckpointsByJobId(), getEventsByRun(), getEventContents() to default-store.ts
- Export new functions from runtime index
- Simplify run-manager.ts to delegate to runtime functions
* Fix: Job totalSteps and usage double-counting
stepNumber and usage in checkpoints are cumulative within a Job,
so directly assign instead of summing to avoid double-counting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
findCheckpointInJob(jobId, checkpointId)to search across all Runs in a Jobcontext.tsto use the new function for--resume-fromPreviously,
--resume-fromonly searched the most recent Run, failing when the checkpoint existed in an earlier Run.Test plan
pnpm typecheckpassespnpm testpassespnpm test:e2epassesCloses #79
Note
Search
--resume-fromcheckpoint across all runs in a job and use it in run context resolution.findCheckpointInJob(jobId, checkpointId)inpackages/perstack/src/lib/run-manager.tsto scan all runs within a job for a matching checkpoint and return it; throws if not found.resolveRunContextinpackages/perstack/src/lib/context.tsto usefindCheckpointInJobfor--resume-from, instead of relying on the most recent run.Written by Cursor Bugbot for commit 1ee8a88. This will update automatically on new commits. Configure here.