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.
Click to show internal directories.
Click to hide internal directories.