bincxz
338722cd89
fix(ai): stop per-keystroke draft flushes and ChatInput memo breaks
...
Typing still hitched because each IME commit started a 120ms
updateDraft, which re-ran the whole useAIState hook. Parent also
passed a new hosts array and providerSwitcher object on every
render, so ChatInput's memo never held. field-sizing-content
relayouted the textarea on every glyph.
Keep typed text in pending refs until send/hide/unmount. Memoize
mention hosts and the provider switcher. Use fixed field sizing
in the composer.
2026-08-15 02:35:50 +08:00
..
2026-08-07 14:40:38 +08:00
2026-06-29 00:40:54 +08:00
2026-07-15 11:49:39 +08:00
2026-06-23 14:20:05 +08:00
2026-08-15 00:40:32 +08:00
2026-06-11 16:43:34 +08:00
2026-06-11 16:43:34 +08:00
2026-08-14 23:46:58 +08:00
2026-08-14 23:46:58 +08:00
2026-08-07 14:40:38 +08:00
2026-08-07 14:40:38 +08:00
2026-08-10 23:57:37 +08:00
2026-08-10 23:57:37 +08:00
2026-07-17 12:26:36 +08:00
2026-07-17 12:26:36 +08:00
2026-08-15 02:35:50 +08:00
2026-08-15 02:35:50 +08:00
2026-08-03 16:14:29 +08:00
2026-08-05 19:02:09 +08:00
2026-08-10 16:59:39 +08:00
2026-08-14 23:06:21 +08:00
2026-06-04 17:11:02 +08:00
2026-07-28 14:55:07 +08:00
2026-07-28 14:55:07 +08:00
2026-07-15 15:50:57 +08:00
2026-07-15 15:50:57 +08:00
2026-05-12 20:14:24 +08:00
2026-08-07 14:38:24 +00:00
2026-08-07 14:38:24 +00:00
2026-07-17 12:26:36 +08:00
2026-06-26 00:08:39 +08:00
2026-08-06 08:53:36 +08:00
2026-08-02 16:05:20 +08:00
2026-08-10 13:32:48 +08:00
2026-08-10 13:32:48 +08:00
2026-04-15 17:16:10 +08:00
2026-04-15 17:16:10 +08:00
2026-08-10 13:32:48 +08:00
2026-08-10 13:32:48 +08:00
2026-08-02 14:22:40 +08:00
2026-05-28 15:12:19 +08:00
2026-03-16 00:51:23 +08:00
2026-06-26 11:15:46 +08:00
2026-07-09 15:39:17 +08:00
2026-04-13 12:39:33 +08:00
2026-04-13 12:39:33 +08:00
2026-06-12 00:47:17 +08:00