fix: consolidate provider behaviour + fix multi-turn provider corruption - #37
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📥 CommitsReviewing files that changed from the base of the PR and between 25ab8e956e365b9a04873db224175a8c4163ade9 and 78b8644. 📒 Files selected for processing (7)
💤 Files with no reviewable changes (1)
✅ Files skipped from review due to trivial changes (2)
🚧 Files skipped from review as they are similar to previous changes (4)
📝 WalkthroughWalkthroughDeleted the Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
… provider corruption Two fixes: 1. Remove duplicate Harness.ProviderSession behaviour — all session modules now use only Harness.Providers.ProviderBehaviour, eliminating conflicting callback warnings. Added missing @impl annotations and stop/1 to MockSession. 2. Fix toLegacyProvider in web store to recognize "cursor" and "opencode" — previously both were silently mapped to "codex", corrupting the provider on second turn and causing "cannot switch provider" errors. Also hardcodes experimentalApi: true in Codex initialize (was conditional on providerOptions), fixing collaborationMode rejection on turn/start. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
25ab8e9 to
78b8644
Compare
Summary
Harness.ProviderSessionbehaviour — all session modules now use onlyHarness.Providers.ProviderBehaviour, eliminating ~40 conflicting callback warnings at compile time. Added missing@implannotations andstop/1toMockSession.toLegacyProviderin web store to recognize"cursor"and"opencode"— previously both were silently mapped to"codex", corrupting the session provider on second turn and causing"cannot switch provider"errors for OpenCode and Cursor sessions.experimentalApi: truein Codex initialize (was conditional onproviderOptions), fixingcollaborationModerejection onturn/start.Test plan
mix compile --warnings-as-errorspasses with zero warningscollaborationModeerror🤖 Generated with Claude Code
Summary by CodeRabbit