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

Struct StaticSessionState

pkg/tui/service/staticsessionstate.go:14–19  ·  view source on GitHub ↗

StaticSessionState is a SessionStateReader with fixed, conservative values for embedders that render message and tool views outside the full TUI application: unified (non-split) diff view, collapsed thinking, tool results shown, no yolo mode. Embed or use it directly instead of hand-rolling a stub,

Source from the content-addressed store, hash-verified

12// hand-rolling a stub, so views keep working with sensible defaults when
13// the reader interface grows.
14type StaticSessionState struct {
15 // AgentName is returned by CurrentAgentName.
16 AgentName string
17 // Title is returned by SessionTitle.
18 Title string
19}
20
21var _ SessionStateReader = StaticSessionState{}
22

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected