MCPcopy
hub / github.com/CopilotKit/CopilotKit / onFirstReply

Function onFirstReply

packages/bot-slack/src/event-renderer.ts:158–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

156 /** Whether this run has posted any visible reply yet (drives status clear). */
157 let postedReply = false;
158 const onFirstReply = async (): Promise<void> => {
159 if (postedReply) return;
160 postedReply = true;
161 // Slack auto-clears status when the app replies; clear explicitly too so
162 // there's no lingering indicator on slow/edge paths.
163 await clearStatus();
164 };
165
166 // ── Legacy per-message streaming state ──────────────────────────────
167 /** Per-AG-UI-message accumulated text (legacy path; native uses one buffer). */

Callers 2

makeLegacyStreamFunction · 0.85
ensureTurnStreamFunction · 0.85

Calls 1

clearStatusFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…