Skip to content

[FEATURE]: expose subagent execution identity and timing to clients #62588

Open

Description

@mv2sa

Feature hasn't been suggested before.

  • I have verified this feature I'm about to request hasn't been suggested before.

Describe the enhancement you want to request

Expose supported identity and timing for each native subagent execution. OpenChamber #6358 needs this to show a reused invocation while preserving earlier calls' results and durations.

In the v2.2.5 source tested locally, native progress/results and background completion metadata identify the child session but not its execution generation. A delayed report from an older run cannot safely be matched to a newer call using the child ID or arrival time.

The proposed contract is:

  • An opaque execution token owned by one Core Job generation. Sequential reuse of the stable child session/job ID gets a new token; callers joining an already-running execution share its token.
  • Core-recorded startedAt and optional completedAt. A missing completion remains unknown, including for legacy records; do not infer it from arrival time or time_updated.
  • The same execution identity in native tool progress/results, synthetic completion metadata, and the existing experimental job.list. The Job API supplies status; terminal output/error comes from tool results or completion reports. No new HTTP route is needed.
  • Each native tool invocation carries its parent message/call association and retains its existing per-call timing. Joined callers have separate associations and starts; the shared execution has one start. A shared completion report has no singular parent call.
  • Execution identity, timestamps and terminal outcome preserved through persistence/restart replay. Notification/synthetic-message identity continues to own delivery and remains separate from execution identity.

The local prototype uses jobexec_* tokens, experimental.subagent.execution, and experimental.subagent.parentCall on native invocation metadata. Existing fields remain intact and the additions are optional/experimental.

Configured subagent commands are included. Manual/plugin-driven reprompt reporting remains separate and dependent on #61833, whose reporting cycle can span busy periods. This proposal does not change spawning, background defaults, notification preferences, add telemetry infrastructure or clustering, or duplicate that reporting lifecycle.

Related: #36349 covers preserving parent completion across restart. This request defines the supported client-facing execution contract.

Native tool reuse, configured command entry, legacy/restart cases and the paired OpenChamber browser/reload flow have been tested locally and independently reviewed. No implementation PR is open; publication remains on hold.

Activity

  1. opencodejr commented on Nov 7, 2026

    @opencodejr
    Contributor

    Thanks for the detailed request, @mv2sa! To restate it: you'd like core to give each native subagent run its own lasting ID, plus its start and finish times. These would appear in tool progress and results, in session and event records, and in the background completion message. That way clients can tell successive runs of the same resumed child session apart without relying on the child ID or when a report arrives. I checked: today the completion metadata only carries source, childID, agent and state, so a client has no reliable way to know which run a report belongs to.

    Maintainers will consider this. Related issues and PRs:

  2. mv2sa commented on Nov 8, 2026

    @mv2sa
    Author

    The local prototype stays within the existing experimental Job API: each execution has a jobexec_ ID and Core start/completion timestamps; tool metadata also carries its parent message/call IDs. Completion delivery IDs remain separate. Reused children, joined calls and new-format restart replay retain their execution identity; legacy unknown completion times stay unknown.

    Local native verification passed: 6,998 Core tests (349 skipped), root checks, focused schema/server tests, migration consistency, both type-checkers, independent review, and real native tool plus HTTP command-entry flows. The OpenChamber consumer also passed its final handoff gate and the paired same-Core browser/reload proof, preserving separate A/B results and recorded durations. No implementation PR is open.

    The issue body now spells out the full proposed contract. Publication remains on hold. Manual/plugin-driven reprompt reporting remains separate and dependent on #61833.

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