Restore phase when loading from history (#12244)

This commit is contained in:
Jack Mousseau
2026-02-19 09:56:56 -08:00
committed by GitHub
parent f2d5842ed1
commit 3a951f8096
15 changed files with 144 additions and 9 deletions

View File

@@ -169,6 +169,7 @@ async fn resumed_initial_messages_render_history() {
}),
EventMsg::AgentMessage(AgentMessageEvent {
message: "assistant reply".to_string(),
phase: None,
}),
]),
network_proxy: None,
@@ -3322,6 +3323,7 @@ async fn unified_exec_wait_after_final_agent_message_snapshot() {
id: "turn-1".into(),
msg: EventMsg::AgentMessage(AgentMessageEvent {
message: "Final response.".into(),
phase: None,
}),
});
chat.handle_codex_event(Event {
@@ -7013,6 +7015,7 @@ async fn multiple_agent_messages_in_single_turn_emit_multiple_headers() {
id: "s1".into(),
msg: EventMsg::AgentMessage(AgentMessageEvent {
message: "First message".into(),
phase: None,
}),
});
@@ -7021,6 +7024,7 @@ async fn multiple_agent_messages_in_single_turn_emit_multiple_headers() {
id: "s1".into(),
msg: EventMsg::AgentMessage(AgentMessageEvent {
message: "Second message".into(),
phase: None,
}),
});
@@ -7066,6 +7070,7 @@ async fn final_reasoning_then_message_without_deltas_are_rendered() {
id: "s1".into(),
msg: EventMsg::AgentMessage(AgentMessageEvent {
message: "Here is the result.".into(),
phase: None,
}),
});
@@ -7126,6 +7131,7 @@ async fn deltas_then_same_final_message_are_rendered_snapshot() {
id: "s1".into(),
msg: EventMsg::AgentMessage(AgentMessageEvent {
message: "Here is the result.".into(),
phase: None,
}),
});
@@ -7147,7 +7153,12 @@ async fn chatwidget_exec_and_status_layout_vt100_snapshot() {
let (mut chat, mut rx, _op_rx) = make_chatwidget_manual(None).await;
chat.handle_codex_event(Event {
id: "t1".into(),
msg: EventMsg::AgentMessage(AgentMessageEvent { message: "Im going to search the repo for where “Change Approved” is rendered to update that view.".into() }),
msg: EventMsg::AgentMessage(AgentMessageEvent {
message:
"Im going to search the repo for where “Change Approved” is rendered to update that view."
.into(),
phase: None,
}),
});
let command = vec!["bash".into(), "-lc".into(), "rg \"Change Approved\"".into()];