Skip to content

TUI crash: props.input.content?.split is not a function (BMAD resume) #4484

Closed

Description

@wheels3321

Description

Description:
OpenCode v1.0.78 crashes when I try to resume a BMAD project instead of starting a new one.

Steps

Windows 11

In my project folder, I run:

opencode bm "Resume the BMAD project"

The TUI opens for a second, then crashes.

Error shown
TypeError: props.input.content?.split is not a function

Expected

BMAD should continue the last session instead of crashing.

Notes

This only happens when resuming BMAD.

Starting a fresh BMAD session works.

Looks like the UI expects content to always be a string, but it is sometimes undefined.

✅ SIMPLE EXPLANATION: What is BMAD?

BMAD = AI project manager + workflow system.

It:

Plans your project (PLAN)

Writes your specification (SPEC)

Designs the files (DESIGN)

Creates step-by-step tasks (STORY)

Writes the actual code (DEV)

Think of BMAD as a smart assistant that tells the model what to do next.

You type one command, and BMAD controls the AI to build your project step-by-step.

✅ Can BMAD build hello.py or C++ hello.cpp?

✔ YES. BMAD can build simple programs like:

Python example (hello.py)
print("Hello, World!")

C++ example (hello.cpp)
#include
int main() {
std::cout << "Hello, World!";
}

BMAD will:

Plan the task

Design what file is needed

Write the code

Put it in the right folder

Then you can run it normally. https://github.com/sst/opencode/issues/new?template=bug-report.yml&title=opentui%3A+fatal%3A+props.input.content%3F.split+is+not+a+function.+%28In+%27props.input.content%3F.split%28%60%0A%60%29%27%2C+%27props.input.content%3F.split%27+is+undefined%29&description=%60%60%60%0ATypeError%3A+props.input.content%3F.split+is+not+a+function.+%28In+%27props.input.content%3F.split%28%60%0A%60%29%27%2C+%27props.input.content%3F.split%27+is+undefined%29%0A++++at+%3Canonymous%3E+%28src%2Fcli%2Fcmd%2Ftui%2Froutes%2Fsession%2Findex.tsx%3A1672%3A57%29%0A++++at+runComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A742%3A22%29%0A++++at+updateComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A724%3A3%29%0A++++at+readSignal+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A660%3A67%29%0A++++at+%3Canonymous%3E+%28src%2Fcli%2Fcmd%2Ftui%2Froutes%2Fsession%2Findex.tsx%3A1680%3A14%29%0A++++at+runComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A742%3A22%29%0A++++at+updateComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A724%3A3%29%0A++++at+createMemo+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A273%3A10%29%0A++++at+render+%28src%2Fcli%2Fcmd%2Ftui%2Froutes%2Fsession%2Findex.tsx%3A1678%3A21%29%0A++++at+untrack+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A475%3A12%29%0A++++at+runComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A742%3A22%29%0A++++at+updateComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A724%3A3%29%0A++++at+createMemo+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A273%3A10%29%0A++++at+untrack+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A475%3A12%29%0A++++at+runComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A742%3A22%29%0A++++at+updateComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A724%3A3%29%0A++++at+devComponent+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A593%3A3%29%0A++++at+%3Canonymous%3E+%28src%2Fcli%2Fcmd%2Ftui%2Froutes%2Fsession%2Findex.tsx%3A1453%3A24%29%0A++++at+runComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A742%3A22%29%0A++++at+updateComputation+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A724%3A3%29%0A++++at+runTop+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A833%3A7%29%0A++++at+runQueue+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A904%3A42%29%0A++++at+completeUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A860%3A84%29%0A++++at+runUpdates+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fdist%2Fdev.js%3A850%3A5%29%0A++++at+setStore+%28..%2F..%2Fnode_modules%2F.bun%2Fsolid-js%401.9.9%2Fnode_modules%2Fsolid-js%2Fstore%2Fdist%2Fdev.js%3A221%3A5%29%0A++++at+%3Canonymous%3E+%28src%2Fcli%2Fcmd%2Ftui%2Fcontext%2Fsync.tsx%3A131%3A15%29%0A++++at+emit+%28..%2F..%2Fnode_modules%2F.bun%2F%40solid-primitives%2Bevent-bus%401.1.2%2B820208fac86deffb%2Fnode_modules%2F%40solid-primitives%2Fevent-bus%2Fdist%2FeventBus.js%3A6%3A13%29%0A++++at+emit+%28..%2F..%2Fnode_modules%2F.bun%2F%40solid-primitives%2Bevent-bus%401.1.2%2B820208fac86deffb%2Fnode_modules%2F%40solid-primitives%2Fevent-bus%2Fdist%2Femitter.js%3A92%3A20%29%0A++++at+%3Canonymous%3E+%28src%2Fcli%2Fcmd%2Ftui%2Fcontext%2Fsdk.tsx%3A20%3A17%29%0A++++at+processTicksAndRejections+%28native%3A7%3A39%29...%0A%60%60%60&opencode-version=1.0.78

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 19, 2025
  2. rekram1-node commented on Nov 20, 2025

    @rekram1-node
    Contributor

    @wheels3321

    opencode bm "Resume the BMAD project"

    "bm" isn't a supported subcommand

  3. removed
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Nov 20, 2025
  4. self-assigned this
    on Nov 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions