Skip to content

feat: Subagent output panel with Ctrl+X navigation #88

@randomm

Description

@randomm

Feature

Implement a subagent output panel in oclite, similar to the opencode TUI's task panel:

  • Buffer output from the last 5 subagent runs
  • Navigate between subagent views with Ctrl+X + ←/→ arrows
  • Ctrl+X + ↑ returns to main screen
  • Show subagent name, status, and elapsed time in panel header

UX Design

Main view:  project-manager ❯ █
            [Ctrl+X →] to view subagent: @developer (running, 12s)

Panel view: ┌ @developer: Implement feature ──────────────┐
            │ Reading file...                              │
            │ ✓ bash  git status                           │
            │ Writing implementation...                    │
            │                                              │
            │ [Ctrl+X ←/→] prev/next  [Ctrl+X ↑] back     │
            └──────────────────────────────────────────────┘

Implementation Approach

  • Research the opencode TUI's panel implementation first
  • Buffer subagent session output as streaming chunks arrive
  • Ring buffer of 5 most recent subagents
  • Full-screen panel takeover on navigation (not a split pane)
  • Subscribe to subagent session events via Bus

Related

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions