Skip to content

Commit cf6192b

Browse files
committed
fix: re-throw non-429 errors to preserve onStartError logging
Address review feedback: the catch block was silently swallowing all errors, not just 429s. Non-rate-limit errors should propagate to the pipeline's onStartError handler for logging via logTypingFailure.
1 parent b71e51f commit cf6192b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

extensions/msteams/src/reply-dispatcher.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,8 @@ export function createMSTeamsReplyDispatcher(params: {
9292
if (errStr.includes("429") || errStr.includes("quota exceeded")) {
9393
typingSuppressedUntil = Date.now() + TYPING_BACKOFF_MS;
9494
params.log.debug?.(`msteams typing suppressed for ${TYPING_BACKOFF_MS}ms after 429`);
95+
} else {
96+
throw err;
9597
}
9698
}
9799
};

0 commit comments

Comments
 (0)