mirror of
https://github.com/openai/codex.git
synced 2026-11-27 23:31:09 +00:00
Remove the done prefix from TUI completion timestamps (#46067)
## What changed Render completion footers as `2:32 PM` or `Worked for 2m 5s · 2:32 PM`, with the existing date formatting for older completions. Update test helpers to identify completion footer cells by type when normalizing or excluding timestamps, preserving message text that resembles a completion footer. ## Testing Update completion label and transcript snapshots, and add assertions that timestamp normalization preserves ordinary message text while normalizing completion footer cells. GitOrigin-RevId: 35f1658db02f8527212c006fd7492b574a105304
This commit is contained in:
1 parent
40584fad87
commit
e22e6523eb
25 files changed
+157
-144
No files matched your search
@@ -2180,16 +2180,14 @@ async fn slash_export_opens_destination_picker() {
|
||||
}
|
||||
chat.add_error_message("Copy failed: clipboard unavailable".to_string());
|
||||
chat.add_error_message("Export failed: missing parent".to_string());
|
||||
let cells = drain_insert_history(&mut rx);
|
||||
let cells = drain_insert_history_normalized(&mut rx);
|
||||
assert_chatwidget_snapshot!(
|
||||
"slash_export_completion_message",
|
||||
normalize_completion_timestamps(
|
||||
cells
|
||||
.iter()
|
||||
.map(|cell| lines_to_single_string(cell).trim().to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n")
|
||||
),
|
||||
cells
|
||||
.iter()
|
||||
.map(|cell| lines_to_single_string(cell).trim().to_string())
|
||||
.collect::<Vec<_>>()
|
||||
.join("\n"),
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user