From 306dc50c158913ad732737bcf3dc95682410198d Mon Sep 17 00:00:00 2001 From: mawkone Date: Wed, 10 Jun 2026 11:46:50 -0700 Subject: [PATCH] perf(telemetry): stop migration hook from endlessly rsyncing large node_modules by guarding with marker file --- lib/dev-container.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dev-container.ts b/lib/dev-container.ts index 304d9968..ebf7243b 100644 --- a/lib/dev-container.ts +++ b/lib/dev-container.ts @@ -442,7 +442,7 @@ export async function execInDevContainer( if (projectRow?.slug) { const slug = projectRow.slug; const migrationCmd = - `if [ -d "/workspace/${slug}" ] && [ ! -d "/workspace/.git" ]; then ` + + `if [ ! -f "/workspace/.vibn-migration-root-fix" ] && [ -d "/workspace/${slug}" ] && [ ! -d "/workspace/.git" ]; then ` + `rsync -a "/workspace/${slug}/" "/workspace/" 2>/dev/null; ` + `mv "/workspace/${slug}" "/workspace/.legacy-nested-${slug}-$(date +%s)" 2>/dev/null; ` + `echo "Migrated nested repo from /workspace/${slug}" > /workspace/.vibn-migration-root-fix; ` +