Files
t3code/docs
Theo BrowneandClaude Opus 5 93f0f96b3f Address review findings on seeding and worktree resolution
- dev:seed wrote projector cursors at 1..9 while leaving the target's
  event log intact. The cursor is exclusive and a fresh log restarts at
  sequence 1, so every projector would skip a different slice of the
  user's first real events; the retained events would also replay over
  the copied projections and resurrect the target's deleted threads. All
  nine cursors now start at 0, and the event log and command receipts
  are emptied with the projections.
- The thread-selection query referenced archived_at and
  latest_user_message_at unconditionally, so a source older than
  migrations 017/023 threw before copying anything. It now builds its
  filter and ordering from the columns the source actually has, matching
  how the rest of the copy handles drift. A table missing from the
  target is likewise skipped rather than aborting the seed.
- --threads/--activities accepted negatives, which SQLite reads as "no
  limit" — a capped copy silently became a full-table one. Both now
  require a positive integer.
- resolveGitWorktreePath only looked at cwd, so running dev:pair from a
  subdirectory fell through to the shared home. It walks up to the
  repository root now.
- resolveWorktreeT3Home no longer returns undefined when .t3 is absent:
  inside a worktree that is the answer, and falling back to the shared
  home is precisely the accident the default prevents.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
2026-07-25 21:59:16 -07:00
..