import type { LineAction } from '../../../ui/chat/layout-model'

export function shouldRefocusInputAfterLineClick(action: LineAction): boolean {
  switch (action.type) {
    case 'selectToolCall':
    case 'selectToolCallGroup':
    case 'toggleCollapse':
    case 'toggleBashOutput':
    case 'loadMoreBashOutput':
    case 'toggleEditDiffLayout':
      return false
    default:
      return true
  }
}
