mirror of https://github.com/garrytan/gstack.git
`generateVariant` in `design/src/variants.ts` arms its abort timer at 240_000 ms (`setTimeout(() => controller.abort(), 240_000)` at line 61), but the AbortError branch at line 128 returns `"Timeout (120s)"` — half the actual bound. The mismatch is purely a stale string literal, but it's the only signal a caller gets when the API stalls. A user staring at `Timeout (120s)` has no way to know whether to bump the orchestrator timeout, retry, or drop the call — the surfaced number is off by 2x from the timer that fired. Surface the real bound: "Timeout (240s)". Adds a regression test that stubs fetch to a permanently-pending promise, fast-forwards only the 240_000 ms abort timer (leaves the leading exponential retry delays on their real values), and asserts the surfaced error string matches the configured bound. |
||
|---|---|---|
| .. | ||
| src | ||
| test | ||
| prototype.ts | ||