fix: recover rejected scheduler dispatches in v0.5.23 - #10
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR introduces a temporary automation path to apply and verify the v0.5.23 “dispatch recovery” patch (by rewriting src/index.js, updating tests, bumping versions, and updating docs) via a Python patch script plus a GitHub Actions workflow that commits the resulting candidate back to the PR branch.
Changes:
- Add
scripts/apply-v0523.pyto apply the v0.5.23 patch acrosssrc/index.js, tests, package metadata, changelog, and README. - Add
.github/workflows/apply-v0523-pr.ymlto run the patch, run checks/tests, and commit/push the generated changes to the PR branch.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| scripts/apply-v0523.py | Adds a one-shot patch application script that rewrites multiple project files to produce the v0.5.23 candidate changeset. |
| .github/workflows/apply-v0523-pr.yml | Adds a PR workflow intended to run the patch script, verify the result, and commit/push the updated candidate back to the branch. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
Summary
Researching current OpenCode 1.18.15 showed an important distinction: opencode-loop's scheduler uses the synchronous
session.prompt/session.shellAPIs but deliberately does not await their long-running promises. The existingfireSdk()helper logged a rejection and then the scheduler still treated the run as active until stale recovery.This PR:
dispatch_failed, increments failure count, honors--max-failures, and reschedules normally;A temporary PR workflow applies the focused large-file patch and requires
npm ci, syntax checks, the full test suite, Bun module loading, andnpm pack --dry-runbefore committing the candidate.