feat: checkpoint resume and fetchIssueByRef#43
Open
awen11123 wants to merge 2 commits into
Open
Conversation
与上游合并后保留的独有功能: - Checkpoint 断点恢复:scout/select 后自动保存,失败重启时提示 Resume - 多方案选择:非 headless 模式 LLM 生成 2-3 个方案供选择 - fetchIssueByRef:通过 owner/repo#number 直接获取单个 issue 上游已有翻页延迟、--issue、--repo、onStatus 等功能,本 PR 仅 新增上游尚未实现的功能。
- Checkpoint auto-saves after scout/select stages, allows resume on restart - fetchIssueByRef fetches a single GitHub issue by owner/repo/number - Removed multi-approach patch (deemed redundant by upstream maintainer) Checkpoint expires after 1 hour and auto-cleans on successful run.
Owner
|
need rebase |
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.
Two practical improvements on top of upstream:
1. Checkpoint Resume
Automatically saves a checkpoint after the scout and select stages complete. If the agent fails during workspace prep (network issues, clone failures, etc.), the next run will prompt:
Choosing Resume skips the expensive search and LLM scoring phases, jumping straight to where the failure occurred. Checkpoints expire after 1 hour and are auto-cleaned on successful runs.
2. fetchIssueByRef
Adds a method to fetch a single GitHub issue directly by
owner/repo/number, used by the--issueflag to load targeted issues without going through search.Files Changed
src/orchestration/agent.ts— checkpoint save/load/clear, checkpoint-aware scout/select flowsrc/services/github.ts— fetchIssueByRef methodTesting
TypeScript typecheck and build both pass cleanly.
Note
A multi-approach patch feature was initially included but has been removed per upstream maintainer feedback (redundant, risks LLM hallucinations and wasted tokens).