fix(types): resolve context-relay payload resolution and typing issues

- Fix `handoffProviders` and `nextBody` unknown property TS errors in contextHandoff
- Correct fallback payload parsing from responses `input` array in combo service
This commit is contained in:
diegosouzapw
2026-04-08 16:43:46 -03:00
parent f5cd841056
commit 02128618b0
8 changed files with 304 additions and 15 deletions

View File

@@ -509,8 +509,7 @@ async function handleSingleModelChat(
comboStrategy === "context-relay" &&
comboName &&
runtimeOptions.sessionId &&
body?._omnirouteSkipContextRelay !== true &&
!excludeConnectionId
body?._omnirouteSkipContextRelay !== true
) {
const handoff = getHandoff(runtimeOptions.sessionId, comboName);
if (handoff && handoff.fromAccount !== credentials.connectionId) {