feat(db): migrate operator_sessions to Drizzle (#841) #856
No reviewers
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/claude-hooks!856
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "code-lead/841"
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?
Closes #841
Pull operator-session CRUD off the hand-rolled SQL string layer onto the Drizzle query builder, following the holds pilot.
Test plan
bun test src/infrastructure/database/operator-sessions.test.ts(18 pass)bun x turbo run testwhole-workspace (3108 pass)just qaclean — typecheck + Biome lint + formatAll 6 functions correctly migrated to Drizzle; CI green, 18 tests pass, no raw SQL remains. Nit: AC called for
typeof operatorSessions.$inferSelectbut manual interface is kept — actually preferable here since it narrowsforge_typetoSessionForgeType; consistent with the holds pilot.