SessionState holds shared state across the TUI application. This provides a centralized location for state that needs to be accessible by multiple components.
| 47 | // This provides a centralized location for state that needs to be |
| 48 | // accessible by multiple components. |
| 49 | type 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 | |
| 62 | func NewSessionState(s *session.Session) *SessionState { |
| 63 | settings := userconfig.Get() |
nothing calls this directly
no outgoing calls
no test coverage detected