Group of 2 Under the hood
Plugin-submitted prompts are tagged to the current turn, and turn-complete reporting now uses the real turn id instead of a freshly generated one
What
- New turn-lifecycle bookkeeping marks prompt UUIDs against
turn.start/turn.completeevents and prunes stale entries. The plugin API for submitting a prompt now uses this bookkeeping when submitting, tagging the submission to the current turn only if its origin is undefined orsession.start. - The handler that reports a completed agent turn to telemetry/session state now forwards the actual
turnIdfrom the event, rather than generating a new id at report time.
Why
This makes turn tracking for plugin-submitted prompts, and the turn id used in turn-complete reporting, more accurate and consistent instead of relying on freshly generated ids.