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.
()
| 2645 | // When the agent is working, a rotating spinner character is prepended so that |
| 2646 | // terminal multiplexers (tmux) can detect activity in the pane. |
| 2647 | func (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 |
no test coverage detected