Critical bugfix
Kanban tasks moved to "To Do" were instantly set to "Cancelled"
Root cause: stmts.createSession prepared statement had 8 columns in the INSERT, but startTask() called .run() with 9 values — the 'cli' engine parameter was extra. SQLite threw RangeError: Too many parameter values were provided, the catch block set status to 'cancelled'.
Fix: Added engine column to the createSession INSERT statement and updated all 4 call sites to pass the engine value correctly:
startTask(Kanban):'cli'- Chat WebSocket (new session):
msg.engine - Legacy chat WS:
msg.engine - API
POST /api/sessions:body.engine