Skip to content

Add V2 session storage service#28522

Open
kitlangton wants to merge 11 commits into
devfrom
storage-v2-service
Open

Add V2 session storage service#28522
kitlangton wants to merge 11 commits into
devfrom
storage-v2-service

Conversation

@kitlangton
Copy link
Copy Markdown
Contributor

Summary

  • add a V2 SessionStorage service boundary with SQL and in-memory implementations
  • refactor SessionV2 reads to consume the storage service instead of direct Drizzle queries
  • add generic contract tests shared by SQL and memory storage
  • document the V2 storage-service migration strategy

Verification

  • bun typecheck (packages/opencode)
  • bun oxlint packages/opencode/src/v2/session.ts packages/opencode/src/v2/session/storage.ts packages/opencode/src/v2/session/storage-sql.ts packages/opencode/src/v2/session/storage-memory.ts packages/opencode/test/v2/session-storage.test.ts --max-warnings=0
  • bun test --timeout 5000 test/v2/session-storage.test.ts
  • bun test --timeout 10000 test/session/prompt.test.ts -t "prompt emits v2 prompted and synthetic events"
  • git push hook: bun turbo typecheck

@kitlangton kitlangton force-pushed the storage-v2-service branch from 88a3205 to dcbd244 Compare May 21, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant