You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
migrate-dev-db fails during prune: FOREIGN KEY constraint failed #104
`node apps/server/scripts/migrate-dev-db.ts --base-dir /.t3` (and `vp run migrate-dev-db` in a SlipJay workspace) fails against the current live `statev2.sqlite`:
```
Pruning to 5 projects, 10 stopped threads each...
MigrateDevDbPhaseError: migrate-dev-db failed during prune ...
FOREIGN KEY constraint failed
```
The prune transaction (`apps/server/scripts/migrate-dev-db.ts`, around the `DELETE FROM projection_projects` / per-`thread_id` table deletes) leaves a row that still references a deleted project or thread, probably one in a table that has neither a `thread_id` column nor an entry in `CLEARED_TABLES`. Find the table with `PRAGMA foreign_key_check` on the pruned snapshot and prune or clear it there.
Two other problems: `vp run migrate-dev-db` also refuses to run in SlipJay workspaces ("Not inside a linked git worktree"), because they are jj-only, so `--base-dir` is needed. And there is no seeded test data for UI checks until this is fixed.
Fixed with #49 in t3peach a176d5c; migrate-dev-db now completes against the live database. The jj-workspace refusal stays with #66: in a SlipJay workspace, dev tooling also falls back to the shared home (vp run dev used ~/.t3/dev without --home-dir), so pass --home-dir / --base-dir until #66 lands.
Activity
feat: Build links and #numbers in chat render as live chips with cards (
pechhe commentedon Oct 17, 2026
Fixed with #49 in t3peach a176d5c; migrate-dev-db now completes against the live database. The jj-workspace refusal stays with #66: in a SlipJay workspace, dev tooling also falls back to the shared home (vp run dev used ~/.t3/dev without --home-dir), so pass --home-dir / --base-dir until #66 lands.