mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-28 11:41:04 +00:00
fix(review): handle interrupted review cleanup
If a previous review was interrupted (Ctrl+C, crash), stale worktree and local ref would block the next review. Now Step 1 checks for and cleans up stale .qwen/tmp/review-pr-<N> worktree and qwen-review/pr-<N> ref before creating new ones. Step 5 also cleans up the local ref alongside the worktree. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
6b28920a07
commit
d6b9b35350
2 changed files with 11 additions and 6 deletions
|
|
@ -117,6 +117,7 @@ When reviewing a PR, `/review` creates a temporary git worktree (`.qwen/tmp/revi
|
|||
- Build and test commands run in isolation without polluting your local build cache
|
||||
- If anything goes wrong, your environment is unaffected — just delete the worktree
|
||||
- The worktree is automatically cleaned up after the review completes
|
||||
- If a review is interrupted (Ctrl+C, crash), the next `/review` of the same PR automatically cleans up the stale worktree before starting fresh
|
||||
- Review reports and cache are saved to the main project directory (not the worktree)
|
||||
|
||||
## PR Inline Comments
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue