fix(claude): steer interrupts the running turn instead of queueing behind it #12541
Closednekohasekai(GitHub profile, opens in a new tab)wants to merge 2 commits into
main fromrefs/pull/12541/headopened View on GitHubgithub-actions[bot](GitHub profile, opens in a new tab) added labelsvouch:unvouched
github-actions[bot](GitHub profile, opens in a new tab) added labelssize:L
- apps/server/src/provider/Layers/ProviderService.ts line 1729OutdatedResolvedby nekohasekai(GitHub profile, opens in a new tab)@@ -1719,3 +1719,11 @@17191719 // rather than issuing a new one: sessions that go a long time between17201720 // browser tool calls used to lose the toolkit outright.17211721 yield* McpSessionRegistry.touchActiveMcpThread(input.threadId);1722+ // For adapters that do not implement it inside sendTurn. Best-effort:1723+ // a refused interrupt still delivers on the provider's own boundary.1724+ if (1725+ input.interruptActiveTurn === true &&1726+ !routed.adapter.capabilities.nativeInterruptAndSend1727+ ) {1728+ yield* routed.adapter.interruptTurn(input.threadId).pipe(1729+ Effect.catchCause((cause) =>
juliusmarminge closed this
Sign in to join this conversation.

macroscopeapp[bot](GitHub profile, opens in a new tab) reviewed