Repository navigation
fix(server): allow handoff after a provider session detaches - #13882
Conversation
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a small, well-tested bug fix that exposes an existing provider-handoff path after a session detaches, while preserving active-run and missing-native-reference safeguards. It does not alter schemas, defaults, infrastructure, or static-analysis settings. You can add or adjust custom eligibility rules. Learn more. |
Thread transfer impact✅ Thread transfer remains within every enforced ceiling.
Baseline: unavailable · PR result: Scenario and decoded snapshot size10 historical turns, 5 command tools per turn, 878.9 KiB retained MCP result per historical turn, and a 1.05 MiB retained result in the measured turn.
Updated in place by a trusted workflow. PR artifacts are strictly validated and never executed. |
What Changed
Allow a completed thread to switch providers when its session has detached but its active provider thread still has a native reference.
Why
Detached sessions no longer appear in the thread projection. That hid the provider thread needed to hand off on the next turn. Check the active provider thread's native reference when deciding whether handoff is supported.
Checklist