The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
refactor(desktop): drop dead refreshIfTranscriptStale export
kshitijk4poorff5b4ba6ef0a
diff --git a/apps/desktop/src/app/chat/transcript-backfill.stale-guard-loop.test.ts b/apps/desktop/src/app/chat/transcript-backfill.stale-guard-loop.test.tsindex 54224e87f5a..9c41072d402 100644--- a/apps/desktop/src/app/chat/transcript-backfill.stale-guard-loop.test.ts+++ b/apps/desktop/src/app/chat/transcript-backfill.stale-guard-loop.test.ts@@ -11,7 +11,7 @@ import type { SessionMessage } from '@/types/hermes'** `submit.ts` (use-prompt-actions) and `use-session-tile-delegate.ts` read the* cached transcript, drop the optimistic bubble, ask- * `refreshIfTranscriptStale` whether this window is behind, and on a non-null+ * `transcriptRefreshIfBehind` whether this window is behind, and on a non-null* answer install the refreshed page and REFUSE the send. A user who retries* re-runs that loop with the installed transcript as `localMessages`, so the* guard has to reach a fixed point: a window that was just refreshed must notdiff --git a/apps/desktop/src/lib/stale-transcript-guard.ts b/apps/desktop/src/lib/stale-transcript-guard.tsindex 1669972345c..aa14de7e64b 100644--- a/apps/desktop/src/lib/stale-transcript-guard.ts+++ b/apps/desktop/src/lib/stale-transcript-guard.ts@@ -194,19 +194,6 @@ async function fetchRefreshedTranscript(}}-/**- * Read the authoritative latest page and return a refreshed transcript when- * this view is behind. Null when current or the read fails — a missing- * profile or a down backend must not soft-lock send.- */-export async function refreshIfTranscriptStale(- storedSessionId: string,- localMessages: ChatMessage[],- options?: { excludeMessageId?: string; profile?: ProfileScope }-): Promise<ChatMessage[] | null> {- return fetchRefreshedTranscript(storedSessionId, localMessages, options)-}-/*** Same read, plus whether the surplus is a competing view's message. The* pre-send guard refuses only a competing view; this window's own server-side