Repository navigation
fix(runs): improve live transitions and run and task overviews - #380
Merged
Merged
Conversation
Closed
10 tasks
aitianshi
marked this pull request as ready for review
November 24, 2026 12:47
This comment has been minimized.
This comment has been minimized.
🟡 PR judge · 8 of 8 yes · #380 ↔ #379
Acceptance criteria, 10 of 10 met
Checks the script runs itself, 4 of 4 pass
some of the diff was cut before the judge read it |
This was referenced Nov 24, 2026
This was referenced Nov 24, 2026
aitianshi
added a commit
that referenced
this pull request
Nov 24, 2026
Closes #413 ## What Single-job launches now open the job page directly; launches without exactly one job retain the launches list. When the first usable feed arrives, default and explicit `?view=live` requests switch to Live, while explicit Logs and Results choices remain selected. The execution follow loop waits one second instead of ten between updates. Standard runs report model-list and network/machine requirements checks as stages, so preparation no longer leaves that work invisible before benchmark setup. This follows #380. ## Touches Backend execution · standard runner · progress labels · run-start route · live-board JavaScript · backend and route tests · the standard page and run diagrams. ## Before and after Before: Run opens the launches list; explicit Live links remain on Logs after feed readiness; remote updates include a ten-second idle wait; preflight checks have no active stage. After: single-job launches open their job page; Live requests activate on feed readiness; the follow loop waits one second; preflight checks show their state and duration. Paired browser captures are not attached. ## Verified - Full route suite (674 tests) passes with current main merged in. It exposed a missing `job_ids` in existing run stubs; the route now reads the plan's jobs. - Backend suite (2874 tests) on that merge, before the route fix: one failure, `test_osworld2_api_logs`, which passed when rerun alone. A later local rerun was cut off by its time limit. - Regression cases inspect progress while preflight checks are blocked and after refusal, and bound the follow loop's idle wait. - The follow loop waits with `_stop.wait(1.0)`, which a Stop interrupts. - `git diff --check` passed. - Not verified: a live remote benchmark on the final commit or browser appearance. No benchmark was launched for validation. ## Risk The shorter interval increases SSH, rsync and filesystem activity. Copies and network requests remain synchronous, so their duration still adds latency; this does not guarantee a one-second end-to-end switch. The interval also applies to local execution following. Direct navigation changes the destination after a single-job launch. Preflight events extend progress logs; the checks themselves remain in the same order. Scores, recipes and stored run formats are unchanged. Revert the squash commit to undo.
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.
Closes #379
What
Before a live feed exists, a run now opens on Logs. Launch stages and log output live there; the first usable feed switches to Live within the same document, without reloading. Explicit tab choices are respected. Restarted stages drop stale timing/detail, terminal executions settle stage state, and unknown unit totals use an indeterminate bar.
The full-run overview shows identity cards with Runner first, then Benchmark/Dataset, Agent/Model, and Trials/Duration. Task and All attempts pages keep their own status and metrics without repeating run identity.
Task overview cards put timing and Tool calls on the left and Model usage on the right, stacking on narrow screens. Model usage combines a compact token bar with Prompt growth when multiple calls were recorded. Its labels and segments are input, cache, output; input means uncached input, as its tooltip explains. Cache hit is plain text. Saved trial totals provide a fallback when trajectory accounting is absent, and missing usage is stated explicitly.
Touches
backend · routes · templates and static · tests · field guide
No equivalent open or closed issue/PR was found in the repository or private fork. Related open work: #336 (run facts), #338 (trial details), #340 (task step progress). These have shared-file overlap, but implement separate behavior. After merging main, pairwise merge checks are clean for #332, #336, #338, #340, #342 and #344. Unmerged #352 and #354 still require coordination in app/templates/runs/job.html and app/web/runs.py; their features are not included here.
Before and after
Task overview: the earlier real-run capture and the approved final layout from that same saved run. Run identity is now kept on the full-run overview.
Full-run identity cards and Live/Results/Logs:
Verified
performance.timeOrigin; tab selection and task metrics checked.meta/muse-spark-1.3-contributor: reward 1.0, 55.54 seconds agent time, 22 steps. Recorded uninterrupted from cold setup through Logs → Live, Results and the task page. The simulator and judge usedopenai/gpt-4.1because the configured dated default alias was unavailable. The earlier refused attempt was not counted as this successful run.git diff --checkpassed.Risk
Feed readiness and polling changes could leave a preparing page on the wrong tab; explicit choices must not be overridden. A terminal execution now settles a remaining stage even if its final stage event was absent, but does not manufacture a duration or unit count. Runs without launch records have no Logs tab. The overview derives the benchmark from the catalogue or a single recorded task source. The token summary preserves existing trajectory cache accounting; partial per-call records can still describe only the recorded subset. Revert to undo; no storage migration.