Skip to content

fix(tui): disable crashing Visualizer tab - #787

Merged
sarahxsanders merged 2 commits into
mainfrom
drop-visualizer
Jul 2, 2026
Merged

fix(tui): disable crashing Visualizer tab#787
sarahxsanders merged 2 commits into
mainfrom
drop-visualizer

Conversation

@sarahxsanders

@sarahxsanders sarahxsanders commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

What

Removes the Visualizer tab from the run screen. It crashes on short terminals with:

A screen crashed: Cannot set properties of undefined (setting '12')

maybe why, this is what claude thinks, I need to verify :)

The Tumblers visual (the "Wiring Up Secrets" / EnvSetup phase) computes a pin's target row as cylinderBottom - 1 - (i % 3) - Math.floor(i / 2). When the visualizer panel is short (the tab clamps to a 5-6 row minimum), the 6th pin (i = 5) resolves to a negative row. That value is stored as a settled height and then written back via grid[negativeRow][pinX]grid[undefined], which throws. pinX for that pin is 12, hence the error text.

Rather than land a rushed geometry fix, this just makes the crash unreachable by dropping the tab entry. The animation code and the playground demo are left intact so the underlying bounds bug can be fixed properly in a follow-up.

Changes

  • Remove the visualizer entry from the tabs array in RunScreen.tsx (+ its now-unused import), with a comment pointing at the root cause.

Follow-up

Add a negative/out-of-bounds row guard in Tumblers.tsx (the sibling visuals already guard their grid writes), then re-enable the tab.

Test plan

  • pnpm build passes (incl. smoke test)
  • pnpm lint clean (0 errors)
  • Visualizer tab no longer appears; remaining tabs (Status, Event plan, Tail logs, HN) unaffected.

🤖 Generated with Claude Code

The Visualizer tab crashes on short terminals ("Cannot set properties
of undefined (setting '12')"). Tumblers computes a negative pin row when
the panel is short and writes to grid[undefined]. Remove the tab entry
from RunScreen so the crash is unreachable; the animation code and the
playground demo are left intact for a proper bounds-guard fix later.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Jul 2, 2026

Copy link
Copy Markdown

🧙 Wizard CI

Run the Wizard CI and test your changes against wizard-workbench example apps by replying with a GitHub comment using one of the following commands:

Test all apps:

  • /wizard-ci all

Test all apps in a directory:

  • /wizard-ci basic-integration
  • /wizard-ci error-tracking-upload-source-maps
  • /wizard-ci mcp-analytics
  • /wizard-ci misc
  • /wizard-ci revenue

Test an individual app:

  • /wizard-ci basic-integration/android
  • /wizard-ci basic-integration/angular
  • /wizard-ci basic-integration/astro
Show more apps
  • /wizard-ci basic-integration/django
  • /wizard-ci basic-integration/fastapi
  • /wizard-ci basic-integration/flask
  • /wizard-ci basic-integration/javascript-node
  • /wizard-ci basic-integration/javascript-web
  • /wizard-ci basic-integration/laravel
  • /wizard-ci basic-integration/next-js
  • /wizard-ci basic-integration/nuxt
  • /wizard-ci basic-integration/python
  • /wizard-ci basic-integration/rails
  • /wizard-ci basic-integration/react-native
  • /wizard-ci basic-integration/react-router
  • /wizard-ci basic-integration/sveltekit
  • /wizard-ci basic-integration/swift
  • /wizard-ci basic-integration/tanstack-router
  • /wizard-ci basic-integration/tanstack-start
  • /wizard-ci basic-integration/vue
  • /wizard-ci error-tracking-upload-source-maps/android
  • /wizard-ci error-tracking-upload-source-maps/cicd-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-nested-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-github-actions-single-stage-docker-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-gitlab-node-raw
  • /wizard-ci error-tracking-upload-source-maps/cicd-monorepo-pnpm-node-react
  • /wizard-ci error-tracking-upload-source-maps/cicd-monorepo-raw-node-react
  • /wizard-ci error-tracking-upload-source-maps/cicd-ssh-vps-node-raw
  • /wizard-ci error-tracking-upload-source-maps/flutter
  • /wizard-ci error-tracking-upload-source-maps/ios
  • /wizard-ci error-tracking-upload-source-maps/next
  • /wizard-ci error-tracking-upload-source-maps/next-no-posthog
  • /wizard-ci error-tracking-upload-source-maps/node-raw
  • /wizard-ci error-tracking-upload-source-maps/node-rollup
  • /wizard-ci error-tracking-upload-source-maps/node-rollup-typescript-plugin
  • /wizard-ci error-tracking-upload-source-maps/node-webpack
  • /wizard-ci error-tracking-upload-source-maps/nuxt-3-6
  • /wizard-ci error-tracking-upload-source-maps/nuxt-4-3
  • /wizard-ci error-tracking-upload-source-maps/react-native
  • /wizard-ci error-tracking-upload-source-maps/react-vite
  • /wizard-ci error-tracking-upload-source-maps/rust
  • /wizard-ci mcp-analytics/custom-dispatcher
  • /wizard-ci mcp-analytics/typescript-sdk
  • /wizard-ci misc/quack-quack
  • /wizard-ci revenue/stripe

Results will be posted here when complete.

@sarahxsanders
sarahxsanders requested a review from edwinyjlim July 2, 2026 01:42
@sarahxsanders
sarahxsanders merged commit 18bd38e into main Jul 2, 2026
17 checks passed
@sarahxsanders
sarahxsanders deleted the drop-visualizer branch July 2, 2026 03:45
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