Repository navigation
Closing an Issue mid-delivery does not stop the session: Orbi works on the closed Issue until the end - #2471
Merged
Merged
Conversation
Closing the Issue mid-delivery only stopped the delivery right before the PR was opened, so the session kept working on a closed Issue to its end (the davidshitrit350/hive#2 scene: 98 extra minutes of a paid model and a held slot). The steering poll that already reads the Issue for corrections now reads its state in the same read (--json comments,body,state) and raises the session's own control-flow stop on CLOSED: the session's single exit path terminates and reaps Pi, and _run_session carries the stop to the shared closeout. deliver_pr treats that stop as an INTERRUPTED delivery - the commit-boundary guards do not apply (uncommitted edits or no commit past the base are what stopping where it was leaves) - pushes only the committed HEAD, then the existing post-push state read posts the same closed-mid-delivery comment, records delivery_issue_closed and ends the run with result=issue_closed. A stop whose Issue reads OPEN again with no commit is the recoverable resume, not an empty PR. The pre-PR check stays for an Issue closed in the last seconds after the session ended. Tests: the poll keeps an OPEN Issue running and stops a CLOSED one; a stop terminates the live process; the delivery scene (OPEN at claim, CLOSED on a later poll) pushes the session's commit, leaves no PR, posts the comment once and journals result=issue_closed; a stop before the delivery commit pushes nothing; a reopened Issue resumes. Fixes #2468
A stop whose Issue reads OPEN again at the closeout (reopened within it) was handled only when the session had committed nothing: with a commit, the closeout fell through to the PR creation and a human could merge an interrupted, half-done delivery. The interrupted commit is never a finished delivery, so the stop now fails as recoverable for both cases and the next tick resumes the same run; the pushed branch keeps the work.
Contributor
Author
|
Orbi review round 1 for PR #2471: 0 blocker(s), 0 major(s). CI merge gate blocked: delivery gate: CI check 'macos-compatibility' failed on PR #2471: check 'macos-compatibility' is COMPLETED/FAILURE, check 'tests' is COMPLETED/FAILURE (run_id=005f8b91) The next review session merges the latest origin/main into the branch in-session, resolves conflicts, and reruns the full test suite |
The closeout of a session stopped by the closed-Issue poll ran the base absorb, which needs a clean tree. An interrupted worktree is expected to carry uncommitted edits, so `git merge origin/main` refused it, its own rollback failed (no MERGE_HEAD) and the unhandled error ended the run before the committed work was pushed or the closed-mid-delivery comment was posted. The interrupted branch opens no PR, so it pushes only the committed HEAD and skips the base merge; a delivery test covers a stopped session with a leftover edit over a base that moved. The patch ratchet baseline records the new test's seam count.
Contributor
Author
|
✅ Orbi 已交付 · 查看交付证明 → |
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.
Fixes #2468
Closing an Issue mid-delivery does not stop the session: Orbi works on the closed Issue until the end (run_id=005f8b91)
Built by Orbi from Issue #2468