Repository navigation
fix(core): keep snapshot readiness interruptible before publication - #55402
CasualDeveloper wants to merge 1 commit into
Conversation
|
The following comment was made by an LLM, it may be inaccurate: |
There was a problem hiding this comment.
The fix looks correct. On the base I reproduced the hang from #55401 with the bot's held-capture script, for both a retryable and a terminal pre-output failure. With these two lines applied, both cases settle while the capture is still held. The new tests fail on base production code and pass with the change. The runner test suite and the core typecheck pass.
If Stop arrives during the new restore(Fiber.join(pendingStartSnapshot)), nothing has been published yet, so no assistant or step records are left behind, and the scoped capture fiber is cleaned up. A failed capture is handled as before, because the later step publication already joins the same fiber.
Public API: unchanged.
One small suggestion on the tests (inline): the revert-stage part checks more than this fix needs and could be trimmed.
Related: #48657
a0b641e to
c3a5f99
Compare
|
I rebased this onto |
Restore interruption while raw pre-output provider failure waits for the pending start snapshot, before retry or failure publication. Preserve uninterruptible final publication and tool cleanup. Cover retryable and terminal failures with a held capture, interruption-only idle, subsequent revert staging, and no late step or tool writes.
c3a5f99 to
14d89c7
Compare
|
Automated PR Cleanup Thank you for contributing to opencode. Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions. This PR was closed because it matched the following cleanup criteria:
PRs created within the last month are not affected by this cleanup. If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate. Thanks again for taking the time to contribute. |
|
Please reopen this PR. It was closed by the November 14 age/reaction cleanup, and I’m still maintaining this two-line fix for #55401. The earlier automated review reproduced both held-capture hangs and confirmed the fix; I removed the extra revert-stage assertions from this focused PR as requested. On November 16 I refreshed the maintained copy onto Those fresh results are from the maintained combined source, whose tests include broader revert coverage. This PR still points at |
|
I’ve now refreshed this PR’s own branch onto The fork branch is verified at the linked commit. GitHub's closed PR record still reports the older head SHA, so the link above identifies the refreshed revision. |
Issue for this PR
Fixes #55401
Split out of #55315.
Type of change
What does this PR do?
I keep the pending start-snapshot wait interruptible when a provider fails before producing an event. Stop can settle without waiting for capture to finish, before any assistant/step publication. Final publication and tool cleanup remain uninterruptible.
Two production lines; no admission, API, plugin, or UI changes. The fix preserves upstream's newer retry and cooperative-stop handling.
How did you verify your code works?
devat0354362b857beae78166d4305f06c0b2f47c251e.bun run checkpasses. These checks ran on this focused branch, without the other feature branches.Screenshots / recordings
No visual changes.
Checklist
Process: human-directed, with agentic assistance from openai/gpt-6-astra.
Added by the opencode bot (AI-generated).
Related: #48657