Skip to content

Task page on remote runtimes: phantom 'Retry Implementing Changes 3' step and negative trace durations #3926

Done

Description

@integry

Seen in the 0.9.4 release-candidate test on a Fly instance with the Sprites runtime (propr-rc, the epic plus #3901/#3915), on both a Claude Sonnet 5.5 task (integry/propr-fly-fixture#148) and a Pi (GPT-6.2 Astra) task and follow-up (integry/propr-fly-fixture#150). Both show on the task page and will show in the launch video.

1. A phantom "Retry Implementing Changes 3" step

Timeline of the Pi follow-up (Run 2 on #150):

16:48:03 Task Queued                 4s
16:48:07 Analyzing Request           55s   pi · pi CLI 1.6.1 · Sprites
16:49:03 Implementing Changes        0s
16:49:03 Implementation Completed    0s
16:49:04 Retry Implementing Changes 3  1s
16:49:06 Task Completed

There was no retry. getClaudeExecutionLabel in propr-ui/src/components/TaskDetails/TaskStatusTable.tsx counts every CLAUDE_EXECUTION/CLAUDE_EXECUTION_STARTED history entry up to the item and labels anything past the first as Retry … <n>. On remote runtimes a third execution-state event arrives after "completed" (likely the result/patch transfer or a runtime phase that is not flagged by isAgentRuntimeEvent), so it is counted as attempt 3.

Fix at the source: find which event that is, emit it with a state or metadata that identifies it (for example "Collecting changes from the Sprite" with its duration), and count only real execution starts as attempts. Add a test with the remote-runtime event sequence.

2. Negative duration in the execution trace

The same run's EXECUTION TRACE shows SUMMARY -34s. Step durations must never be negative. Likely the summary step's time comes from a different clock or a different event than its start (agent output timestamps from the Sprite vs worker time, or the end time taken from an earlier event). Use one time source for each step's start and end (the worker's receipt time), clamp at 0 as a guard, and add a test with out-of-order or skewed timestamps.

Check both on the Fly Machines runtime and on local Docker too, and fix wherever they occur.

Activity

  1. propr-dev commented on Nov 30, 2026

    @propr-dev
    Contributor

    🤖 AI processing has started for this issue using codex agent with gpt-6.2-sol model.

    I'll analyze the problem and work on a solution. This may take a few minutes.

    Processing Details:

    • Agent: codex
    • Model: gpt-6.2-sol
    • Branch: 3926/gpt-6.2-sol-task-page-on-remote-runti-20261130-1452-3xi
    • Base Branch: 3758-epic-runtime-abstraction-sc0
    • Worktree: issue-3926-20261130-1452-gpt-6.2-sol-3xi

    🔍 Track Task Execution

  2. integry commented on Dec 1, 2026

    @integry
    OwnerAuthor

    Done in #3928, which merged into the runtime epic; the epic merged into main with #3774 and ships in 0.9.4.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions