You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After triggering Atuin via the up-arrow key in Zsh, I expected the terminal to:
Restore the prompt correctly (with proper spacing and cursor alignment)
Display any injected command output with correct line breaks and formatting
Leave the terminal in a usable, sane state without requiring reset or restart
What happened?
When Atuin's interactive TUI is triggered via the up-arrow key and then exited (by selecting a command or pressing escape):
The shell prompt becomes misaligned, with the $ symbol indented or offset.
The output of the restored command is broken, with incorrect line breaks or spacing.
This corruption persists until the terminal is reset or restarted.
The issue occurs even in a clean Zsh environment (zsh -f) with no plugins or theme, and is reproducible in both Alacritty and macOS Terminal.
The root cause seems to be Atuin leaving the terminal in an inconsistent TTY state after exiting its TUI interface—likely failing to reset stty flags or restore from raw mode.
Temporary Workaround
Adding the following functions to .zshrc (after eval "$(atuin init zsh)") resolves the issue by manually resetting the terminal before and after each command:
What did you expect to happen?
After triggering Atuin via the up-arrow key in Zsh, I expected the terminal to:
Restore the prompt correctly (with proper spacing and cursor alignment)
Display any injected command output with correct line breaks and formatting
Leave the terminal in a usable, sane state without requiring reset or restart
What happened?
When Atuin's interactive TUI is triggered via the up-arrow key and then exited (by selecting a command or pressing escape):
The issue occurs even in a clean Zsh environment (zsh -f) with no plugins or theme, and is reproducible in both Alacritty and macOS Terminal.
The root cause seems to be Atuin leaving the terminal in an inconsistent TTY state after exiting its TUI interface—likely failing to reset stty flags or restore from raw mode.
Temporary Workaround
Adding the following functions to .zshrc (after eval "$(atuin init zsh)") resolves the issue by manually resetting the terminal before and after each command:
This restores prompt and output correctness, but is not ideal.
Atuin doctor output
Code of Conduct
The text was updated successfully, but these errors were encountered: