New install on my nas, and I figured I’d run atuin import auto. All the history shows up in the tui and can be selected with up/down arrows, but can’t be completed by typing. Is this intentional, or a bug?
I manually ran atuin setup (after mise use --global --force 'atuin[libc=musl]@latest and started the daemon. Then I manually added the init to zshrc (eval "$(atuin init zsh)") and sourced it. I was surprised that atuin setup didn’t modify my zshrc file.
Yeah… for several historical reasons, that work is split between the bash script and the setup command. In future releases, the command will handle everything.
Final question; if you start typing (and it freezes or shows nothing?) does it eventually show results if you wait for 10s of seconds?
I’m wondering if the indexing is taking a while and blocking somehow. Do you have a lot of history?
Ah sorry - it’s possible that I’m not being clear. New commands that I run get added the the history. E.g. type foobar, When I hit ctrl+r, type foo, I see foobar in the filtered list. Commands that were imported from history do not get completed. But they are visible
Actually, what’s worse is that running one of the commands previously imported still doesn’t add it to the completable commands, so some state is preventing all imported commands from ever being complted (they can be selected but not typed).
Yes. This looks like a daemon-index invalidation bug.
atuin setup enables search_mode = "daemon-fuzzy". The import command writes entries directly to history.db, but it never tells the running daemon to reload its in-memory search index. The daemon only builds that index at startup, or when certain daemon-owned operations rebuild it.
That matches the report closely: imported entries appear in the initial TUI list from SQLite, but typing queries the stale daemon index.
and gave me atuin daemon restart to run. Problem solved, bug possibly still there. But that suggests a possible repro check - install setup, daemon, import, see what happens.