Skip to content

Include item start times in completion events#35363

Merged
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e7cec9c4f1ef6ba67f287e81fb4d7d856fcf87a7
Jul 25, 2026
Merged

Include item start times in completion events#35363
copyberry[bot] merged 1 commit into
mainfrom
copyberry/codex-internal-to-codex-oss/e7cec9c4f1ef6ba67f287e81fb4d7d856fcf87a7

Conversation

@copyberry

@copyberry copyberry Bot commented Jul 25, 2026

Copy link
Copy Markdown

Include item start times in completion events

What changed

  • Add an optional started_at_ms field to ItemCompletedEvent, retaining
    compatibility with older persisted events that lack it.
  • Track the first start timestamp for each in-flight item and attach it when
    emitting and persisting the completion event. If no start was recorded, use
    the completion timestamp as a fallback.
  • Emit a complete start/completion lifecycle for subagent activity items.

Testing

  • Cover concurrent item timing, repeated starts, turn-boundary cleanup, the
    missing-start fallback, subagent activity, and persisted web-search events.

## What changed

- Add an optional `started_at_ms` field to `ItemCompletedEvent`, retaining
  compatibility with older persisted events that lack it.
- Track the first start timestamp for each in-flight item and attach it when
  emitting and persisting the completion event. If no start was recorded, use
  the completion timestamp as a fallback.
- Emit a complete start/completion lifecycle for subagent activity items.

## Testing

- Cover concurrent item timing, repeated starts, turn-boundary cleanup, the
  missing-start fallback, subagent activity, and persisted web-search events.

GitOrigin-RevId: e7cec9c4f1ef6ba67f287e81fb4d7d856fcf87a7
@copyberry
copyberry Bot force-pushed the copyberry/codex-internal-to-codex-oss/e7cec9c4f1ef6ba67f287e81fb4d7d856fcf87a7 branch from cae2182 to af7f6f4 Compare July 25, 2026 16:07
@copyberry
copyberry Bot merged commit af7f6f4 into main Jul 25, 2026
14 of 32 checks passed
@copyberry
copyberry Bot deleted the copyberry/codex-internal-to-codex-oss/e7cec9c4f1ef6ba67f287e81fb4d7d856fcf87a7 branch July 25, 2026 16:08
@github-actions github-actions Bot locked and limited conversation to collaborators Jul 25, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant