fix(Comix): solve Cloudflare/WebView UA with app level update#216
Merged
niclimcy merged 1 commit intoJun 13, 2026
Merged
Conversation
6edf425 to
10811fc
Compare
…lpha.91) Replace the WebView User-Agent workaround (rejected in inkdex#213) with the first-class alpha.91 APIs: set source.userAgent so the WebView runs under the app's default UA that cf_clearance is bound to, and adopt cloudflareBypassCompleted in place of the deprecated saveCloudflareBypassCookies. Bump @paperback/toolchain and @paperback/types to 1.0.0-alpha.91. Also fix the chapter page-size rewrite: the "$1100" replacement string is mis-parsed (the $1 backreference swallows the trailing digits), turning limit=20 into page=1100 and returning zero chapters; use a function replacement. Assisted-by: Claude Code:claude-opus-4-8
10811fc to
08e1261
Compare
niclimcy
approved these changes
Jun 13, 2026
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
Supersedes #213. Solves the Comix Cloudflare/WebView User-Agent mismatch at the app level using the new
1.0.0-alpha.91toolchain, replacing the in-extension UA workaround that was rejected on #213. The chapter WebView now runs under the app's default UA viasource.userAgentand the extension adoptscloudflareBypassCompletedin place of the deprecatedsaveCloudflareBypassCookies.source.userAgentso the WebView's own loads + same-origin API XHRs carry the UAcf_clearancesaveCloudflareBypassCookies→cloudflareBypassCompleted.@paperback/toolchain+@paperback/typesto1.0.0-alpha.91(the existing^…-alpha.89range already permitted it; lockfile refreshed). The other 10 extensions still compile against the deprecated-not-removed API."$1100"rewrite replacement was mis-parsed (the$1backreference swallowed the trailing digits), turninglimit=20intopage=1100and returning zero chapters — now a function replacement.Checklist
Making changes
For updates to existing extensions
versionvalue inpbconfig.tsfor each modified extension.For new extensions
npx paperback-cli test --generate EXTENSION_NAME.Testing changes
npm run conformancepasses.npm test -- EXTENSION_NAMEpasses.Committing changes
type(Scope): summary, e.g.fix(EXTENSION_NAME): ...).AI assistance
Pick one:
Assisted-by: Claude Code:claude-opus-4-8trailer to each AI-assisted commit.