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

Method initAndFocusComponents

pkg/tui/tui.go:585–593  ·  view source on GitHub ↗

initAndFocusComponents returns a batch of commands that initializes and focuses the active chat page and editor, then resizes everything.

()

Source from the content-addressed store, hash-verified

583// initAndFocusComponents returns a batch of commands that initializes and focuses
584// the active chat page and editor, then resizes everything.
585func (m *appModel) initAndFocusComponents() tea.Cmd {
586 m.reapplyKeyboardEnhancements()
587 return tea.Batch(
588 m.chatPage.Init(),
589 m.editor.Init(),
590 m.editor.Focus(),
591 m.resizeAll(),
592 )
593}
594
595func (m *appModel) contextShutdownCmd() tea.Cmd {
596 return func() tea.Msg {

Callers 2

handleLoadSessionMethod · 0.95
replaceActiveSessionMethod · 0.95

Calls 5

resizeAllMethod · 0.95
BatchMethod · 0.80
InitMethod · 0.65
FocusMethod · 0.65

Tested by

no test coverage detected