Commit e75a7ca
committed
fix(sdk): detach the per-turn message listener when dropping a stale channel interaction
A duplicate or late channel interaction (e.g. a repeated Slack approval
click) whose toolCallId matches no pending tool call was dropped without
detaching the per-turn session.in listener. That listener marks inbound
records CONSUMED, so after the drop the next user message was swallowed
into pendingWireMessages (already drained before the wait) and the turn
idled until the timeout, ending the run and losing the message.
Mirror the action path: detach msgSub and decrement turn (a dropped
interaction is not a turn) before falling through to the wait.1 parent 8dd1698 commit e75a7ca
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7594 | 7594 | | |
7595 | 7595 | | |
7596 | 7596 | | |
| 7597 | + | |
| 7598 | + | |
| 7599 | + | |
| 7600 | + | |
| 7601 | + | |
7597 | 7602 | | |
7598 | 7603 | | |
7599 | 7604 | | |
| |||
0 commit comments