(text: string)
| 450 | |
| 451 | it('apply_compaction keeps user messages across a preceding undo marker (model)', () => { |
| 452 | const userMsg = (text: string) => ({ |
| 453 | role: 'user' as const, content: [{ type: 'text' as const, text }], toolCalls: [], |
| 454 | origin: { kind: 'user' as const }, |
| 455 | }); |
| 456 | // Step 1: append u1, u2 then undo(1) → removes u2, leaves [u1, <undo marker>]. |
| 457 | // Step 2: append u3, u4 → array is [u1, <undo marker>, u3, u4]. |
| 458 | // History entries (agent-core _history, which has NO marker) are the three |
no outgoing calls
no test coverage detected