Skip to content

[FEATURE]: expose execution metadata for tool/subagent runs to the agent #23474

Closed as not planned

Description

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

Describe the enhancement you want to request

Please expose minimal execution metadata for tool calls and subagent/task runs to the active agent.

Right now OpenCode clearly has session/message/event data, but the agent still cannot reliably answer questions like:

  • did the task stop in the middle?
  • is it still running or just slow?
  • when was the last successful activity?
  • did it fail, timeout, or get cancelled?

A small structured timeline would be enough. For example:

  • id
  • kind (tool_call or subagent_run)
  • name
  • status
  • started_at
  • ended_at
  • duration_ms
  • last_activity_at
  • parent_id
  • error_summary

The main gap is agent visibility, not just UI.

A UI timeline would help humans, but agent-visible metadata would let the agent:

  • distinguish slow vs stuck
  • decide whether to retry or wait
  • explain interruptions precisely
  • summarize partial runs without guessing

Related issues seem narrower or UI-specific:

This request is broader: expose a minimal execution timeline/metadata surface that the agent itself can inspect across tool calls and subagent runs.

Activity

  1. added
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on Apr 20, 2026
  2. github-actions commented on Apr 20, 2026

    @github-actions
    Contributor

    This issue might be a duplicate of existing issues. Please check:

    • Expose tool/subagent execution metadata to the agent #23421: Nearly identical feature request — "Expose tool/subagent execution metadata to the agent" — with the same proposed fields (id, kind, status, started_at, ended_at, duration_ms, etc.) and the same motivation (agent visibility gap). That issue was closed; please check why it was closed before proceeding.

    If you believe this is a distinct request, please clarify what is different from #23421.

  3. jjangga0214 commented on Apr 20, 2026

    @jjangga0214
    Author

    This is intended as the replacement for #23421, not a distinct feature request.

    #23421 was auto-closed because I did not use the required feature-request title/template format in time. This issue is the same request reposted in the required format so it can be triaged normally.

    I also left a pointer on #23421 to redirect here.

  4. removed
    coreAnything pertaining to core functionality of the application (opencode server stuff)
    on May 3, 2026
  5. github-actions commented on Jul 7, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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