{"record":{"id":"1c95c87c4db1be5e","repo":"zellij-org/zellij","slug":"tab-index-not-found","errorCode":null,"errorMessage":"Tab index {:?} not found","messagePattern":"Tab index (.+?) not found","errorType":"console","errorClass":"anyhow::Error","httpStatus":null,"severity":"error","filePath":"zellij-server/src/screen.rs","lineNumber":2135,"sourceCode":"                        .with_context(err_context)?;\n                        match (\n                            should_change_pane_focus,\n                            self.get_indexed_tab_mut(new_tab_index),\n                        ) {\n                            (Some(direction), Some(new_tab)) => {\n                                new_tab.focus_pane_on_edge(direction, client_id);\n                            },\n                            _ => {},\n                        }\n                        self.update_client_tab_focus(client_id, new_tab_index);\n                    }\n\n                    if let Some(current_tab) = self.get_indexed_tab_mut(current_tab_index) {\n                        if current_tab.has_no_connected_clients() {\n                            current_tab.visible(false).with_context(err_context)?;\n                        }\n                    } else {\n                        Err::<(), _>(anyhow!(\"Tab index {:?} not found\", current_tab_index))\n                            .with_context(err_context)\n                            .non_fatal();\n                    }\n\n                    // Clear tab bell notification for the newly active tab\n                    if let Some(new_tab) = self.tabs.get_mut(&new_tab_index) {\n                        let tab_id = new_tab.id;\n                        new_tab.clear_tab_bell_notification();\n                        let _ = self\n                            .bus\n                            .senders\n                            .send_to_background_jobs(BackgroundJob::StopFlashTabBell(tab_id));\n                    }\n\n                    self.recompute_tab_size(current_tab_index)\n                        .with_context(err_context)?;\n                    self.recompute_tab_size(new_tab_index)\n                        .with_context(err_context)?;","sourceCodeStart":2117,"sourceCodeEnd":2153,"githubUrl":"https://github.com/zellij-org/zellij/blob/474ea0cef620c83d6ec05a7c28c7f80c4f63bbbb/zellij-server/src/screen.rs#L2117-L2153","documentation":"Error \"Tab index {:?} not found\" thrown in zellij-org/zellij.","triggerScenarios":"Occurs at zellij-server/src/screen.rs:2048 when the operation fails: \"Tab index {:?} not found\". Currently there is no defensive handling preventing or contextualizing this failure before it surfaces.","commonSituations":"Race between tab close and a client attach/move action, or a stale tab index.","solutions":["Ensure at least one tab exists before attaching or moving clients.","Verify the tab index/name is valid with `zellij action query-tab-names`."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"474ea0cef620c83d6ec05a7c28c7f80c4f63bbbb","analyzedAt":"2026-08-19T07:42:58.758Z","contentChangedAt":"2026-08-19T07:42:58.758Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}