Skip to content

feat: Add CallTraceBar for real-time call tracing in TUI #20068

Closed as not planned

Description

@jeromelau

Description

Add a CallTraceBar component to the TUI that provides real-time visibility into all calls happening during a session - including LLM calls, tool executions, and plugin/agent operations.

Problem

Currently, when using opencode with plugins (like oh-my-openagent), there's no visibility into:

  • Which agent is active
  • What tools are being called
  • LLM call details (model, tokens, cost, duration)
  • Plugin operations (subagent spawning, mode injection)

Users have to rely on console logs or guess what's happening.

Proposed Solution

A collapsible CallTraceBar at the top of the session view that shows:

  • User messages (collapsible)
  • LLM calls with model, tokens, cost, duration
  • Tool calls with expandable input/output
  • Plugin operations (agent calls, subtasks)

Each trace item shows timing, status, and is expandable for details.

Design

┌─ CallTrace ──────────────────────────────────────────┐
│ 📋 User     │ 🤖 LLM        │ 🔧 Tools    │ 🔌 Plugin │
│ 3 items     │ 5 calls        │ 12 calls    │ 2 agents  │
└──────────────────────────────────────────────────────┘

Click a category to expand and see individual trace items with timing, status, and expandable details.

Benefits

  • Real-time visibility into all session operations
  • Debug plugin behavior easily
  • Track costs and token usage
  • Understand agent delegation flow

Activity

  1. added
    opentuiThis relates to changes in v1.0, now that opencode uses opentui
    on Mar 30, 2026
  2. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • This appears to be a feature request, but the title does not follow the required format. Feature request titles must start with [FEATURE]: (e.g., [FEATURE]: Add CallTraceBar for real-time call tracing in TUI).
    • The feature request template requires a verification checkbox confirming you have searched for existing issues — this is missing.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


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

    If you believe this was flagged incorrectly, please let a maintainer know.

  3. added a commit that references this issue on Mar 30, 2026
    834d23f
  4. github-actions commented on Mar 30, 2026

    @github-actions
    Contributor

    This issue has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

    Feel free to open a new issue that follows our issue templates.

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

Metadata

Metadata

Assignees

Labels

opentuiThis relates to changes in v1.0, now that opencode uses opentui

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions