Conversation
|
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 |
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
Venice Web and Manual modes now accept Clerk session cookies (
__sessionand__session_<non-empty suffix>). A Clerk value is sent asAuthorization: Bearer <value>with noCookieheader; the legacy__venice-auth.session-tokencookie (exact, then contiguous numbered chunks) keeps priority and is still sent as aCookieheader. Browser cookies are filtered after extraction to the exactvenice.aidomain (dots trimmed, case-insensitive), because the shared extractor also returns subdomain cookies such asclerk.venice.ai__client. Missing-credential and invalid/expired-session errors use upstream's recovery text verbatim and are classified as sign-in / expired-session states.Upstream reference
Sources/CodexBarCore/Providers/Venice/VeniceCookieHeader.swift,VeniceWebUsageFetcher.swift,VeniceCookieImporter.swift,VeniceUsageError.swift,Tests/CodexBarTests/VeniceClerkSessionTests.swift.Ported / Deferred
Ported: cookie-name family, priority (legacy over Clerk, unsuffixed over first suffixed, last repeated
__sessionwins), Bearer vs Cookie, exact-domain filter, error messages, and tests mirroring VeniceClerkSessionTests.Deferred: upstream retries the next imported browser profile on a session-auth failure; the Windows extractor returns merged cookies for one lookup, so there is no per-profile list to retry. No Venice docs page exists in this repo, so the note that Web mode does not refresh unattended (Clerk sessions last about 60 s) lives only in the error text. The Settings source description in
usageSourcePolicy.tsis unchanged (UI untouched).Validation
cargo +1.98.0 fmt --all: cleancargo +1.98.0 clippy --workspace --all-targets -- -D warnings: passcargo +1.98.0 test -p codexbar venice: 11 passed, 0 failedAffected areas
Rust backend, Venice provider only (
rust/src/providers/venice/mod.rs, +291/-39, 833 lines). No frontend, tray, settings, or dependency changes.UI proof
Not applicable