Skip to content

[UX] oclite: Rich tool call display with context and results #71

Description

@randomm

Description

Show tool calls with meaningful context — what tool, what input summary, and a brief result — instead of just the tool name.

Target UX (from sketch)

● Teammate(send message to: views-builder: "Task #1 is complete! The foundation is ready at m...")
  Message sent to views-builder's inbox

● Teammate(request shutdown: foundation-builder)
  shutdown request sent to foundation-builder

Current behavior (after #63 fix)

bash ✓ rg ✓ task ✓

Compact but lacks context — user doesn't know what the tools did.

Requirements

  • Show tool name with input summary (first ~80 chars)
  • Show tool result below (indented, dimmed)
  • Color-coded bullet: ◇ pending, ● completed, ✗ failed
  • Collapsible for long outputs
  • Different display for different tool types:
    • bash: show command
    • read/write: show file path
    • task: show agent + description
    • rg/glob: show pattern

Data available

The tool_start and tool_end chunks already include tool, input, and output fields in session.ts.

Files

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

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions