Skip to content

[Bug] Worked-for duration includes time spent waiting on Implement this plan? #512

Closed

Description

@ladydd

Affected area

Desktop app

Installation method

Built from source

Lody version or commit

OSS desktop 0.76.0, origin/main 084ddb86

Operating system

Linux x64 (Ubuntu)

Agent or runtime

Codex 5.6-Sol, Plan on, Auto review

What happened?

On a turn that waits at Implement this plan?, the Worked-for label is wall clock, including the wait. Waiting one minute then clicking Yes showed 工作了 1分 27秒. Actual implementation after Yes was about 15 seconds. Only turns that wait on a permission card are affected.

The schema already stores permissionWaitMs and documents effective work as (endedAt - timestamp) - permissionWaitMs. The renderer did not subtract it.

What did you expect?

Worked-for should be the schema formula: wall clock minus recorded permission wait. After a one-minute wait, the label should be on the order of the remaining work (~15–40s), not ~1m27s.

How can we reproduce it?

  1. OSS desktop, Codex, Plan on. Send a prompt that pops Implement this plan?.
  2. Do not quit. Wait about one minute, click Yes, let the file write finish. Worked-for tracks the wait, not the work.

How often does it happen?

Every time

Additional context

One-minute wait, before the renderer subtracted permissionWaitMs:

Worked for 1 minute 27 seconds after waiting one minute at the plan card

Distinct from closed #260 (that restamped endedAt after quit/reopen). This is a live turn that never quit.

Fix in progress: #509

Before submitting

  • I searched the existing issues and did not find a duplicate.
  • This report concerns an open-source component in this repository, not a hosted service, Web or mobile app, account, or billing issue.
  • This is not a security vulnerability; security reports follow the repository's security policy.
  • I removed credentials, private source, conversations, prompts, personal data, and other sensitive information.

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