Repository navigation
Commit a511019
fix: [#309] bound upgradeCurl fetch with 15s timeout
Address CodeRabbit review feedback on PR #825: the install-script
`fetch` in `Installation.upgradeCurl()` had no timeout, so a stalled
CDN/origin could hang `altimate upgrade` indefinitely. Wrap the
request with `AbortSignal.timeout(15_000)` so it fails fast.
- `packages/opencode/src/installation/index.ts` — add `signal:
AbortSignal.timeout(15_000)` to the fetch options; keep inside the
existing `altimate_change` block (now gates URL + timeout together).
- `packages/opencode/test/install/upgrade-method.test.ts` — new
regression assertion that the source still contains the bounded
timeout.
The other CodeRabbit comment (refactor `_telemetryCache` to
`Effect.cached`) is outside this PR's diff and unrelated to the
install URL fix — leaving it for a separate change.
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>1 parent 4614e6e commit a511019
2 files changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
100 | 107 | | |
101 | 108 | | |
102 | 109 | | |
| |||
0 commit comments