Skip to content

fix(ui): handle unknown bead statuses gracefully to prevent crashes (Issue 49)#57

Closed
mattwhetton wants to merge 3 commits into
AvivK5498:mainfrom
mattwhetton:ISSUE49
Closed

fix(ui): handle unknown bead statuses gracefully to prevent crashes (Issue 49)#57
mattwhetton wants to merge 3 commits into
AvivK5498:mainfrom
mattwhetton:ISSUE49

Conversation

@mattwhetton

Copy link
Copy Markdown

Summary

  • Fixed TypeError crash when beads have statuses not defined in the UI (e.g., "tombstone" for soft-deleted items)
  • Added guards in both beads-parser.ts and kanban-board.tsx to skip beads with unknown statuses instead of crashing

Problem

The client crashed with TypeError: Cannot read properties of undefined (reading 'push') when the backend returned beads with a status value (like "tombstone") that wasn't one of the 4 defined column statuses (open, in_progress, inreview, closed).

Solution

Added defensive checks before pushing beads to grouped status arrays. Beads with unknown statuses are now silently skipped rather than causin a crash.

mattwhetton and others added 3 commits January 27, 2026 18:45
…tatus

Skip beads with statuses not in the kanban board columns (e.g., tombstone
for soft-deleted items) instead of crashing with undefined.push() error.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Add a check before pushing beads to grouped status arrays to prevent
TypeError when encountering unknown statuses like "tombstone" for
soft-deleted items.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@AvivK5498

Copy link
Copy Markdown
Owner

Thanks @mattwhetton
I fixed it in #58
I added semantic mapping for statuses so they display in their respective column with a badge.

Closing this.

@AvivK5498 AvivK5498 closed this Jan 27, 2026
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.

2 participants