Repository navigation
Conversation
…uns.ts evorca watch reads run folders too, so the pattern of a run ID and the path of a task's folder move next to the other run.json helpers.
The watch view draws with the same parts. Hints now takes its list, and the shell passes its own.
evorca watch shows the progress of a run, each task as a dot, and the trajectory of one task: the instruction, each response with its time and cost, the thinking summaries, the commands with the output the agent sees, and the answer. It reads the run folder once a second, only reads, and follows the newest run of a series.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
A 6-hour
evorca evaluaterun prints one line per finished task, so you cannot see what the agent does while it works.evorca watchshows a run live in evorca's own terminal style: the run's progress, each task as a dot, and the commands, output, and reasoning of one task's agent. It reads only the run folder, so it attaches to a run that is already going and cannot disturb it.What changed
evorca watch --benchmark=openrca [--scenario=...] [<run ID>]opens the view full screen. Without a run ID, it follows the newest run and moves to the next run of a--runsseries when its folder appears.watch.tsis a pure model: a board of tasks fromrun.jsonand the task folders, and a feed that grows onetrajectory.jsonlline at a time.watch-folder.tsreads each growing file from the last byte offset and holds back a line that is still being written.watch-view.tsxdraws them with the shell's grays,Mark,Hints, andFooter.runs.ts, so the reader and the runner share them.Scope
scores.jsonexists. The view counts the tasks withreadTasks, which drops the scoring points, and it never readsrecord.csv.evorca evaluateitself is unchanged. The stacked PR opens this view fromevaluate.Blast Radius
evorca watchis new, andmain.tsloads it on demand like the shell, so other commands still never load OpenTUI. The shell changes only by exporting four of its parts. Its tests pass unchanged.Verification
pnpm checkpasses. 35 new tests drive the model, the reader on real folders that grow as the runner writes them, and the view in OpenTUI's test renderer. Each of 17 mutations to the reader, the view, and the model fails a test.reactrun, re-created as a live 2-run series at 12x with every trajectory line written in two halves, ran underpnpm evorca watchon a real pseudo-terminal. The feed grew, tasks finished on the board, the view moved to run 2, and it showed the scores once the run was scored. Switching tasks, folding, and pausing the tail all worked.qand ctrl+c exit with code 0. After exit the terminal is back in canonical mode with echo, the alternate screen is closed, and the cursor shows. A task folder with noout/and a trajectory that ends mid-line both render.A frame from the replay, 7 seconds in. The task's elapsed time and the feed's clock times come from the recorded run, so they read hours off: