Print run id immediately
This commit is contained in:
parent
0b5f07a7d2
commit
e99533828a
2 changed files with 3 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue