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

Method windowTitle

pkg/tui/tui.go:2647–2649  ·  view source on GitHub ↗

windowTitle returns the terminal window title for the current model state. When the agent is working, a rotating spinner character is prepended so that terminal multiplexers (tmux) can detect activity in the pane.

()

Source from the content-addressed store, hash-verified

2645// When the agent is working, a rotating spinner character is prepended so that
2646// terminal multiplexers (tmux) can detect activity in the pane.
2647func (m *appModel) windowTitle() string {
2648 return formatWindowTitle(m.appName, m.sessionState.SessionTitle(), m.chatPage.IsWorking(), m.animFrame)
2649}
2650
2651// formatWindowTitle assembles the terminal window title string from the
2652// individual inputs that contribute to it. Pure function — extracted from the

Callers 1

ViewMethod · 0.95

Calls 3

formatWindowTitleFunction · 0.85
SessionTitleMethod · 0.65
IsWorkingMethod · 0.65

Tested by

no test coverage detected