Files
DeepTutor/web/tests
Bingxi Zhao (Frank) 7cc213f24d fix(chat): end a stuck session load in a retryable state
#923 fixed the blank transcript in #912 — an orphaned message tree. The
same report's other screenshot is a different failure that survived it: the
overlay stuck on "Loading conversation / Still loading…" with the request
already answered in devtools.

Two paths led there, and both told the user their history was gone:

* The wait was unbounded ("the overlay stays until the API responds (no
  timeout)"). A fetch that never settled span forever, and the only exit was
  ✕ — which abandons the conversation. The wait is now bounded, and the 8s
  hint is no longer the last thing that ever happens.
* A cold open that *failed* ran router.replace("/home"), dropping the
  session id from the URL. A transient error was indistinguishable from a
  lost conversation, and the id needed to retry was gone.

Both now end in one terminal, retryable state with the id still in the URL:
the overlay shows the failure and a Retry, ✕ still means "leave". A failed
background revalidate is unchanged — the cached transcript stays on screen
rather than being replaced by an error.

Which of the three aborts counts as a failure is the whole subtlety (a
newer load and the user's ✕ own the state that replaces this one; a timeout
owns nothing), so that decision lives in a tested predicate rather than
inline in the component.
2026-08-20 00:56:34 +08:00
..
2026-01-15 02:49:17 +08:00
2026-08-02 13:23:45 +08:00
2026-07-24 03:06:58 +08:00
2026-08-02 13:23:45 +08:00
2026-08-17 11:22:26 +08:00
2026-08-19 17:34:52 +08:00
2026-08-02 13:23:45 +08:00
2026-07-31 00:25:48 +08:00
2026-08-13 18:49:48 +08:00
2026-08-02 13:23:45 +08:00
2026-07-19 16:56:34 +08:00
2026-06-19 20:05:19 +08:00
fix
2026-08-09 22:18:22 +08:00
2026-08-17 11:22:26 +08:00
2026-06-11 20:03:34 +08:00
fix
2026-08-09 22:18:22 +08:00
2026-08-17 11:22:26 +08:00
2026-08-19 17:34:52 +08:00
2026-07-31 00:25:48 +08:00
2026-07-31 00:25:48 +08:00
2026-08-02 13:23:45 +08:00
2026-08-02 13:23:45 +08:00
2026-04-30 23:41:58 +08:00
2026-08-02 13:23:45 +08:00
2026-08-19 17:34:52 +08:00
2026-08-19 17:34:52 +08:00
2026-08-19 17:34:52 +08:00
2026-08-19 17:34:52 +08:00
2026-08-19 17:34:52 +08:00
2026-08-19 17:34:52 +08:00
2026-08-13 18:49:48 +08:00
2026-07-29 01:56:12 +08:00
2026-08-19 17:34:52 +08:00
fix
2026-08-09 22:18:22 +08:00
2026-08-10 00:47:37 +08:00
2026-08-02 13:23:45 +08:00
2026-07-24 18:16:04 +08:00
2026-05-12 02:20:30 +08:00