Skip to main content

Module tui

Module tui 

Source
Expand description

TUI protocol types and session interface.

When the tui feature is enabled, this module re-exports the full app-layer protocol from vtcode-tui. When the feature is disabled (headless build), it re-exports the shared data types from vtcode-commons and provides lightweight no-op stubs for InlineHandle, InlineSession, and InlineEvent.

Modules§

prelude
Commonly used VT Code TUI API items.

Structs§

AgentPaletteItem
AgentPaletteTransientRequest
DiffHunk
A diff hunk representing a contiguous block of changes
DiffOverlayRequest
DiffPreviewState
State for diff preview modal
FilePaletteTransientRequest
FullscreenInteractionSettings
Standalone fullscreen interaction settings for alternate-screen behavior.
InlineHandle
InlineHeaderBadge
A compact pill badge rendered in the header.
InlineHeaderContext
Session metadata displayed in the inline header.
InlineHeaderHighlight
A title + content highlight block in the header.
InlineHeaderStatusBadge
A labelled status badge for the header bar.
InlineLinkRange
Byte-range inside a line that is a clickable link.
InlineListItem
A selectable item inside a list overlay.
InlineListSearchConfig
Search configuration for a list overlay.
InlineSegment
A styled text segment with shared style.
InlineSession
InlineTextStyle
Inline text styling with foreground/background color and text effects.
InlineTheme
Resolved theme colors for inline rendering.
KeyboardProtocolSettings
Standalone keyboard protocol settings for terminal key event enhancements.
ListOverlayRequest
LocalAgentEntry
LocalAgentsTransientRequest
ModalOverlayRequest
PlanContent
Structured plan content for display in the Implementation Blueprint panel.
PlanPhase
A phase in an implementation plan (groups related steps).
PlanStep
A step in an implementation plan.
SecurePromptConfig
Configuration for a secure (masked) prompt input.
SessionAppearanceConfig
UI appearance configuration
SessionOptions
Standalone session launch options for reusable integrations.
SlashCommandItem
A single slash-command entry for the suggestion palette.
TaskPanelTransientRequest
TransientHotkey
WizardOverlayRequest
WizardStep
A single step in a wizard modal flow.

Enums§

ContentPart
Structured input content used by the TUI input/history systems.
DiffPreviewMode
Behavior mode for diff preview overlays.
EditingMode
Editing mode for the agent session.
InlineCommand
InlineEvent
InlineHeaderStatusTone
Status-badge tone used in header status indicators.
InlineLinkTarget
A clickable link target inside a transcript line.
InlineListSelection
Selection value returned from a list or wizard overlay.
InlineMessageKind
Message kind tag for inline transcript lines.
LayoutModeOverride
Override for responsive layout detection.
LocalAgentKind
OpenAIServiceTierChoice
ReasoningDisplayMode
Reasoning visibility behavior in the transcript.
RewindAction
Rewind action choices for the rewind overlay.
SessionSurface
Standalone surface preference for selecting inline vs alternate rendering.
TransientEvent
TransientHotkeyAction
TransientHotkeyKey
TransientRequest
TransientSelectionChange
TransientSubmission
TrustMode
Trust mode for diff preview - how to handle file edit approval
UiMode
UI mode variants for quick presets.
WizardModalMode
Wizard modal behavior variant.

Functions§

convert_style
Convert an anstyle::Style to an InlineTextStyle.
spawn_session_with_host
Spawn a session using defaults from a host adapter.
spawn_session_with_options
Spawn a session using standalone options and local config types.
theme_from_color_fields
Build an InlineTheme from individual theme colour fields.

Type Aliases§

FocusChangeCallback
InlineEventCallback