# Scan Fix

> Diagnose en fix scanner problemen. Gebruik bij "scanner", "scan", "OAuth", "tokens".

- Skill: `aibot88/scan-fix` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add aibot88/scan-fix`
- Raw SKILL.md: https://api.skillmd.com/api/skills/aibot88/scan-fix/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Integrations & APIs
- Author: aibot88 (https://skillmd.com/u/aibot88)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/aibot88/scan-fix

---


Diagnose en fix scanner problemen. Probleem: $ARGUMENTS

## Scanner bestanden
- `scanner-content.tsx`: hoofdcomponent (~5000 regels)
- `ScannerCard.tsx`: card component (React.memo)
- `ScannerEditPanel.tsx`: edit panel (React.memo)
- `useVirtualGrid.ts`: virtual scrolling
- `scanner-session.ts`: split storage v2
- `scan-proxy/route.ts`: AI scan API + OAuth
- `scanner-types.ts`: types + constants
- `scanner-image-utils.ts`: canvas/image helpers

## Veelvoorkomende scanner bugs
- OOM op mobiel: image semaphore (28 slots), freeCanvas() na elke operatie
- Ghost slots: activeCountRef uit sync → Math.max(0, ...) safety
- Retry storm: retryAfter timestamp met exponential backoff
- Session corrupt: ?clean URL param → wist alles
- OAuth 401: wis in-memory → verse blob → probeer → dan refresh

## Token check
```bash
curl -s "https://gameshopenter.com/api/admin/sync-tokens?key=gameshop-admin-2024"
```

Lees het relevante bestand, fix het probleem, build, commit, push.

