Skip to content

Commit a972b56

Browse files
fix(azure-devops): TF400733 throttling fails diffs as rate-limited
Azure DevOps reports usage-limit throttling as TF400733 without an HTTP status in az's stderr, so it was classified as command-failed and getDiff treated the throttled file as unreadable, returning a header-only diff. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 463369e commit a972b56

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎packages/source-control-azure-devops/src/server/AzureDevOpsCli.ts‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -357,6 +357,8 @@ const classifyAzFailure = (stderr: string): VcsProcessExitFailureKind | null =>
357357
if (normalized.includes("az devops login") || /please run '?az login'?/.test(normalized)) {
358358
return "authentication";
359359
}
360+
// Azure DevOps reports usage-limit throttling as TF400733, often without an HTTP status.
361+
if (normalized.includes("tf400733")) return "rate-limited";
360362
return normalized.includes("pull request") &&
361363
(normalized.includes("not found") || normalized.includes("does not exist"))
362364
? "not-found"

0 commit comments

Comments
 (0)