Skip to content

Merge pull request #160 from keepsimpleio/fix/vibesuite-logged-in-crash fix(vibesuite): prevent logged-in crash when learnedSkills is not an array The progress-hydration effect iterated accountData.learnedSkills with for...of, guarded only by ?? [], which catches null/undefined but not other non-array shapes returned by /api/users/me. A non-iterable value threw "is not iterable" during render, blanking the whole page for logged-in users while guests (accountData null) were unaffected. Guard with Array.isArray so only real arrays are hydrated. Co-Authored-By: Claude Opus 4.7 <[email protected]>#161

Merged
MaryWylde merged 4 commits into
mainfrom
dev
Jul 13, 2026

Conversation

@MaryWylde

Copy link
Copy Markdown
Contributor

No description provided.

MaryWylde and others added 4 commits July 6, 2026 13:58
The weekly cron run against staging/prod was unwatched; the e2e suite
stays available for manual runs via yarn test:e2e:*.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
…array

The progress-hydration effect iterated accountData.learnedSkills with
for...of, guarded only by `?? []`, which catches null/undefined but not
other non-array shapes returned by /api/users/me. A non-iterable value
threw "is not iterable" during render, blanking the whole page for
logged-in users while guests (accountData null) were unaffected. Guard
with Array.isArray so only real arrays are hydrated.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
fix(vibesuite): prevent logged-in crash when learnedSkills is not an array

The progress-hydration effect iterated accountData.learnedSkills with
for...of, guarded only by `?? []`, which catches null/undefined but not
other non-array shapes returned by /api/users/me. A non-iterable value
threw "is not iterable" during render, blanking the whole page for
logged-in users while guests (accountData null) were unaffected. Guard
with Array.isArray so only real arrays are hydrated.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@MaryWylde MaryWylde merged commit 23d53da into main Jul 13, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant