messages

package
v1.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 30, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

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 CopySessionToClipboardMsg

type CopySessionToClipboardMsg 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 EvalSessionMsg

type EvalSessionMsg struct{ Filename string }

Session command messages

type ExitAfterFirstResponseMsg added in v1.19.4

type ExitAfterFirstResponseMsg struct{} // Exit TUI after first assistant response completes

Session command messages

type ExitSessionMsg

type ExitSessionMsg struct{}

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 LoadSessionMsg

type LoadSessionMsg struct{ SessionID string }

Session command messages

type MCPPromptMsg

type MCPPromptMsg struct {
	PromptName string
	Arguments  map[string]string
}

Session command messages

type NewSessionMsg

type NewSessionMsg struct{}

Session command messages

type OpenModelPickerMsg added in v1.19.0

type OpenModelPickerMsg struct{} // Open the model picker dialog

Session command messages

type OpenSessionBrowserMsg

type OpenSessionBrowserMsg struct{}

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 ShowCostDialogMsg added in v1.18.6

type ShowCostDialogMsg struct{}

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 StartShellMsg

type StartShellMsg struct{}

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 SwitchAgentMsg

type SwitchAgentMsg struct{ AgentName string }

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 ToggleHideToolResultsMsg

type ToggleHideToolResultsMsg struct{}

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

type ToggleThinkingMsg added in v1.19.3

type ToggleThinkingMsg struct{}

Session command messages

type ToggleYoloMsg

type ToggleYoloMsg struct{}

Session command messages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL