[Bounty Proposal] fix(chat): message-list routes 500 on one malformed stored row ($50 proposed)
Author: kduailabsCreated Sep 28, 2026Updated Sep 28, 2026
Summary
GET /v2/messages and GET /v2/desktop/messages return raw stored rows under response_model=List[Message]; FastAPI validates every row, so a single legacy/partial message doc 500s the whole history page. The list fix #8239 was closed unmerged, and the desktop route never had one — the class is still live on both.
Impact
- Mobile chat history (
GET /v2/messages) and macOS desktop history (GET /v2/desktop/messages) 500 for any user whose recent window contains a malformed row. - Same class as #19489 (utils/chat.py), the send path, and #8882/#9799; this closes the two list routes.
Fix
Message.deserialize_many_safe in both handlers, with a logged skip.
PR
https://github.com/BasedHardware/omi/pull/19558
Tests
backend/tests/unit/test_chat_message_list_skips_malformed.py — valid row survives, malformed skipped, both routes.
Proposing US$50 (two user-facing routes, one class the repo has already fixed elsewhere).
Source: BasedHardware/omi