Uh oh!
There was an error while loading. Please reload this page.
test(tutor): cross-link thinking budgets + parametrize + drop param shadowing - #82
Conversation
… drop shadowing Three follow-up polish items from PR #80's third review pass: 1. test_legacy_pro_matches_agent_constant — pins the legacy-path thinking_budget to routes.learn._PRO_THINKING_BUDGET so a future bump of the constant on the agent path can't silently desynchronize from the legacy literal in services/gemini_service.py:111. 2. test_non_pro_disables_thinking — parametrized over gemini-2.5-flash and gemini-2.5-flash-lite. Replaces the prior single test that packed two assertions into one body; per-input failure isolation. 3. fake_chats_create(**kwargs) — drops the inner `model` parameter that shadowed the outer `_capture_multiturn_thinking_budget` parameter. The real _client.chats.create dispatches by kwarg name, so the inner function still has to accept `model=` — `**kwargs` is the cleanest way to do that without the shadowing. 28 targeted tests pass. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Warning Rate limit exceeded
To keep reviews running without waiting, you can enable usage-based add-on for your organization. This allows additional reviews beyond the hourly cap. Account admins can enable it under billing. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Deploying with |
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs | frontend | b3de392 | Commit Preview URL Branch Preview URL | May 05 2026, 05:14 AM |
Uh oh!
There was an error while loading. Please reload this page.
Summary
Three small polish follow-ups from PR #80's third review pass. Test-only changes; no behavior change.
test_legacy_pro_matches_agent_constant— cross-links the legacy-path thinking budget assertion (`services/gemini_service.py:111`) to `routes.learn._PRO_THINKING_BUDGET`. Previously both pinned the literal `2048` independently; a future bump of the constant on the agent path would silently desynchronize from the legacy literal until someone noticed. This test catches that.Why a separate PR
Caught in the third review pass of PR #80 after CI was already green and the PR was ready to merge. Splitting into a small follow-up keeps the original PR focused and easy to revert if needed.
Test plan
🤖 Generated with Claude Code