Skip to content

Show absent replay timing samples as a dash in English #213

Closed

Description

@lanyue-llk

Problem

The replay result page renders absent timing samples differently by language. In _detail_page in src/harness/trajectory_replay/webarena_report.py:

  • Chinese shows a dash when duration_ms or resource.cpu_ms is absent.
  • English shows 0.0 s, because it reads attempt.get("duration_ms", 0) and cpu_ms or 0.

A missing sample must never become zero. The other replay tables already keep the dash in both languages.

Change

Use the Chinese behavior in both editions and drop the zh branch from the two values. This changes English output for attempts without these samples, so update the affected route snapshots and explain them in the PR.

The catalog migration in #210 keeps this behavior as it is, because that change must stay byte-identical.

Part of #99

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions