Conversation
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
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 |
…ypes as unusable sessions Merges port/micro-0.68.0-venice-clerk. A 200 session reply with a missing, null or non-string token maps to InvalidSession so fetch_web_sessions tries the next browser. The anonymous user type set now matches upstream: anonymous, anon, guest, unauthenticated, logged_out.
|
Fixes landed at 97cfbe9 Both review items confirmed and fixed. This branch now merges #626 (head d49c021), which carries the shared token-parsing fix.
The earlier PR body wording ("401/403 or empty token", "anonymous user type") is superseded by the above: fall-through now covers 401/403, a missing/blank/non-string token, and any upstream anonymous user type. Commands run: |
…all-through (stacked on #626)
|
Adversarial validation passed at ee23d2d Scope: Venice web session per-browser fall-through (#729, upstream 0.68.0, stacked on #626), validated as merged into release/v0.70.0 (merge ee23d2d = merge of 97cfbe9 into 8569cd3). Attacks (highest-risk semantics, from the merged tree):
No defects found. READY for the un-draft rule. |
Summary
Ports upstream CodexBar v0.68.0 to v0.70.0 Venice web-session behavior (GAP-09). In Web mode with browser cookies, every detected browser that holds a venice.ai session is tried in order instead of stopping at the first browser with any cookies.
VeniceWebFailureclassifies failures for the loop and maps back to the sameProviderErroras before.get_cookies_by_browser_for_domain(browser/cookies.rs) andbrowser_cookie_candidates_for_domain(providers/mod.rs) return per-browser cookies with domain metadata so the exact-hostvenice.aifilter still applies.get_cookies_for_domainis unchanged.venice/tests.rsto keepmod.rsunder 1000 lines.Stacked on #626 (Clerk session cookies). Merge #626 first; this PR targets its branch.
Not ported (scope): per-profile fall-through within one browser (the Windows extractor groups cookies per browser, not per profile).
Checks
cargo +1.98.0 fmt --all --check: cleancargo +1.98.0 clippy --workspace --all-targets -- -D warnings: passcargo test -p codexbar: 2171 passed, 0 failed, 1 ignored (venice: 16, 5 new fall-through tests)