Documentation
¶
Overview ¶
Package tabstate holds the state shared by a tab and its runtime subscription.
Index ¶
- type State
- func (s *State) Acknowledge()
- func (s *State) Apply(msg tea.Msg, active bool) (changed, bell bool)
- func (s *State) ClearAttention()
- func (s *State) Consume() tea.Msg
- func (s *State) Prepend(event tea.Msg)
- func (s *State) ReplaceSession(sessionID string)
- func (s *State) RetiresAttention(boundary, event tea.Msg) bool
- func (s *State) SessionID() string
- func (s *State) SetTitle(title string)
- func (s *State) Snapshot() (title string, running, needsAttention bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
// contains filtered or unexported fields
}
State is updated by the TUI event loop and read by supervisor snapshots. Its methods are safe for concurrent snapshot readers.
func (*State) Acknowledge ¶
func (s *State) Acknowledge()
func (*State) ClearAttention ¶
func (s *State) ClearAttention()
ClearAttention retires prompts even when reloading the same conversation.
func (*State) Prepend ¶
Prepend restores an already-seen dialog without raising a new attention indicator.
func (*State) ReplaceSession ¶
ReplaceSession retires attention belonging to the previous conversation.
func (*State) RetiresAttention ¶
RetiresAttention applies the same boundary policy to parked and open dialogs.
Click to show internal directories.
Click to hide internal directories.