()
| 8 | |
| 9 | describe('SessionStore turn_count accounting (Fix A)', () => { |
| 10 | async function makeStore(): Promise<SessionStore> { |
| 11 | const tmpDir = await fs.mkdtemp(path.join(os.tmpdir(), 'qodex-session-test-')); |
| 12 | return new SessionStore(path.join(tmpDir, 'sessions.db')); |
| 13 | } |
| 14 | |
| 15 | it('only bumps turn_count when a batch contains a user message', async () => { |
| 16 | const store = await makeStore(); |