I think it’s a weird UX behavior.
It would be nice to be able to disable this behavior by config like ‘display_current_module_in_all_visible_group_tab’ => false
if (!isset($sugar_config['display_current_module_in_all_visible_group_tab']) ||
$sugar_config['display_current_module_in_all_visible_group_tab']) {
$topTabs[$moduleTab] = $app_list_strings['moduleList'][$moduleTab];
if (count($topTabs) >= $max_tabs - 1) {
$extraTabs[$moduleTab] = $app_list_strings['moduleList'][$moduleTab];
}