refactor(tui): drop unused pending-user chat-log helpers

This commit is contained in:
Dallin Romney
2026-06-05 00:06:41 -07:00
parent 1a3ce7c2a8
commit e4eb058c20
2 changed files with 0 additions and 19 deletions

View File

@@ -174,17 +174,6 @@ describe("ChatLog", () => {
expect(chatLog.render(120).join("\n")).toContain("queued hello"); expect(chatLog.render(120).join("\n")).toContain("queued hello");
}); });
it("stops counting a pending user message once the run is committed", () => {
const chatLog = new ChatLog(40);
chatLog.addPendingUser("run-1", "hello");
expect(chatLog.countPendingUsers()).toBe(1);
expect(chatLog.commitPendingUser("run-1")).toBe(true);
expect(chatLog.countPendingUsers()).toBe(0);
expect(chatLog.render(120).join("\n")).toContain("hello");
});
it("reconciles pending users against rebuilt history using timestamps", () => { it("reconciles pending users against rebuilt history using timestamps", () => {
const chatLog = new ChatLog(40); const chatLog = new ChatLog(40);

View File

@@ -198,10 +198,6 @@ export class ChatLog extends Container {
return component; return component;
} }
commitPendingUser(runId: string) {
return this.pendingUsers.delete(runId);
}
dropPendingUser(runId: string) { dropPendingUser(runId: string) {
const existing = this.pendingUsers.get(runId); const existing = this.pendingUsers.get(runId);
if (!existing) { if (!existing) {
@@ -212,10 +208,6 @@ export class ChatLog extends Container {
return true; return true;
} }
hasPendingUser(runId: string) {
return this.pendingUsers.has(runId);
}
reconcilePendingUsers( reconcilePendingUsers(
historyUsers: Array<{ historyUsers: Array<{
text: string; text: string;