diff --git a/src/bootstrap/state.ts b/src/bootstrap/state.ts index f939b5c43..ec555b16b 100644 --- a/src/bootstrap/state.ts +++ b/src/bootstrap/state.ts @@ -787,18 +787,6 @@ let scrollDraining = false let scrollDrainTimer: ReturnType | undefined const SCROLL_DRAIN_IDLE_MS = 150 -/** Mark that a scroll event just happened. Background intervals gate on - * getIsScrollDraining() and skip their work until the debounce clears. */ -export function markScrollActivity(): void { - scrollDraining = true - if (scrollDrainTimer) clearTimeout(scrollDrainTimer) - scrollDrainTimer = setTimeout(() => { - scrollDraining = false - scrollDrainTimer = undefined - }, SCROLL_DRAIN_IDLE_MS) - scrollDrainTimer.unref?.() -} - /** True while scroll is actively draining (within 150ms of last event). * Intervals should early-return when this is set — the work picks up next * tick after scroll settles. */ @@ -1103,10 +1091,6 @@ export function setUserMsgOptIn(value: boolean): void { STATE.userMsgOptIn = value } -export function getSessionSource(): string | undefined { - return STATE.sessionSource -} - export function setSessionSource(source: string): void { STATE.sessionSource = source } @@ -1433,10 +1417,6 @@ export function getRegisteredHooks(): Partial< return STATE.registeredHooks } -export function clearRegisteredHooks(): void { - STATE.registeredHooks = null -} - export function clearRegisteredPluginHooks(): void { if (!STATE.registeredHooks) { return @@ -1527,10 +1507,6 @@ export function addInvokedSkill( }) } -export function getInvokedSkills(): Map { - return STATE.invokedSkills -} - export function getInvokedSkillsForAgent( agentId: string | undefined | null, ): Map {