service

package
v1.18.4 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 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 SessionState

type SessionState struct {
	// SplitDiffView determines whether diff views should be shown side-by-side (true)
	// or unified (false)
	SplitDiffView   bool
	YoloMode        bool
	HideToolResults bool
	PreviousMessage *types.Message
	// CurrentAgent is the name of the currently active agent for user messages
	CurrentAgent string
}

SessionState holds shared state across the TUI application. This provides a centralized location for state that needs to be accessible by multiple components.

func NewSessionState

func NewSessionState(sessionState *session.Session) *SessionState

NewSessionState creates a new SessionState with default values.

func (*SessionState) SetCurrentAgent

func (s *SessionState) SetCurrentAgent(agentName string)

func (*SessionState) SetHideToolResults

func (s *SessionState) SetHideToolResults(enabled bool)

func (*SessionState) SetYoloMode

func (s *SessionState) SetYoloMode(enabled bool)

func (*SessionState) ToggleHideToolResults

func (s *SessionState) ToggleHideToolResults()

func (*SessionState) ToggleSplitDiffView

func (s *SessionState) ToggleSplitDiffView()

ToggleSplitDiffView toggles between split and unified diff view modes.

Jump to

Keyboard shortcuts

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