Files
DeepTutor/web
Bingxi Zhao (Frank) 106a3b4cf0 polish(chat): i18n Regenerate button + restore popped assistant on reject
- Add i18n keys for the Regenerate action button (en: "Regenerate",
  zh: "重新生成") and switch `ChatMessages.tsx` from the hardcoded
  "Regenerate" string to `t("Regenerate")`, matching the existing
  `t("Copy")` pattern in the same row.
- When a regenerate request is rejected pre-flight (server returns a
  terminal `error` with `reason` = `regenerate_busy` or
  `nothing_to_regenerate`), the optimistic `POP_LAST_ASSISTANT` +
  `STREAM_START` placeholder is now rolled back via a new
  `RESTORE_ASSISTANT` reducer action. The popped message is kept in a
  per-key ref (`pendingRegenerateRef`) and cleared on `done` or any
  terminal result, so the transcript stays in sync with the server and
  the user doesn't silently lose their last reply.

Made-with: Cursor
2026-04-21 00:21:42 +08:00
..
2026-01-23 01:42:25 +08:00
2026-04-11 12:23:32 +08:00
2025-12-28 23:45:41 +08:00
2025-12-28 23:45:41 +08:00
2026-01-23 01:42:25 +08:00
2026-01-22 23:54:45 +08:00
2026-03-29 12:45:37 +08:00
2025-12-28 23:45:41 +08:00
2026-01-15 02:49:17 +08:00