程序员阿江(Relakkes)
29586ce384
fix: stabilize empty agentTaskNotifications to prevent scroll re-renders
...
The "?? {}" fallback allocated a fresh object every render, defeating the React.memo barriers on ToolCallGroup and MessageBlock for sessions without agent task notifications, so every visible tool-call card re-rendered on each scroll frame. Reuse a module-level empty constant, mirroring EMPTY_MESSAGES.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 17:42:30 +08:00
..
2026-05-23 19:06:59 +08:00
2026-05-23 19:06:59 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:41:43 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:40:46 +08:00
2026-05-13 14:08:12 +08:00
2026-05-13 14:08:12 +08:00
2026-05-23 19:14:22 +08:00
2026-05-31 17:39:25 +08:00
2026-05-31 17:39:25 +08:00
2026-04-06 20:37:44 +08:00
2026-05-22 17:55:33 +08:00
2026-05-22 17:55:33 +08:00
2026-05-16 13:18:59 +08:00
2026-05-26 22:52:18 +08:00
2026-05-26 22:52:18 +08:00
2026-04-30 18:28:08 +08:00
2026-04-20 12:12:02 +08:00
2026-05-14 22:42:01 +08:00
2026-05-14 22:42:01 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:42:09 +08:00
2026-05-31 17:42:09 +08:00
2026-05-13 10:38:14 +08:00
2026-05-13 10:38:14 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:40:46 +08:00
2026-04-07 22:18:16 +08:00
2026-05-31 17:40:46 +08:00
2026-05-31 17:40:46 +08:00
2026-05-13 18:38:37 +08:00
2026-05-13 21:36:11 +08:00
2026-05-31 17:42:09 +08:00
2026-05-31 17:42:09 +08:00
2026-05-31 17:42:09 +08:00
2026-05-31 17:42:09 +08:00
2026-05-31 17:42:09 +08:00
2026-05-31 17:42:30 +08:00
2026-05-09 21:48:16 +08:00
2026-05-31 17:39:25 +08:00
2026-05-06 22:33:43 +08:00
2026-04-21 00:46:29 +08:00
2026-05-20 18:48:36 +08:00
2026-04-20 10:23:19 +08:00
2026-04-22 15:30:05 +08:00
2026-05-23 23:41:25 +08:00
2026-05-23 23:41:25 +08:00
2026-05-23 23:41:25 +08:00
2026-05-16 13:18:59 +08:00
2026-05-12 13:15:54 +08:00
2026-05-31 17:41:43 +08:00
2026-05-23 23:50:49 +08:00
2026-05-23 23:50:49 +08:00