Commit 87c5f8b
committed
fix(sdk): drop stale channel interaction callbacks instead of starting a turn
A channel interaction callback (for example a Slack button click) that resolves to a tool call with no matching pending tool part is a stale or duplicate callback. It was falling through to the inbound-message path, which acked, reacted, and ran a full agent turn. Such callbacks are now dropped: no turn runs and the run returns to its idle wait for the next message.1 parent bbfb26e commit 87c5f8b
1 file changed
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6925 | 6925 | | |
6926 | 6926 | | |
6927 | 6927 | | |
| 6928 | + | |
6928 | 6929 | | |
6929 | 6930 | | |
6930 | 6931 | | |
| |||
6962 | 6963 | | |
6963 | 6964 | | |
6964 | 6965 | | |
| 6966 | + | |
| 6967 | + | |
| 6968 | + | |
| 6969 | + | |
| 6970 | + | |
| 6971 | + | |
| 6972 | + | |
| 6973 | + | |
6965 | 6974 | | |
6966 | 6975 | | |
6967 | 6976 | | |
| |||
7244 | 7253 | | |
7245 | 7254 | | |
7246 | 7255 | | |
7247 | | - | |
| 7256 | + | |
7248 | 7257 | | |
7249 | 7258 | | |
7250 | 7259 | | |
| |||
7543 | 7552 | | |
7544 | 7553 | | |
7545 | 7554 | | |
7546 | | - | |
| 7555 | + | |
7547 | 7556 | | |
7548 | 7557 | | |
7549 | 7558 | | |
| |||
0 commit comments