Lightweight coding agent that runs in your terminal
Rust
fix: thread listing (#10383)
jif-oaie9a774e7aebf
diff --git a/codex-rs/core/src/rollout/list.rs b/codex-rs/core/src/rollout/list.rsindex 18e862c7f0..a66986724a 100644--- a/codex-rs/core/src/rollout/list.rs+++ b/codex-rs/core/src/rollout/list.rs@@ -983,6 +983,11 @@ async fn read_head_summary(path: &Path, head_limit: usize) -> io::Result<HeadTai.created_at.clone().or_else(|| Some(rollout_line.timestamp.clone()));+ if let codex_protocol::models::ResponseItem::Message { role, .. } = &item+ && role == "user"+ {+ summary.saw_user_event = true;+ }if summary.head.len() < head_limit&& let Ok(val) = serde_json::to_value(item){diff --git a/codex-rs/core/src/state_db.rs b/codex-rs/core/src/state_db.rsindex 3e5beaa87e..a52f46593a 100644--- a/codex-rs/core/src/state_db.rs+++ b/codex-rs/core/src/state_db.rs@@ -277,7 +277,7 @@ pub async fn apply_rollout_items(pub fn record_discrepancy(stage: &str, reason: &str) {// We access the global metric because the call sites might not have access to the broader// OtelManager.- tracing::warn!("state db record_discrepancy: {stage}{reason}");+ tracing::warn!("state db record_discrepancy: {stage}, {reason}");if let Some(metric) = codex_otel::metrics::global() {let _ = metric.counter(DB_METRIC_COMPARE_ERROR,