Skip to content

feat: checkpoint resume and fetchIssueByRef#43

Open
awen11123 wants to merge 2 commits into
NianJiuZst:mainfrom
awen11123:feat/v2-merged
Open

feat: checkpoint resume and fetchIssueByRef#43
awen11123 wants to merge 2 commits into
NianJiuZst:mainfrom
awen11123:feat/v2-merged

Conversation

@awen11123

Copy link
Copy Markdown
Contributor

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:

Found a checkpoint from 2026-06-04. Resume from where you left off?
  ● Resume (skip scout)
  ○ Start fresh

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 --issue flag to load targeted issues without going through search.

Files Changed

  • src/orchestration/agent.ts — checkpoint save/load/clear, checkpoint-aware scout/select flow
  • src/services/github.ts — fetchIssueByRef method

Testing

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).

awen11123 added 2 commits June 4, 2026 16:50
与上游合并后保留的独有功能:
- 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.
@NianJiuZst

Copy link
Copy Markdown
Owner

need rebase

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.

2 participants