@in-the-loop-labs/pair-review 3.3.2 → 3.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@in-the-loop-labs/pair-review",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "Your AI-powered code review partner - Close the feedback loop with AI coding agents",
5
5
  "main": "src/server.js",
6
6
  "bin": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pair-review",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "pair-review app integration — Open PRs and local changes in the pair-review web UI, run server-side AI analysis, and address review feedback. Requires the pair-review MCP server.",
5
5
  "author": {
6
6
  "name": "in-the-loop-labs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "code-critic",
3
- "version": "3.3.2",
3
+ "version": "3.3.3",
4
4
  "description": "AI-powered code review analysis — Run three-level AI analysis and implement-review-fix loops directly in your coding agent. Works standalone, no server required.",
5
5
  "author": {
6
6
  "name": "in-the-loop-labs",
package/src/database.js CHANGED
@@ -2586,14 +2586,14 @@ class WorktreePoolRepository {
2586
2586
  }
2587
2587
 
2588
2588
  /**
2589
- * Find all pool worktrees for background fetch (excludes 'switching' status).
2589
+ * Find all pool worktrees for background fetch (excludes transient statuses).
2590
2590
  * Ordered by last_fetched_at ASC NULLS FIRST (coldest first).
2591
2591
  */
2592
2592
  async findAllForFetch(repository) {
2593
2593
  return await query(this.db, `
2594
2594
  SELECT id, path, last_fetched_at, status
2595
2595
  FROM worktree_pool
2596
- WHERE repository = ? COLLATE NOCASE AND status != 'switching'
2596
+ WHERE repository = ? COLLATE NOCASE AND status NOT IN ('switching', 'creating')
2597
2597
  ORDER BY last_fetched_at ASC NULLS FIRST
2598
2598
  `, [repository]);
2599
2599
  }
package/src/main.js CHANGED
@@ -1201,6 +1201,11 @@ function startPoolBackgroundFetches(db, config) {
1201
1201
  if (elapsed < intervalMs) continue;
1202
1202
  }
1203
1203
 
1204
+ if (!fs.existsSync(entry.path)) {
1205
+ logger.warn(`Background fetch skipped for ${entry.id}: directory no longer exists (${entry.path})`);
1206
+ continue;
1207
+ }
1208
+
1204
1209
  logger.info(`Background fetch starting for ${repoName} pool worktree ${entry.id}`);
1205
1210
  try {
1206
1211
  const git = simpleGit(entry.path, { timeout: { block: 300000 } });