fix(chat): avoid waiting for ready before processing events

This commit is contained in:
ayn2op 2026-04-20 22:25:47 -04:00
parent bf77f67c5b
commit cfd7452f8d

View file

@ -96,6 +96,7 @@ func NewModel(app *tview.Application, cfg *config.Config, token string) *Model {
session := session.NewCustom(id, http.NewClient(token), handler.New())
state := state.NewFromSession(session, defaultstore.New())
m.state = ningen.FromState(state)
m.state.DontWaitForReady = true
m.events = make(chan gateway.Event)
m.state.AddHandler(m.events)