Print run id immediately

This commit is contained in:
centra 2026-04-04 16:34:53 +09:00
parent 0b5f07a7d2
commit e99533828a
Signed by: centra
GPG key ID: 0C09689D20B25ACA
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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}`);
});