viettranx
fbfae1e618
fix(agents): prevent NOT NULL violation on promoted columns during update
...
Frontend sent null for empty emoji (emoji.trim() || null), which violated
the NOT NULL constraint on the promoted emoji column (migration 000037).
This caused all agent saves to fail with 500 when emoji was unset.
- Frontend: send empty string instead of null for emoji field
- Backend (PG + SQLite): add null-coercion for all promoted NOT NULL
columns — TEXT (emoji, agent_description, thinking_level) coerce to "",
INT (skill_nudge_interval, max_tokens) coerce to 0
2026-04-12 14:31:51 +07:00
..
2026-03-27 09:28:42 +07:00
2026-04-09 21:29:48 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-04-06 12:54:44 +07:00
2026-04-12 14:31:51 +07:00
2026-04-12 10:24:07 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 21:22:23 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-03-29 22:33:17 +07:00
2026-03-27 09:28:42 +07:00
2026-04-02 08:23:01 +07:00
2026-04-10 19:40:44 +07:00
2026-03-30 15:19:43 +07:00
2026-04-09 23:40:46 +07:00
2026-04-10 19:52:43 +07:00
2026-04-01 11:12:35 +07:00
2026-04-09 21:29:48 +07:00
2026-04-10 13:32:02 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-03-27 09:28:42 +07:00
2026-04-09 21:29:48 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-04-05 13:13:02 +07:00
2026-03-27 09:28:42 +07:00
2026-03-28 08:31:18 +07:00
2026-04-09 21:29:48 +07:00
2026-03-27 09:28:42 +07:00
2026-04-11 21:22:23 +07:00
2026-04-12 12:37:10 +07:00
2026-04-12 12:37:10 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-03-27 09:28:42 +07:00
2026-03-30 14:12:08 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-03-30 21:58:29 +07:00
2026-04-09 21:29:48 +07:00
2026-03-30 21:58:29 +07:00
2026-03-30 21:58:29 +07:00
2026-03-27 09:28:42 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-04-09 21:29:48 +07:00
2026-03-27 09:28:42 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 21:22:23 +07:00
2026-03-27 09:28:42 +07:00
2026-04-11 21:22:23 +07:00
2026-04-09 21:29:48 +07:00
2026-04-12 08:55:15 +07:00
2026-04-12 08:55:15 +07:00
2026-04-10 19:35:02 +07:00
2026-03-27 09:28:42 +07:00
2026-03-27 09:28:42 +07:00
2026-04-08 15:56:18 +07:00
2026-04-12 13:25:15 +07:00
2026-04-11 21:22:23 +07:00
2026-04-11 21:22:23 +07:00