Describe the bug
Since upgrading from 2.9.6 to 2.10.0 , some old threads do not load.
Error: Cannot read properties of null (reading 'startsWith')
Console errors:
DETAIL: Failing row contains (9cb39e96-89b9-474d-af87-fb4fd1359bc6, 2026-03-06 02:16:51.353, 2026-03-06 13:16:45.756, null, null, null, null, {}).
2026-03-06 13:16:45,768 | chainlit | ERROR | Database error: null value in column "metadata" of relation "Thread" violates not-null constraint
DETAIL: Failing row contains (9cb39e96-89b9-474d-af87-fb4fd1359bc6, 2026-03-06 02:16:51.357, 2026-03-06 13:16:45.76, null, null, null, null, {}).
2026-03-06 13:16:45,769 | asyncio | ERROR | Task exception was never retrieved
future: <Task finished name='Task-329' coro=<ChainlitDataLayer.update_step() done, defined at /home/mihidum/vscode/chatbot/.venv/lib/python3.13/site-packages/chainlit/data/utils.py:10> exception=NotNullViolationError('null value in column "metadata" of relation "Thread" violates not-null constraint')>
To Reproduce
- Using official Chainlit Datalayer and Postgres server.
- Try to resume an old thread.
Expected behavior
Thread resumes and loads.
Screenshots

Might be related to #2778 ?
Smartphone (please complete the following information):
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.
Describe the bug
Since upgrading from 2.9.6 to 2.10.0 , some old threads do not load.
Error: Cannot read properties of null (reading 'startsWith')
Console errors:
To Reproduce
Expected behavior
Thread resumes and loads.
Screenshots

Might be related to #2778 ?
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.