[PR #9658] feat(tui): show running tools and LLM status in sidebar #13177

Open
opened 2026-02-16 18:18:02 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/9658

State: open
Merged: No


Closes #9655
Related: #8322, #7093, #5872

What does this PR do?

Adds a "Running" section to the sidebar that displays:

  • LLM status (Sending, Planning, Reasoning, Streaming, Waiting, Retry) with elapsed time
  • Running tools (bash, grep, glob, read, write, edit, etc.) with command preview
  • Background agents numbered as agent1:, agent2:, etc.

Implementation

  • Extended SessionStatus with explicit LLM phases (sending, planning, reasoning, streaming, waiting)
  • Server emits status changes at stream events (text-start, reasoning-start, tool-input-start, tool-call, etc.)
  • Created modular running state hooks in tui/util/running*.tsx
  • Tick interval only runs when session is active (performance)
  • 1 second threshold before showing items (avoids flicker - arbitrarily selected)

How did you verify it works?

  • Typecheck and tests pass
  • Tested manually with parallel tools and background agents

Screencapture

recording-20260204-085334

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/9658 **State:** open **Merged:** No --- Closes #9655 Related: #8322, #7093, #5872 ## What does this PR do? Adds a "Running" section to the sidebar that displays: - **LLM status** (Sending, Planning, Reasoning, Streaming, Waiting, Retry) with elapsed time - **Running tools** (bash, grep, glob, read, write, edit, etc.) with command preview - **Background agents** numbered as `agent1:`, `agent2:`, etc. ## Implementation - Extended `SessionStatus` with explicit LLM phases (`sending`, `planning`, `reasoning`, `streaming`, `waiting`) - Server emits status changes at stream events (text-start, reasoning-start, tool-input-start, tool-call, etc.) - Created modular running state hooks in `tui/util/running*.tsx` - Tick interval only runs when session is active (performance) - 1 second threshold before showing items (avoids flicker - arbitrarily selected) ## How did you verify it works? - Typecheck and tests pass - Tested manually with parallel tools and background agents ## Screencapture ![recording-20260204-085334](https://github.com/user-attachments/assets/18fb83eb-6d55-475e-9dfd-b580044533e4)
yindo added the pull-request label 2026-02-16 18:18:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#13177