service

package
v1.15.8 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 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
	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.

Jump to

Keyboard shortcuts

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