Commit 1e1a99a
committed
fix(bot): remove serialize_user_updates from on_text to unblock UI
- Remove @serialize_user_updates from on_text in bot_handlers.py
- on_text holds the per-user lock for 5-10s during AI generation,
blocking all button/callback handlers for the same user
- Keep @serialize_user_updates on all fast handlers (settings, chats,
connect, disconnect, status) where race conditions on DB writes
are the real concern1 parent 4c83720 commit 1e1a99a
1 file changed
+0
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
| |||
0 commit comments