diff --git a/atuin-client/src/kv.rs b/atuin-client/src/kv.rs
index 021b73aa..de3aa2fc 100644
--- a/atuin-client/src/kv.rs
+++ b/atuin-client/src/kv.rs
@@ -101,7 +101,10 @@ impl KvStore {
let bytes = record.serialize()?;
- let parent = store.tail(host_id, KV_TAG).await?.map(|entry| entry.id);
+ let parent = store
+ .tail(Some(host_id), KV_TAG)
+ .await?
+ .map(|entry| entry.id);
let record = atuin_common::record::Record::builder()
.host(host_id)
@@ -127,15 +130,12 @@ impl KvStore {
namespace: &str,
key: &str,
) -> Result