(settings: ReadonlySettings)
| 28 | import { getCurrentWorktreeSession } from '../utils/worktree.js'; |
| 29 | import { isVimModeEnabled } from './PromptInput/utils.js'; |
| 30 | export function statusLineShouldDisplay(settings: ReadonlySettings): boolean { |
| 31 | // Assistant mode: statusline fields (model, permission mode, cwd) reflect the |
| 32 | // REPL/daemon process, not what the agent child is actually running. Hide it. |
| 33 | if (feature('KAIROS') && getKairosActive()) return false; |
| 34 | return settings?.statusLine !== undefined; |
| 35 | } |
| 36 | function buildStatusLineCommandInput(permissionMode: PermissionMode, exceeds200kTokens: boolean, settings: ReadonlySettings, messages: Message[], addedDirs: string[], mainLoopModel: ModelName, vimMode?: VimMode): StatusLineCommandInput { |
| 37 | const agentType = getMainThreadAgentType(); |
| 38 | const worktreeSession = getCurrentWorktreeSession(); |
no test coverage detected