Skip to content

[UX] oclite: Live subagent status panel #68

@randomm

Description

@randomm

Description

Show a live panel of running subagents/tasks with their current status.

Target UX (realistic based on available data)

├── explore: running · started 15s ago
├── developer: running · started 8s ago  
└── adversarial: completed · 23s

Available Data

  • Session.listBackgroundTasks() → pending task IDs + completed results
  • BackgroundTaskResult → id, status (running/completed/failed), time.started, time.completed, metadata.agent_type, metadata.description
  • Session.BackgroundTaskEvent.Completed/Failed → Bus events when tasks finish

NOT Available (cannot show)

  • ❌ Real-time tool use count for running tasks
  • ❌ Real-time token count for running tasks
  • ❌ 'Thinking/Deciphering' status text for running tasks
  • These would require new Bus events from subagent sessions

Requirements

  • Tree-style display with connectors
  • Show agent type + status + elapsed time
  • Update when tasks complete/fail (via Bus events)
  • Toggle visibility with ctrl+t

Files

  • packages/opencode/src/cli/lite/index.ts — rendering
  • packages/opencode/src/session/index.ts — task data

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions