Cancel sendMessage
IllaSDK.sendMessage accepts an abort signal via the fourth argument.
Cancel sendMessageStreaming
sendMessageStreaming accepts signal in its streaming options.
Cancel provider-level requests
CoreApiProvider.sendMessage and CoreApiProvider.awaitTransaction also accept signal.
provider.awaitTransaction(params, { signal: ac.signal }).
Stop polling subscriptions
subscribeToToolStatus and AsyncToolChecker.subscribe return a subscription with unsubscribe().
Notes
sendToolResultandsendToolResultsdo not currently accept an abort signal.- Always wire cancellation to route changes and component unmounts.