Merge remote-tracking branch 'origin/master' into worktree/web-session-titles

This commit is contained in:
Tianyi Cui
2026-07-23 19:06:03 +08:00
5 changed files with 15 additions and 5 deletions
@@ -131,6 +131,16 @@ 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-')),
workspaceContext: false,
})
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' })