Skip to content

Closing an Issue mid-delivery does not stop the session: Orbi works on the closed Issue until the end - #2471

Merged
orbi-build[bot] merged 4 commits into
mainfrom
orbi/orbi-build-orbi-issue-2468
Nov 27, 2026
Merged

orbi-build[bot] merged 4 commits into
mainfrom
orbi/orbi-build-orbi-issue-2468

Conversation

@orbi-build

@orbi-build orbi-build Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

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

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.
@orbi-build

orbi-build Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

Orbi review round 1 for PR #2471: 0 blocker(s), 0 major(s).
#2468 Closing an Issue mid-delivery does not stop the session: Orbi works on the closed Issue until the end
Project status: Open project status

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

orbi-build Bot added 2 commits November 27, 2026 07:50
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.
@orbi-build
orbi-build Bot merged commit 491ebab into main Nov 27, 2026
2 checks passed
@orbi-build

orbi-build Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

✅ Orbi 已交付 · 查看交付证明 →

@orbi-build
orbi-build Bot deleted the orbi/orbi-build-orbi-issue-2468 branch November 27, 2026 08:01
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.

Closing an Issue mid-delivery does not stop the session: Orbi works on the closed Issue until the end

0 participants