From 3c0d3d517537138bd8c33bf8e5f9de6545c43f9d Mon Sep 17 00:00:00 2001 From: mawkone Date: Wed, 3 Jun 2026 15:02:43 -0700 Subject: [PATCH] fix(runner): completely remove destructive git clean -fd rollback block --- vibn-agent-runner/dist/agent-session-runner.js | 12 +----------- vibn-agent-runner/src/agent-session-runner.ts | 12 +----------- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/vibn-agent-runner/dist/agent-session-runner.js b/vibn-agent-runner/dist/agent-session-runner.js index c8a264f..633db8b 100644 --- a/vibn-agent-runner/dist/agent-session-runner.js +++ b/vibn-agent-runner/dist/agent-session-runner.js @@ -619,18 +619,8 @@ async function runSessionAgent(config, task, ctx, opts) { await emit({ ts: now(), type: "error", - text: `❌ [Orchestrator] Bailed out! Task execution failed on: "${currentTask.text}". Rolling back modifications for this task to keep the repository green...`, + text: `❌ [Orchestrator] Bailed out! Task execution failed on: "${currentTask.text}".`, }); - try { - const { execSync } = require("child_process"); - execSync("git checkout -- . && git clean -fd", { - cwd: repoRoot, - stdio: "pipe", - }); - } - catch (rollbackErr) { - console.error("Rollback failed:", rollbackErr.message || rollbackErr); - } await patchSession(opts, { status: "failed", error: `Delegation loop halted at task: "${currentTask.text}"`, diff --git a/vibn-agent-runner/src/agent-session-runner.ts b/vibn-agent-runner/src/agent-session-runner.ts index 1a312ca..dd937e1 100644 --- a/vibn-agent-runner/src/agent-session-runner.ts +++ b/vibn-agent-runner/src/agent-session-runner.ts @@ -770,19 +770,9 @@ export async function runSessionAgent( await emit({ ts: now(), type: "error", - text: `❌ [Orchestrator] Bailed out! Task execution failed on: "${currentTask.text}". Rolling back modifications for this task to keep the repository green...`, + text: `❌ [Orchestrator] Bailed out! Task execution failed on: "${currentTask.text}".`, }); - try { - const { execSync } = require("child_process"); - execSync("git checkout -- . && git clean -fd", { - cwd: repoRoot, - stdio: "pipe", - }); - } catch (rollbackErr: any) { - console.error("Rollback failed:", rollbackErr.message || rollbackErr); - } - await patchSession(opts, { status: "failed", error: `Delegation loop halted at task: "${currentTask.text}"`,