Repository navigation
Conversation
|
Reviewed by Codex gpt-6-luna (xhigh); verified and validated by Claude Thermo-nuclear review findings:
|
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Advanced Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
Fixes pushed for the P1 and P2 findings (both in
|
Port review: Qoder regional cookie routing (#644, GAP-39)Reviewed the branch diff What I checked:
Result: no new findings. The port matches upstream semantics; the two previously found defects are fixed at the current head and the two remaining deferrals (optional timeout setting, Chrome-specific missing-credentials copy) are correctly documented as needing a localized settings/error contract. Files: mod.rs 720, routing.rs 714, routing/tests.rs 469 — all under the cap. No dependency, locale, bridge or frontend change. |
Summary
Qoder runs two independent sites (
qoder.com,qoder.com.cn) and a session cookie is only valid on the site that issued it. The old path merged cookies from all four hostnames into one header and sent that same header to both sites. It now works per candidate:qoder.com, thenqoder.com.cn), one candidate per browser, and each candidate is sent only to its own origin.Accept-Language,Origin,Referer: <origin>/account/usage,X-Requested-With: XMLHttpRequest,Bx-V: 2.5.35.AuthRequired; no candidate givesNoCookies.<browser> / <domain>(manual:manual / <domain>).Domain=attribute (not sent as a cookie), or by the URL/Hostof a pasted curl command or raw HTTP request. Invalid or conflicting hosts, shell synthesis, config files, and header injection are rejected before any request. A manual candidate is terminal on any result.Upstream reference
b94c5fdc).Resources/Plugins/qoder.js,Sources/CodexBarCore/Providers/Qoder/QoderCookieRouting.swift(site(forManualCookieHeader:)).QoderProviderBehaviorTests.swift(QoderManualCookieRoutingTests, all 3 routing tests, verbatim cases) and the terminal-error semantics fromCookieProviderCutoverTests.swift.Ported / Deferred
Ported: everything above. Routing lives in
rust/src/providers/qoder/routing.rs(tests inrouting/tests.rs);mod.rskeeps fetch and parse.Deferred:
REQUEST_TIMEOUTsetting: Win-CodexBar has no per-provider free-form settings surface, so the 15 s default is kept as a constant. Needs a settings/UI decision.ProviderError::NoCookiesis kept (shared provider-state code keys on it) instead of upstream's Chrome-specific message.Validation
Run from the worktree with Rust 1.98.0 on E-cores, target slot-1:
cargo +1.98.0 fmt --all: cleancargo +1.98.0 clippy -p codexbar --all-targets -- -D warnings: passcargo +1.98.0 test -p codexbar qoder: 18 passed, 0 failedAffected areas
UI proof
Not applicable.