Something went wrong. Try again.
fork of prime agent with changes i want but are not upstreamable probqbly (and some fixes)
Something went wrong. Try again.
771 B · 21 lines
TypeScript
at main
12345678910111213141516171819202122// Shared "still working" indicator used across the agents view, the chat// subagent tray, and in-progress tool markers so motion reads consistently.export const WORKING_ICON_FRAMES = ["◇", "◈", "◆", "◈"] as const;export const WORKING_ICON_INTERVAL_MS = 250;
export function workingIconFrame(frame: number): string { const frames = WORKING_ICON_FRAMES; return frames[((frame % frames.length) + frames.length) % frames.length] ?? frames[0];}
// Process-wide frame counter for in-place chat tool markers, advanced by the// interactive mode's single ticker and read during render.let pulseFrame = 0;
export function getWorkingPulseFrame(): number { return pulseFrame;}
export function setWorkingPulseFrame(frame: number): void { pulseFrame = frame;}