atuinsh/atuin · error

invalid tab index

Error message

invalid tab index

What it means

Error "invalid tab index" thrown in atuinsh/atuin.

Source

Thrown at crates/atuin/src/command/client/search/interactive.rs:1089

                        &stats.expect("Drawing inspector, but no stats"),
                        settings,
                        theme,
                        settings.timezone,
                    );
                }

                // HACK: I'm following up with abstracting this into the UI container, with a
                // sub-widget for search + for inspector
                let feedback = Paragraph::new(
                    "The inspector is new - please give feedback (good, or bad) at https://forum.atuin.sh",
                );
                f.render_widget(feedback, input_chunk);

                return;
            }

            _ => {
                panic!("invalid tab index");
            }
        }

        if !matches!(compactness, Compactness::Ultracompact) {
            let preview_width = match compactness {
                Compactness::Full => preview_width - 2,
                _ => preview_width,
            };
            let preview = self.build_preview(
                results,
                compactness,
                preview_width,
                preview_chunk.width.into(),
                theme,
            );
            #[allow(clippy::cast_possible_truncation)]
            let prefix_width = settings
                .ui

View on GitHub (pinned to 15fe1318f1)

Solutions

  1. Use a tab index within the range of open tabs in the interactive search UI.

When it happens

Trigger: Fires in the interactive search TUI when an internal tab index is out of range for the available tabs.

Common situations: See trigger scenarios.


AI-assisted analysis of atuinsh/atuin@15fe1318f1 (2026-08-19). Data as JSON: /api/errors/02fcbb879b3f1c5e. Report an issue: GitHub.