Documentation
¶
Index ¶
- type AgentCommandMsg
- type AttachFileMsg
- type ChangeModelMsg
- type ChangeThemeMsg
- type ClearQueueMsg
- type CompactSessionMsg
- type CopyLastResponseToClipboardMsg
- type CopySessionToClipboardMsg
- type ElicitationResponseMsg
- type EvalSessionMsg
- type ExitAfterFirstResponseMsg
- type ExitSessionMsg
- type ExportSessionMsg
- type InsertFileRefMsg
- type LoadSessionMsg
- type MCPPromptMsg
- type NewSessionMsg
- type OpenModelPickerMsg
- type OpenSessionBrowserMsg
- type OpenThemePickerMsg
- type OpenURLMsg
- type RegenerateTitleMsg
- type SendAttachmentMsg
- type SendMsg
- type SetSessionTitleMsg
- type ShowCostDialogMsg
- type ShowMCPPromptInputMsg
- type ShowPermissionsDialogMsg
- type SpeakTranscriptMsg
- type StartShellMsg
- type StartSpeakMsg
- type StopSpeakMsg
- type StreamCancelledMsg
- type SwitchAgentMsg
- type ThemeCancelPreviewMsg
- type ThemeChangedMsg
- type ThemeFileChangedMsg
- type ThemePreviewMsg
- type ToggleHideToolResultsMsg
- type ToggleSessionStarMsg
- type ToggleSidebarMsg
- type ToggleThinkingMsg
- type ToggleYoloMsg
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentCommandMsg ¶
type AgentCommandMsg struct{ Command string } // AgentCommandMsg command message
Session command messages
type AttachFileMsg ¶ added in v1.18.4
type AttachFileMsg struct{ FilePath string } // Attach a file directly or open file picker if empty/directory
Session command messages
type ChangeModelMsg ¶ added in v1.19.0
type ChangeModelMsg struct{ ModelRef string } // Change the model for the current agent
Session command messages
type ChangeThemeMsg ¶ added in v1.20.0
type ChangeThemeMsg struct {
ThemeRef string // Theme reference to apply
}
Session command messages
type ClearQueueMsg ¶ added in v1.19.3
type ClearQueueMsg struct{} // Clear all queued messages
Session command messages
type CompactSessionMsg ¶
type CompactSessionMsg struct{ AdditionalPrompt string }
Session command messages
type CopyLastResponseToClipboardMsg ¶ added in v1.19.1
type CopyLastResponseToClipboardMsg struct{}
Session command messages
type ElicitationResponseMsg ¶ added in v1.19.3
type ElicitationResponseMsg struct {
Action tools.ElicitationAction
Content map[string]any
}
Session command messages
type ExitAfterFirstResponseMsg ¶ added in v1.19.4
type ExitAfterFirstResponseMsg struct{} // Exit TUI after first assistant response completes
Session command messages
type ExportSessionMsg ¶ added in v1.18.6
type ExportSessionMsg struct{ Filename string }
Session command messages
type InsertFileRefMsg ¶ added in v1.18.4
type InsertFileRefMsg struct{ FilePath string } // Insert @filepath reference into editor
Session command messages
type MCPPromptMsg ¶
Session command messages
type OpenModelPickerMsg ¶ added in v1.19.0
type OpenModelPickerMsg struct{} // Open the model picker dialog
Session command messages
type OpenThemePickerMsg ¶ added in v1.20.0
type OpenThemePickerMsg struct{} // Open the theme picker dialog
Session command messages
type OpenURLMsg ¶
type OpenURLMsg struct{ URL string } // OpenURLMsg is a url for opening message
Session command messages
type RegenerateTitleMsg ¶ added in v1.20.0
type RegenerateTitleMsg struct{} // Regenerate the session title using the AI
Session command messages
type SendAttachmentMsg ¶ added in v1.19.3
type SendAttachmentMsg struct{ Content *session.Message } // Message for the first message with an attachment
Session command messages
type SendMsg ¶ added in v1.19.3
type SendMsg struct {
Content string // Full content sent to the agent (with file contents expanded)
Attachments map[string]string // Map of filename to content for attachments
}
Session command messages
type SetSessionTitleMsg ¶ added in v1.20.0
type SetSessionTitleMsg struct{ Title string } // Set session title to specified value
Session command messages
type ShowMCPPromptInputMsg ¶
type ShowMCPPromptInputMsg struct {
PromptName string
PromptInfo any // mcptools.PromptInfo but avoiding import cycles
}
Session command messages
type ShowPermissionsDialogMsg ¶ added in v1.20.0
type ShowPermissionsDialogMsg struct{}
Session command messages
type SpeakTranscriptMsg ¶ added in v1.19.2
type SpeakTranscriptMsg struct{ Delta string } // Transcription delta from speech-to-text
Session command messages
type StartSpeakMsg ¶ added in v1.19.2
type StartSpeakMsg struct{} // Start speech-to-text transcription
Session command messages
type StopSpeakMsg ¶ added in v1.19.2
type StopSpeakMsg struct{} // Stop speech-to-text transcription
Session command messages
type StreamCancelledMsg ¶ added in v1.19.3
type StreamCancelledMsg struct{ ShowMessage bool } // StreamCancelledMsg notifies components that the stream has been cancelled
Session command messages
type ThemeCancelPreviewMsg ¶ added in v1.20.0
type ThemeCancelPreviewMsg struct {
OriginalRef string // Theme reference to restore
}
Session command messages
type ThemeChangedMsg ¶ added in v1.20.0
type ThemeChangedMsg struct{} // Notifies components that the theme has changed (for cache invalidation)
Session command messages
type ThemeFileChangedMsg ¶ added in v1.20.0
type ThemeFileChangedMsg struct {
ThemeRef string // The theme ref that was modified
}
ThemeFileChangedMsg notifies TUI that the theme file was modified on disk (hot reload). The TUI should load and apply the theme on the main goroutine to avoid race conditions.
type ThemePreviewMsg ¶ added in v1.20.0
type ThemePreviewMsg struct {
ThemeRef string // Theme reference to preview
OriginalRef string // Original theme to restore on cancel
}
Session command messages
type ToggleSessionStarMsg ¶ added in v1.18.4
type ToggleSessionStarMsg struct{ SessionID string } // Toggle star on a session; empty ID means current session
Session command messages
type ToggleSidebarMsg ¶ added in v1.19.6
type ToggleSidebarMsg struct{} // Toggle sidebar visibility
Session command messages