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
PreviousMessage *types.Message
}
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) SetYoloMode ¶ added in v1.15.7
func (s *SessionState) SetYoloMode(enabled bool)
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.