Load the lead's scrollback 50 turns at a time

This commit is contained in:
Ian Gulliver
2026-10-16 18:11:00 -07:00
parent 5dddc15ab9
commit 859aa2dd8b
20 changed files with 625 additions and 238 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
import { post } from "./api.js";
import { h } from "./dom.js";
import { currentLead, leadLoading, state } from "./state.js";
import { currentLead, leadHasOlder, leadLoading, loadOlderLead, state } from "./state.js";
import { compactButton, mountChat } from "./task.js";
const leadSource = {
key: () => "lead",
@@ -14,6 +14,7 @@ const leadSource = {
transcriptTopic: "lead.transcript",
streamTopic: "lead.stream",
readyTopic: "lead.ready",
older: { has: leadHasOlder, load: loadOlderLead },
empty: "",
canSend: () => true,
placeholder: "Message your lead. Paste or drop images to attach them.",