atuinsh/atuin · error
bug in list query. please report
Error message
bug in list query. please report
What it means
Error "bug in list query. please report" thrown in atuinsh/atuin.
Solutions
- This is an internal query bug; report it with the command and filters you used.
When it happens
Trigger: Fires when the history list query returns inconsistent data, indicating an internal bug to report.
Common situations: See trigger scenarios.
AI-assisted analysis of atuinsh/atuin@15fe1318f1 (2026-08-19).
Data as JSON: /api/errors/3c3579445fbe8c16.
Report an issue: GitHub.
Appendix: source
Thrown at crates/atuin-client/src/database.rs:506
};
}
if unique {
query.group_by("command").having("max(timestamp)");
}
if let Some(max) = max {
query.limit(max);
}
// Inclusive on both ends, matching `range()`. `stats` relies on this to count a
// command recorded exactly on a period boundary (e.g. at midnight).
if let Some((from, to)) = range {
query.and_where_ge("timestamp", from.unix_timestamp_nanos() as i64);
query.and_where_le("timestamp", to.unix_timestamp_nanos() as i64);
}
let query = query.sql().expect("bug in list query. please report");
let res = sqlx::query(sqlx::AssertSqlSafe(query))
.map(Self::row_to_history)
.fetch_all(&self.pool)
.await?;
Ok(res)
}
pub async fn range(&self, from: OffsetDateTime, to: OffsetDateTime) -> Result<Vec<History>> {
debug!("listing history from {:?} to {:?}", from, to);
let res = sqlx::query(
"select * from history where timestamp >= ?1 and timestamp <= ?2 order by timestamp \
asc",
)
.bind(from.unix_timestamp_nanos() as i64)
.bind(to.unix_timestamp_nanos() as i64)View on GitHub (pinned to 15fe1318f1)