[Bug]: daemon-fuzzy multipliers are not working as expected
What did you expect to happen?
When one increases the recency_score_multiplier I don't expect commands that are multiple years old scored higher than 16 min old commands.
What happened?
I use atuin in daemon mode with the following settings:
search_mode = "daemon-fuzzy"
[daemon]
enabled = trueWhen I run atuin search -i --search-mode daemon-fuzzy (or Ctrl-R) and type dran I get:
[...]
1 2s 3y ago git dranpacken && git pfusch
> 0s 4y ago dig rancher.redacted.com
[ GLOBAL ] drandig rancher matches due to d and ran.
According to the documentation I can adjust the multipliers, which is great since I prefer recent commands. So I set:
[search]
recency_score_multiplier = 10.0
frequency_score_multiplier = 0.8
frecency_score_multiplier = 2.0After restarting the daemon, I repeated the search for dran. Newer git dranpacken calls appeared, but two 3y old commands are still the top entries, forcing me to type more:
[...]
3 1s 37m ago git dranpacken
2 2s 16m ago git dranpacken && git pfusch
1 205ms 3y ago dig rancher.redacted.com/
> 219ms 3y ago dig rancher.redacted.com
[ GLOBAL ] dranIs this what I should expect? I would think that the 3y old command now had a really low score compared to the git dranpacken of 16 min ago.
Atuin doctor output
Atuin Doctor
Checking for diagnostics
Please include the output below with any bug reports or issues
{
"atuin": {
"version": "18.23.0",
"commit": "NO_GIT",
"sync": {
"auth_state": "Self-hosted (authenticated)",
"auto_sync": true,
"last_sync": "2026-09-24 14:14:22.268527925 +00:00:00"
},
"sqlite_version": "3.53.4",
"daemon_enabled": true
},
"shell": {
"name": "zsh",
"default": "zsh",
"plugins": [
"atuin"
],
"preexec": "built-in"
},
"system": {
"os": "Arch Linux",
"arch": "x86_64",
"version": "rolling",
"disks": [
{
"name": "/dev/mapper/root",
"filesystem": "btrfs"
},
... (redacted)
]
}
}Code of Conduct
- I agree to follow this project's Code of Conduct
Source: atuinsh/atuin