MCPcopy
hub / github.com/docker/docker-agent / SessionState

Struct SessionState

pkg/tui/service/sessionstate.go:49–60  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

47// This provides a centralized location for state that needs to be
48// accessible by multiple components.
49type SessionState struct {
50 splitDiffView bool
51 expandThinking bool
52 yoloMode bool
53 hideToolResults bool
54 sessionTitle string
55
56 previousMessage *types.Message
57 currentAgentName string
58 availableAgents []runtime.AgentDetails
59 pauseState PauseState
60}
61
62func NewSessionState(s *session.Session) *SessionState {
63 settings := userconfig.Get()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected