refactor(v2): move session storage under storage

This commit is contained in:
Kit Langton 2026-05-20 17:07:34 -04:00
commit dc55ece384
7 changed files with 12 additions and 12 deletions

View file

@ -465,7 +465,7 @@ Avoid leaking Drizzle or SQLite error codes above the storage implementation. Fo
The first implementation PR should be small and reversible:
- Add `packages/opencode/src/v2/session/storage.ts` with the `SessionStorage` service shape.
- Add `packages/opencode/src/v2/storage/session.ts` with the `SessionStorage` service shape.
- Implement SQL and in-memory read backends for `get`, `list`, `messages`, and `context`.
- Refactor `v2/session.ts` to consume `SessionStorage.Service` instead of raw Drizzle calls.
- Keep table schemas and existing migrations unchanged.