Migrate sessions.ts to Drizzle #848
Labels
No labels
area:agents
area:dashboard
area:database
area:design
area:design-review
area:flows
area:infra
area:meta
area:security
area:sessions
area:webhook
area:workdir
security
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#849 Cleanup: delete
db.ts, lint-ban raw SQL outside DB layer, update docs
charles/claude-hooks
Reference
charles/claude-hooks#848
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
As a maintainer, I want
sessions.ts(live agent SDK session-key store) rewritten on Drizzle, so that the last raw-SQL module in the database layer is converted.Acceptance criteria
Schema
schema/sessions.tsmirrors current shape.Rewrite
getSession,setSession,dropSession,dropAllForIssue,sweepStaleSessions,listLiveSessionIds,incrementSessionResumeFailures,getSessionResumeFailuresTotal,setMaxSessionAgeMs,sessionKey.Tests
sessions.test.tsgreen.Out of scope
domain/agent/agent-runner.ts) — only DB layer.References
apps/server/src/infrastructure/database/sessions.ts.db.ts, lint-ban raw SQL outside DB layer, update docs