You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] Worked-for duration includes time spent waiting on Implement this plan? #512
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?
OSS desktop, Codex, Plan on. Send a prompt that pops Implement this plan?.
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:
Distinct from closed #260 (that restamped endedAt after quit/reopen). This is a live turn that never quit.
Activity