service

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 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 added in v1.16.0

func (s *SessionState) SetCurrentAgent(agentName string)

func (*SessionState) SetHideToolResults added in v1.16.0

func (s *SessionState) SetHideToolResults(enabled bool)

func (*SessionState) SetYoloMode added in v1.15.7

func (s *SessionState) SetYoloMode(enabled bool)

func (*SessionState) ToggleHideToolResults added in v1.16.0

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