Commit 6f9c10d
SDK-365 Fix infinite retry loop in ResolverCommand when error is not a file conflict
ResolverCommand.execute() and a_execute() previously retried with the
resolver for ANY CopyError/MoveError/RenameError. This caused an infinite
loop when the portal returned PermissionDenied (or any non-conflict error)
because the retry would immediately fail again with the same error.
Now only retries when e.__cause__ is FileConflictError, which is the only
case where a resolver can meaningfully resolve the issue.
Co-authored-by: Cursor <cursoragent@cursor.com>1 parent 932ed19 commit 6f9c10d
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1097 | 1097 | | |
1098 | 1098 | | |
1099 | 1099 | | |
1100 | | - | |
| 1100 | + | |
1101 | 1101 | | |
1102 | 1102 | | |
1103 | 1103 | | |
1104 | 1104 | | |
1105 | 1105 | | |
1106 | 1106 | | |
1107 | 1107 | | |
1108 | | - | |
| 1108 | + | |
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
| |||
0 commit comments