From 87091f5033f3baf0ee3272ed03a1a2d57cbadf46 Mon Sep 17 00:00:00 2001 From: jarvisrjz <3503834+jarvisrjz@users.noreply.github.com> Date: Thu, 19 Feb 2026 10:40:52 -0500 Subject: [PATCH] fix: convert UUID fields to strings in _extract_feedback_dict_from_step_row asyncpg returns raw uuid.UUID objects from PostgreSQL. The sibling method _convert_step_row_to_dict already wraps UUID fields with str(), but _extract_feedback_dict_from_step_row was passing them through raw. This caused TypeError: Object of type UUID is not JSON serializable when resuming a thread via the sidebar. Co-Authored-By: Claude Opus 4.6 --- backend/chainlit/data/chainlit_data_layer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/chainlit/data/chainlit_data_layer.py b/backend/chainlit/data/chainlit_data_layer.py index d2fb2d9f62..963c045932 100644 --- a/backend/chainlit/data/chainlit_data_layer.py +++ b/backend/chainlit/data/chainlit_data_layer.py @@ -661,8 +661,8 @@ async def get_favorite_steps(self, user_id: str) -> List[StepDict]: def _extract_feedback_dict_from_step_row(self, row: Dict) -> Optional[FeedbackDict]: if row.get("feedback_id", None) is not None: return FeedbackDict( - forId=row["id"], - id=row["feedback_id"], + forId=str(row["id"]), + id=str(row["feedback_id"]), value=row["feedback_value"], comment=row["feedback_comment"], )