MCPcopy Create free account
hub / github.com/QodeXcli/QodeX / loop-pruning.test.ts

File loop-pruning.test.ts

test/loop-pruning.test.ts:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import { describe, it, expect } from 'vitest';
2import { compactMessages } from '../src/utils/compaction.js';
3import { detectStuckLoop, readLoopAction } from '../src/agent/recovery.js';
4import { AgentLoop } from '../src/agent/loop.js';

Callers

nothing calls this directly

Calls 6

detectStuckLoopFunction · 0.85
readLoopActionFunction · 0.85
singleTurnHistoryFunction · 0.85
assertInvariantsFunction · 0.85
pruneMessagesMethod · 0.80
cFunction · 0.70

Tested by

no test coverage detected