opencode icon indicating copy to clipboard operation
opencode copied to clipboard

TUI crash: [Reconciler] Unknown component type: spinner

Open harshav167 opened this issue 4 days ago • 2 comments

Summary

TUI crashes with "[Reconciler] Unknown component type: spinner" during prompt render.

Steps to reproduce

  1. Build OpenCode locally from branch feature/session-directory-filtering (HEAD 4bbb0df, based on dev bded900ef).
  2. Run the built binary (oc-custom / opencode).
  3. TUI crashes on startup.

Actual

Error: [Reconciler] Unknown component type: spinner
    at createElement (../../node_modules/.bun/@[email protected]+897ebc1644d3edd0/node_modules/@opentui/solid/index.js:521:17)
    at children (src/cli/cmd/tui/component/prompt/index.tsx:939:26)
    at <anonymous> (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:1531:21)
    at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
    at readSignal (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:660:67)
    at <anonymous> (../../node_modules/.bun/@[email protected]+897ebc1644d3edd0/node_modules/@opentui/solid/index.js:148:62)
    at runComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:742:22)
    at updateComputation (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:724:3)
    at createRenderEffect (../../node_modules/.bun/[email protected]/node_modules/solid-js/dist/dev.js:240:75)

Expected

TUI should render without crashing.

Environment

  • macOS 26.3 (25D5087f), arm64
  • Bun 1.3.5
  • package version: 1.1.8
  • @opentui/solid 0.1.70 in bun.lock (stack trace shows @opentui/[email protected] path)
  • @opentui/core 0.1.70
  • opentui-spinner 0.0.6
  • Branch: feature/session-directory-filtering
  • HEAD: 4bbb0df835a83d195314694f4fc1cb7ea0d271f0
  • Base dev: bded900ef7de536faaa791aeffbcbbf727a98432

harshav167 avatar Jan 09 '26 03:01 harshav167

This issue might be a duplicate of existing issues. Please check:

  • #7061: opentui: fatal: Anchor does not exist - Another @opentui/solid reconciler error with very similar stack trace pattern (reconcileArrays → insertExpression → createRenderEffect)
  • #4606: TUI Crashes - TUI crash after component rendering with similar reconciliation failure
  • #3749: TUI crashes during prompt edit - Related crash in prompt/index.tsx (the same file mentioned in your stack trace)
  • #7392: opentui: fatal: answer.join is not a function - Another component type error during rendering
  • #1220: Opencode crashes the entire terminal session right after open - TUI startup crash issue

The root cause appears to be related to @opentui/solid component registration or version incompatibility. Note that your stack trace shows @opentui/[email protected] but bun.lock lists 0.1.70 - this version mismatch may be significant.

Feel free to ignore if your specific case differs from these issues.

github-actions[bot] avatar Jan 09 '26 03:01 github-actions[bot]

Are you linking opentui locally for dev?

kommander avatar Jan 09 '26 10:01 kommander