Skip to content

fix(runs): improve live transitions and run and task overviews - #380

Merged
aitianshi merged 3 commits into
mainfrom
feat/run-logs-tab
Nov 24, 2026
Merged

aitianshi merged 3 commits into
mainfrom
feat/run-logs-tab

Conversation

@aitianshi

@aitianshi aitianshi commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

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.

Before After
Earlier task overview with separate growth and tool sections Timing and Tool calls on the left, combined Model usage on the right

Full-run identity cards and Live/Results/Logs:

Full-run overview with Runner first and benchmark, dataset, agent, model, count and duration cards

Verified

  • Backend suite: 2,856 tests in 173 modules passed after merging current main outside the socket-restricted sandbox.
  • Route suite: 660 tests in 68 modules passed after merging current main.
  • Focused progress and execution tests: 83 passed.
  • Browser checks: desktop light/dark and narrow layout; automatic Logs → Live retains the document and performance.timeOrigin; tab selection and task metrics checked.
  • Real τ³-bench Airline task using 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 used openai/gpt-4.1 because the configured dated default alias was unavailable. The earlier refused attempt was not counted as this successful run.
  • Field-guide checks: 2 passed. Usage regression cases cover one call, multiple calls, final metrics, trial totals, unreadable trajectories, missing usage and output-only records.
  • git diff --check passed.

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.

@aitianshi aitianshi self-assigned this Nov 24, 2026
@aitianshi aitianshi changed the title fix(runs): switch from launch logs to live without reloading fix(runs): improve live transitions and run and task overviews Nov 24, 2026
@aitianshi
aitianshi marked this pull request as ready for review November 24, 2026 12:47
@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown

🟡 PR judge · 8 of 8 yes · #380 ↔ #379

Merge risk 🔴 MAJOR the judge's reading of the diff; app/nullius/execution.py is in the path of every run
Priority 🔴 EXTREME the deepest path is app/nullius/execution.py
Question Verdict
Changes do what the issue asks · 10 of 10 criteria ✅ yes
Issue and pull request describe the same change ✅ yes
Description matches the diff, no more, no less ✅ yes
Diff stays in scope ✅ yes
Tests cover the change, or Verified says how ✅ yes
Docs follow the change ✅ yes
Risk named in the description ✅ yes
Before and after shown · 3 images · the diff touches what is visible ✅ yes
Acceptance criteria, 10 of 10 met
# Criterion Verdict
1 Logs is available beside Live and Results and holds launch progress and log output. ✅ met (cut)
2 Before a usable live feed, Logs opens by default; feed readiness switches to Live without a page reload. ✅ met (cut)
3 An explicitly selected tab is respected and keyboard navigation skips disabled tabs. ✅ met (cut)
4 Restarted stages discard stale duration/detail; terminal executions leave no running or waiting stages. ✅ met (cut)
5 Unknown unit totals are indeterminate; reported counts remain unchanged. ✅ met (cut)
6 Trial and All attempts pages omit repeated identity cards while preserving task metrics and run overview metadata. ✅ met (cut)
7 Run identity uses cards, with Runner first and separate Benchmark and Dataset fields. ✅ met (cut)
8 Every task has a consistent Model usage summary with totals fallback or an explicit missing-data state. ✅ met (cut)
9 Prompt growth shares the Model usage card; timing and Tool calls occupy the left column and Model usage the right, stac… ✅ met (cut)
10 Token labels and segments read input, cache, output; cache hit is a plain statistic. ✅ met (cut)
Checks the script runs itself, 4 of 4 pass
No machine attribution trailer in the commits or the description ✓
New code under app/, docs/, .github/ or .claude/ ✓
No Flask import under the backend package ✓
No key-shaped string in the diff ✓

some of the diff was cut before the judge read it

@aitianshi
aitianshi merged commit ee8b644 into main Nov 24, 2026
5 checks passed
@aitianshi
aitianshi deleted the feat/run-logs-tab branch November 24, 2026 12:51
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Run preparation and task overviews need consistent progress, identity and usage displays

1 participant