Skip to content

touchMessageActivity

const touchMessageActivity: (id) => Promise<void> = sqliteRepo.touchMessageActivity

Defined in: lib/repositories/chat-history.ts:37

Refresh a message’s updatedAt without changing its content — a per-turn liveness beat. The streaming client calls this on a timer while a turn is in flight (independent of token arrival), so a slow or quiet provider (long time-to-first-token, long gaps between tokens) keeps its row fresh and the interrupted sweep never mistakes a live turn for an orphan. Deliberately not force-flushed: the 1s autosave carries it, and being a beat or two behind is harmless against the multi-second staleness window.

number

Promise<void>