We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8ac91a9 commit df88d62Copy full SHA for df88d62
cli/src/hooks/use-send-message.ts
@@ -2004,6 +2004,20 @@ export const useSendMessage = ({
2004
const shouldRetryError =
2005
timedOutDueToSdk || !isConnectedRef.current || isRetryableError(error)
2006
2007
+ // Debug: Log what's triggering retry
2008
+ if (shouldRetryError) {
2009
+ logger.warn(
2010
+ {
2011
+ userMessageId,
2012
+ errorMessage,
2013
+ timedOutDueToSdk,
2014
+ isConnected: isConnectedRef.current,
2015
+ isRetryableError: isRetryableError(error),
2016
+ },
2017
+ '[RETRY-DEBUG] Error detected as retryable - will retry',
2018
+ )
2019
+ }
2020
+
2021
// Only mark as interrupted and show error if NOT retrying
2022
// (retryable errors will be retried silently)
2023
if (!shouldRetryError) {
0 commit comments