Skip to content

fix: revise failure must not show Done/已完成 - #143

Merged
cocofhu merged 1 commit into
mainfrom
fix/review-failure-interrupted-done
Jul 29, 2026
Merged

fix: revise failure must not show Done/已完成#143
cocofhu merged 1 commit into
mainfrom
fix/review-failure-interrupted-done

Conversation

@cocofhu

@cocofhu cocofhu commented Jul 29, 2026

Copy link
Copy Markdown
Owner

Summary

  • executeReviewTurn: on t.Err != nil, persist agent Interrupted=true and return true, nil so pump emits turn_done + interrupted:true (same UI path as cancel).
  • Failure body (复审修改失败:…) remains visible; enqueue still succeeds; outputs are not refreshed; Run/node are not failed.
  • Add engine + web regression tests so failure/interrupted paths never show Done/已完成.

Review

  • Verdict: approve (review_lite). No blocking findings; CI green on gate/server/web/web-e2e/security.

Test plan

  • go test ./internal/engine/ -run TestReviewReplyFailureDoesNotSyncOutputs
  • npm test -- ClarifyChat/GateApproval/ReviewComposer/ThoughtSummaryStatus (failure + interrupted cases)
  • Manual (optional): trigger revise idle timeout → bubble shows failure text + 已中断, no green Done; retry enqueue still works

ReviseInPlace errors were persisted and streamed as successful turn_done,
so chat footnotes still showed 已完成/Done. Share Interrupted with cancel
and emit turn_done+interrupted:true while keeping the session retryable.

Co-authored-by: Cursor <[email protected]>
@cocofhu
cocofhu merged commit 02d3a65 into main Jul 29, 2026
14 checks passed
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