(text: string)
| 540 | origin: { kind: 'user' as const }, |
| 541 | }); |
| 542 | const injectionMsg = (text: string) => ({ |
| 543 | role: 'user' as const, content: [{ type: 'text' as const, text }], toolCalls: [], |
| 544 | origin: { kind: 'injection' as const }, |
| 545 | }); |
| 546 | // Layout: [u1, a1, u2, INJECTION, a2]. undo(1) walks from the end: |
| 547 | // a2 → removed (non-injection) |
| 548 | // INJECTION → skipped (kept), NOT counted |
no outgoing calls
no test coverage detected