feat: multi-provider sessions — /provider switch, /new --provider, backend tags#15
Conversation
…ckend tags Pairs with the daemon's pi backend (#132) and mid-session switching (#133): - /provider <id> switches the focused session's backend; sent via request_ok so daemon rejections (mid-turn switch, unknown provider) surface with their real message in the error line - /new grows a --provider <id> flag (positional name/workdir unchanged, flag can lead or trail so workdirs with spaces keep working) - transcript header tags sessions on non-default backends - protocol: SessionCreate.providerId, session.set_provider verb, SessionInfo.providerId, AuthOkMsg.providers (default first); wire rename-audit + roundtrip coverage extended; parse tests for the new commands
|
Warning Review limit reached
Next review available in: 41 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (15)
✨ 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #15 +/- ##
==========================================
+ Coverage 67.02% 67.96% +0.93%
==========================================
Files 32 32
Lines 7632 7834 +202
==========================================
+ Hits 5115 5324 +209
+ Misses 2517 2510 -7
Flags with carried forward coverage won't be shown. Click here to find out more.
|
- Extract pure session.create / session.set_provider frame builders from the async send paths and unit-test the wire shapes (providerId present/ absent, camelCase fields) - Guard-path tests: /provider without a focused session records a clear error; /provider and /new --provider route cleanly with no connection - session_title test: non-default backends tagged, claude untagged - connection kind-map covers session.set_provider
What
The Rust TUI's half of multi-provider sessions (daemon side: codeoid #132 pi backend, #133 mid-session switching):
/provider <id>switches the focused session's backend mid-conversation. Sent as a correlated request so the daemon's fail-closed rejections (unknown provider, mid-turn switch) land in the error line with their real message; the switch announcement itself arrives as a normal info row./new <name> [workdir] --provider <id>creates a session on a specific backend. The flag can lead or trail the positionals, so workdirs with spaces keep working; ids are lowercased; a dangling--provideris a parse error.SessionCreate.providerId, thesession.set_providerverb,SessionInfo.providerId, andAuthOkMsg.providers(default first). All additive with serde defaults, so older daemons keep working.Tests
Parse coverage for
/provider(lowercasing, missing-id error) and/new --provider(flag position independence, dangling flag, no-flag default); wire rename-audit samples for the new verb + create field; roundtrip tests forauth.ok.providersandsession.set_providercamelCase serialization. 273 workspace tests green;cargo fmt --checkclean.🤖 Generated with Claude Code