Dashboardcliwizard-runner.ts: large shared context …

wizard-runner.ts: large shared context via initialState, not inputData — D1 row size limit

Category: pattern
Confidence: 1.00
ID: 019e6874-7d63-710a-84ad-c86ef679744e
Project ID: c760f4f9-42b0-4ce0-b36d-6b8c38d770b2
Cross-project: No
Recalled in other projects: 1
Source session: (none)
Created: 2026-06-23 09:27:14
Updated: 2026-06-23 09:27:14

Cross-Project Recalls

ProjectHitsLast recalled
opencode-lore 1 1d ago

Content

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.

Move to: