Repository navigation
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: trueThanks 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 |
CUA proof (attempt 1)Result: FAIL on assertion 3 (tray icon lanes). Team-plan 91% reaches the icon.
Suggested cause: in Screenshots (local, not committed), all under
|
|
Reviewed by Claude (fix for the CUA attempt 1 failure on ba6c3df; Codex not used per operator request to use fewer agents) Fixes for the three CUA findings:
Tests: new |
UI proof (browser-use)Result: PASS on build At the maintainer's direction, this proof drove the app's WebView2 over CDP with the browser-use CLI (0.1.13) instead of CUA. It used no keyboard, mouse or focus, and the proof windows were kept on the second display. Setup
Results
ScreenshotsAll paths are under
Not blocking
|
Port re-review: Doubao Agent Plan tray icon fallback (#637, GAP row 8b of 0.66.0)Re-checked the branch at the current head What I verified at the current head:
Result: no new findings. The port matches the upstream Agent Plan icon-fallback semantics; the regression found in the first proof is fixed and proven at the current head. Tray metrics file stays under the cap; no dependency, locale or bridge-shape change beyond the existing |
UI proof (browser-use)Combined build of
Every surface also passed the privacy check (no email-like text, account e-mail nodes or profile paths in the DOM) and theme Validation at |
…on fallback Conflict in tray_bridge.rs: the release moved the tray status helpers to tray_presentation.rs, so the block stays removed and the Agent Plan headline fallback goes into tray_presentation::headline_window (the PR test now calls it there). Conflict in MenuCard.tsx: the release shows every quota row in compact Overview (upstream 0.62.0 steipete#2616), so the PR's two-row slot rule for the informational placeholder has nothing to protect. The release filter is kept and the PR test now checks that both Agent Plan lanes show next to the placeholder. usage_metric.rs: both test sets kept. Release-only NamedRateWindowSnapshot test literals (usage_metric, tray_presentation_tests) get icon_fallback: None.
Summary
An account that has only Doubao Agent Plan lanes (no Coding Plan session/weekly) drew a 0% tray icon:
coding_plan_snapshotfilled the missing session with a non-informationalRateWindow::new(0.0)and the shell never looked at thedoubao-agent-*extras.RateWindow::no_active_session()), so no 0% is invented.doubao-agent-session-> primary,doubao-agent-weekly-> secondary (new in-memoryNamedRateWindow::icon_fallback: Option<IconLane>, same pattern as the existingfallback_lane). Team and monthly buckets carry no hint.usage_metric.rsresolves the hints generically (with_icon_fallbacks): a lane is filled only when the primary is informational / the secondary is missing, with the extra's own percent, window minutes and reset. There is no provider-name branch in shared code. Lanes absent on both sides stay absent.iconFallbackis exposed on the bridge DTO andtypes/bridge.ts(serialised only when set).Upstream reference
cca269a8/ fix(menu): resolve provider balances and Doubao icon usage steipete/CodexBar#3925.Sources/CodexBarCore/Providers/Doubao/DoubaoProviderDescriptor.swift(iconWindowResolver: primary = snapshot.primary ?? extradoubao-agent-session, secondary = snapshot.secondary ?? extradoubao-agent-weekly),Tests/CodexBarTests/DoubaoProviderTests.swift(icon windows fall back to agent plan without changing snapshot identity,icon windows preserve missing lanes).Ported / Deferred
Ported: both upstream test cases (4 coding-lane combinations; levels session, agent_5h, agent_weekly, agent_monthly, agent_team_5h) as Rust tests in
rust/src/providers/doubao/icon_lane_tests.rsandapps/desktop-tauri/src-tauri/src/usage_metric.rs.Notes:
Validation
cargo +1.98.0 fmt --all: cleancargo +1.98.0 clippy --workspace --all-targets -- -D warnings: passcargo +1.98.0 test -p codexbar doubao: 13 passed (3 new)cargo +1.98.0 test -p codexbar-desktop-tauri usage_metric: 22 passed (4 new)cargo +1.98.0 test -p codexbar(full): 2162 passed, 1 failed:claude_swap::runner::tests::timeout_does_not_hang_on_a_pipe_holding_descendantis load-flaky and passes alone (1 passed)cargo +1.98.0 test -p codexbar-desktop-tauri(full): 465 passed, 1 failed:commands::tests::bootstrap_payload_exposes_every_provider_variant(79 vs 78). It fails identically on the unmodified baseorigin/port/upstream-0.66.0, so it is not caused by this PR.pnpm --dir apps/desktop-tauri run build: pass;run lint: only pre-existing warnings in untouched filesAffected areas
UI proof
Pending: coordinator will capture CUA proof on a fresh build.
CODEXBAR_SEED_USAGE_JSONseeds Codex only, so a Doubao tray proof needs a real Agent-Plan-only account or a unit-level proof; unit-level coverage is in the tests above.