Repository navigation
fix(server): preserve context occupancy across model handoffs - #13871
Conversation
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. |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — This is a focused server bug fix that preserves measured context occupancy across existing model handoffs while resetting only stale capacity metadata, with new-thread behavior unchanged. The production change is localized and supported by unit and integration coverage for model switches, retries, telemetry, and native replacement. You can add or adjust custom eligibility rules. Learn more. |
Summary
Test plan
vp test run src/orchestration-v2/ContextHandoffBudget.test.tsvp test run src/orchestration-v2/testkit/ProviderSwitch.integration.test.tsMade with Cursor