Repository navigation
fix(scraper): bound optional discovery to one deadline - #3
Merged
Merged
Conversation
Share a three-second budget between HEAD and GET, forward download headers, and retain the original source for optional network failures. Propagate permission and cancellation failures, and keep source URLs out of diagnostics.
9 tasks done
agalwood
added a commit
that referenced
this pull request
Sep 23, 2026
The hook ran in the pre-resolve band, which fails its chain closed. With `*://*/*` host permissions, any failure or slow page aborted the creation of every HTTP task (agalwood/Motrix#2189). Looking up a direct link on an HTML page is an optional convenience and must never veto a download. Run beforeCreate in the enrich band. There a failure or overrun drops the plugin's contribution and Motrix downloads the URL the user gave. pre-resolve is also reserved for builtin origin, and Motrix is retiring the plugin from its bundled set, so the plugin could not load there without this change. Bump to 1.1.0, which also ships the single three-second discovery deadline merged in #3. Document the move in the READMEs.
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.
Optional scraper discovery could spend separate five- and ten-second budgets on HEAD and GET, delaying task creation. This change shares one three-second deadline, forwards the task's request headers, and keeps the original URL when optional network discovery fails.
Validation:
pnpm test(60 passed),pnpm run lint,pnpm run typecheck, andpnpm run buildall passed.Related: agalwood/Motrix#2151. Companion host-side URL admission and invocation cancellation PR: agalwood/Motrix#2154. This PR does not publish a signed plugin release or update the application's builtins lock.