Commit 473bbbf
authored
🤖 fix: retry bundle creation on transient SSH failures (#1254)
## Problem
The "pack-objects died" error occurs intermittently during `git bundle
create` when SSH connections drop during transfer.
## Solution
Wrap the entire `syncProjectToRemote` call with retry logic at the
`initWorkspace` level rather than retrying just the bundle step.
**Benefits:**
- Single retry point (no extra helper method)
- Catches failures in any sync step, not just bundle creation
- Cleans up partial remote state before retry
- Simpler and more maintainable
Retries up to 3 times for transient errors:
- `pack-objects died`
- `Connection reset`
- `Connection closed`
- `Broken pipe`
Uses linear backoff (1s, 2s) between attempts.
---
_Generated with `mux` • Model: `anthropic:claude-opus-4-5` • Thinking:
`high`_1 parent cb30e65 commit 473bbbf
1 file changed
+41
-12
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
640 | 640 | | |
641 | 641 | | |
642 | 642 | | |
643 | | - | |
644 | 643 | | |
645 | 644 | | |
646 | 645 | | |
| |||
933 | 932 | | |
934 | 933 | | |
935 | 934 | | |
936 | | - | |
| 935 | + | |
| 936 | + | |
937 | 937 | | |
938 | | - | |
939 | | - | |
940 | | - | |
941 | | - | |
942 | | - | |
943 | | - | |
944 | | - | |
945 | | - | |
946 | | - | |
947 | | - | |
| 938 | + | |
| 939 | + | |
| 940 | + | |
| 941 | + | |
| 942 | + | |
| 943 | + | |
| 944 | + | |
| 945 | + | |
| 946 | + | |
| 947 | + | |
| 948 | + | |
| 949 | + | |
| 950 | + | |
| 951 | + | |
| 952 | + | |
| 953 | + | |
| 954 | + | |
| 955 | + | |
| 956 | + | |
| 957 | + | |
| 958 | + | |
| 959 | + | |
| 960 | + | |
| 961 | + | |
| 962 | + | |
| 963 | + | |
| 964 | + | |
| 965 | + | |
| 966 | + | |
| 967 | + | |
| 968 | + | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
| 976 | + | |
948 | 977 | | |
949 | 978 | | |
950 | 979 | | |
| |||
0 commit comments