Dashboard › cli › wizard-runner.ts: large shared context …
019e6874-7d63-710a-84ad-c86ef679744e| Project | Hits | Last recalled |
|---|---|---|
| opencode-lore | 1 | 1d ago |
In wizard-runner.ts, large shared context (dirListing, fileCache, existingSentry) travels via initialState (not inputData) to avoid D1 per-row size overflow (see getsentry/cli-init-api#98). MAX_RESUME_RETRIES = 3, RETRY_BACKOFF_MS = [2000, 4000, 8000]. resumeWithRetry() handles stale-step recovery via tryRecoverCurrentRunState() when isStepAlreadyAdvancedError() detects 'was not suspended' 500.