fix(web): compress session logs by default

This commit is contained in:
Turtle
2026-07-23 15:54:10 +08:00
parent 89bff10146
commit 3b97c7b318
5 changed files with 12 additions and 5 deletions
@@ -93,6 +93,13 @@ describe('bootHost / startHost', () => {
await handle.dispose()
})
it('uses the JSONL backend compressed default', async () => {
const handle: HostHandle = await bootHost({ persistenceRoot: mkdtempSync(join(tmpdir(), 'dsh-boot-zstd-')) })
const session = handle.ctx.sessions.create()
expect(handle.ctx.sessionPersistence.locate(session.header)?.path).toMatch(/\.jsonl\.zstd$/)
await handle.dispose()
})
it('startHost assembles api + handler over the same defaults and dedupes dispose', async () => {
const running = await boot()
expect(running.defaults).toMatchObject({ provider: 'scripted', model: 'test-model' })