From 4550df6c1a82ad76fc6e373da937d5082c545e2a 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 --- vibn-frontend/lib/dev-container.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vibn-frontend/lib/dev-container.ts b/vibn-frontend/lib/dev-container.ts index 304d996..ebf7243 100644 --- a/vibn-frontend/lib/dev-container.ts +++ b/vibn-frontend/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; ` +