diff --git a/vibn-agent-runner/dist/agent-session-runner.js b/vibn-agent-runner/dist/agent-session-runner.js index c8a264f0..633db8b5 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 1a312cab..dd937e12 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}"`,