Load a conversation's history on the client

The conversation pages rendered their messages on the server, so a page
the back button restored from the back-forward cache showed an old
thread. The server now renders everything else (rail, header, composer)
and the history (active session, latest messages, active task) loads
from api/admin/bots/conversation-history once the page is on screen,
with a loading line under the header, and again on a pageshow restore.
Messages sent or pushed while it loads are merged with it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-25 03:55:38 +01:00
co-authored by Claude Opus 5.5
parent cdb93ac1bc
commit d542b4e9ad
15 changed files with 485 additions and 63 deletions
+13
View File
@@ -184,6 +184,19 @@
/* The rail's full (named) width: below it the rail shows icons only.
A container query, so the mobile drawer opens full too. */
--container-rail: 220px;
/* The thin line under a pane header while its page loads
(`LoadingLine`): a short bar sweeping across, again and again. */
--animate-loading-line: loading-line 1.2s ease-in-out infinite;
@keyframes loading-line {
0% {
transform: translateX(-100%);
}
100% {
transform: translateX(300%);
}
}
}
body {