Repository navigation
fix(plugins): bound requests and release locks on cancellation - #304
Merged
Merged
Conversation
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.
plugins marketplace add --yescould stay silent during a stalled source download, and cancellation leftinstalled_plugins.json.lockowned by a dead app-server process.Bound launcher plugin requests to 60 seconds by default, configurable with
ZCODE_PLUGIN_REQUEST_TIMEOUT_MS, and report when marketplace addition starts. Give cancellable plugin mutations an operation ID and close their input on cancellation so the runtime receives client-disconnect cancellation even when its serial request handler cannot process the queued cancel message. This lets the runtime unwind downloads and release its lock, with bounded process termination as a fallback.Fixes #301.
Validation:
bun run buildbun run typecheckbun run test(294 tests passed)bun run checkgit diff --checkDietrichGebert/ponytailwith a 5-second timeout: the command returned a timeout error and left no lock directory or owner file.