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 |
|
Thermo-nuclear review Reviewed by Codex gpt-6-luna (xhigh); verified and validated by Claude
|
|
Thermo-nuclear review: fixes landed at bd00551 Fixed: the P2 fail-closed policy for Zed browser mode, and the P3 localization of the Zed source picker (plus a missing Left: the P3 snapshot parse change was reverted. serde derived structs also accept JSON arrays, so direct deserialization would stop rejecting non-object roots, which the existing Commands run (slot-7, E-cores, Rust 1.98.0): |
Zed fails closed on empty manual cookie in browser mode; localize Zed usage-source picker.
CUA proofBuild commit: Proof-only patches (uncommitted, reverted, not pushed)
Results
Notes (not failures): the picker's first two radio labels render lowercase ( Screenshots (local, not committed)
Commands
|
…lling' into port/micro-0.65.0-zed-browser-billing
Adversarial validation (lane-A) at 4eedc06Review verdict: the branch matches the 0.65.0 audit PR 7 spec: opt-in browser billing ( Merge outcome: the branch absorbed the current #619 head (
Checks at 4eedc06 (CARGO_TARGET_DIR=W:\cargo-target\lane-a, jobs=4, RUST_TEST_THREADS=4):
Fast-forward push chain |
Summary
Ports upstream 0.65.0 Zed browser billing as an opt-in lane next to the existing editor-credential lane.
oauth) sources keep using the editor credential againstcloud.zed.dev/client/users/me. Behavior is unchanged for existing users, and the browser session is never consulted.web) source readscloud.zed.dev/frontend/billing/usagewith azed.devcookie (pasted Cookie header or browser import). It never sends the editor credential and never falls back to it.unlimited,null, integer or{"limited": n}limits).Provider::web_is_opt_in()hook. The shell would otherwise turn Auto into Web as soon asProviderId::Zedgained a cookie domain (zed.dev) and the default cookie source (manual) had a stored cookie.Upstream reference
Upstream steipete/CodexBar tag v0.65.0 (read-only, tag-pinned):
zed.js,ZedPluginTests.swift,ZedStatusProbeTests.swift,docs/zed.md. Endpoint evidence: upstream steipete#3172.Ported / Deferred
Ported: strict validation (safe integers, non-negative cents, non-blank text, missing limit key fails, root must be an object), spend/limit/remaining rows,
CostSnapshotwith cap, plan label, editor cycle and overdue rows, per-lane status classification, bounded response read.Deferred:
Cliand returns a friendly error with no request and no cookie import.Validation
cargo fmt --all: cleancargo clippy --workspace --all-targets -- -D warnings: cleancargo test -p codexbar: 2272 passed, 0 failed (56 Zed-filtered, all new Zed tests included)cargo test -p codexbar-desktop-tauri: 491 passed, 0 failed (includes two newbuild_fetch_contextZed tests)pnpm exec vitest run src/surfaces/settings/providers: 86 passedpnpm run lint: only pre-existing warnings;pnpm run build: passedAffected areas
rust/src/providers/zed/(mod, snapshot, tests),rust/src/core/provider.rs(web_is_opt_in, Zed cookie domain),apps/desktop-tauri/src-tauri/src/commands/providers.rs(build_fetch_contextopt-in arm), settings usage-source policy for Zed.UI proof
Pending: coordinator will capture CUA proof on a fresh build. Not run by this change author.