MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / waitForTurnEnd

Function waitForTurnEnd

graph-ui/tools/smoke-w10.mjs:945–957  ·  view source on GitHub ↗
(page, count, timeout)

Source from the content-addressed store, hash-verified

943 * wuerde eine Antwort messen, die vor dem Umschalten entstanden ist.
944 */
945const waitForTurnEnd = (page, count, timeout) =>
946 page.waitForFunction(
947 (wanted) => {
948 const turns = globalThis.__atlasChat?.turns ?? [];
949 if (turns.length < wanted) {
950 return false;
951 }
952 const turn = turns[wanted - 1];
953 return ['answered', 'no-cards', 'refused', 'failed', 'needs-choice'].includes(turn.status);
954 },
955 count,
956 { timeout },
957 );
958
959/** Ein Symbol in den Fokus holen. Derselbe Weg wie in smoke-w7c. */
960async function focusSymbol(page) {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected