fix: thread listing (#10383)

This commit is contained in:
jif-oai
2026-02-02 13:52:49 +01:00
committed by GitHub
parent 4971e96a98
commit e9a774e7ae
2 changed files with 6 additions and 1 deletions

View File

@@ -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)
{