Description
prompt-input.tsx uses local.model.current()!.provider.id with a non-null assertion inside a <Show> guard. SolidJS compiles this into a get id() getter that can fire during a reactive batch before <Show> disposes its children. When model.current() becomes undefined (e.g. provider refresh), the assertion crashes.
Error:
TypeError: can't access property "provider", r.model.current() is undefined
get id@session-*.js
Steps to reproduce
- Open a session
- Wait for a provider list refresh or model change
- Occasionally see the TypeError in the console
OpenCode version
latest (dev)
OS
Linux