Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Terminal UI (TUI)

A rich terminal interface built with BubbleTea. Provides markdown rendering, streaming output, approval dialogs, and status indicators.

Details

IDnexus.io.tui
DependenciesNone

Configuration

No additional configuration. The TUI plugin uses BubbleTea defaults.

Events

Subscribes To

EventPriorityPurpose
io.output50Display agent responses
io.output.stream / io.output.stream.end50Streaming response rendering
io.status50Update status bar (thinking, tool_running, etc.)
io.approval.request50Show tool approval dialogs
io.ask50Show question prompts
thinking.step50Display thinking indicators
plan.approval.request50Show plan approval dialogs
plan.created50Display generated plans
agent.plan50Display plan progress
session.file.created / session.file.updated50Show file activity notifications
io.history.replay50Replay conversation on session resume
cancel.complete50Handle cancellation UI

Emits

EventWhen
io.inputUser submits a message
io.approval.responseUser responds to approval dialog
io.ask.responseUser answers a question
plan.approval.responseUser approves/rejects a plan
io.session.start / io.session.endSession lifecycle
cancel.requestUser cancels current operation
cancel.resumeUser resumes after cancellation

Features

  • Markdown rendering in the terminal
  • Streaming response display with incremental rendering
  • Approval dialogs for tool execution
  • Plan display and approval
  • Status bar showing current agent state
  • File creation/update notifications
  • Session resume with history replay
  • Built-in commands: /quit, /exit