Versions in this module Expand all Collapse all v0 v0.7.0 Apr 13, 2026 Changes in this version + type ApprovalRequestMsg struct + Request approval.ApprovalRequest + Response chan<- approval.ApprovalResponse + ViewModel approval.ApprovalViewModel + type BudgetWarningMsg struct + Max int + Used int + type ChannelMessageMsg struct + Channel string + Metadata map[string]string + SenderName string + SessionKey string + Text string + Timestamp time.Time + type ChatModel struct + func New(deps Deps) *ChatModel + func (m *ChatModel) Init() tea.Cmd + func (m *ChatModel) RenderParts() ChatParts + func (m *ChatModel) SetProgram(p *tea.Program) + func (m *ChatModel) Update(msg tea.Msg) (tea.Model, tea.Cmd) + func (m *ChatModel) View() string + type ChatParts struct + Approval string + Footer string + Header string + Main string + Pending string + TaskStrip string + TurnStrip string + type ChunkMsg struct + Chunk string + type CursorTickMsg time.Time + type DelegationMsg struct + From string + Reason string + To string + type Deps struct + BackgroundManager *background.Manager + Config *config.Config + SessionKey string + TurnRunner *turnrunner.Runner + type DoneMsg struct + Result turnrunner.Result + type ErrorMsg struct + Err error + type PendingIndicatorTickMsg time.Time + type RecoveryMsg struct + Action string + Attempt int + Backoff time.Duration + CauseClass string + type SystemMsg struct + Text string + type TUIApprovalProvider struct + func NewTUIApprovalProvider(sender func(msg interface{})) *TUIApprovalProvider + func (t *TUIApprovalProvider) CanHandle(_ string) bool + func (t *TUIApprovalProvider) Name() string + func (t *TUIApprovalProvider) RequestApproval(ctx context.Context, req approval.ApprovalRequest) (approval.ApprovalResponse, error) + type TaskStripTickMsg time.Time + type ThinkingFinishedMsg struct + AgentName string + Duration time.Duration + Summary string + type ThinkingStartedMsg struct + AgentName string + Summary string + type ToolFinishedMsg struct + CallID string + Duration time.Duration + Output string + Success bool + ToolName string + type ToolItemState string + type ToolStartedMsg struct + CallID string + Params map[string]any + ToolName string + type TurnTokenUsageMsg struct + CacheTokens int64 + InputTokens int64 + OutputTokens int64 + TotalTokens int64 + type WarningMsg struct + Elapsed time.Duration + HardCeiling time.Duration