From e99533828ac5283db1a67e16e5d1af6d0eb05efa Mon Sep 17 00:00:00 2001 From: centra
Date: Sat, 4 Apr 2026 16:34:53 +0900 Subject: [PATCH] Print run id immediately --- README.md | 2 ++ src/index.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index fd8ccf0..ae8b16f 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,8 @@ The CLI persists state in SQLite plus run artifacts under `.agent-r/`, so a long-running effort can be resumed across invocations. +`run` prints the `run id` immediately after creating the run, before any agent work starts. + ## Commands ```bash diff --git a/src/index.ts b/src/index.ts index fb9035d..2949e01 100644 --- a/src/index.ts +++ b/src/index.ts @@ -54,9 +54,9 @@ program .action(async (goal: string, options: { repo?: string; config?: string; maxCycles?: number }) => { const { orchestrator, store } = bootstrap(options.repo, options.config); const run = orchestrator.createRun(goal); + console.log(`run id: ${run.id}`); const finalRun = await orchestrator.runUntilStable(run.id, options.maxCycles); printRunStatus("run", finalRun); - console.log(`run id: ${run.id}`); console.log(`pending tasks: ${store.buildSnapshot(run.id).pendingTasks.length}`); });