From 5bf6e571cbd48cc992d2cfc7bf3a2bdb2f4b9011 Mon Sep 17 00:00:00 2001 From: Ben Brandt Date: Mon, 16 Mar 2026 23:12:30 +0100 Subject: [PATCH] agent_ui: Fix non-compiling tests (#51715) Release Notes: - N/A --- crates/agent_ui/src/agent_panel.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/agent_ui/src/agent_panel.rs b/crates/agent_ui/src/agent_panel.rs index 592a8b9e24277d4679a05c02acb68d0b3da4b6a6..e6dc1b8148067503554fbdf71a414782f805b850 100644 --- a/crates/agent_ui/src/agent_panel.rs +++ b/crates/agent_ui/src/agent_panel.rs @@ -6411,7 +6411,7 @@ mod tests { // open_external_thread_with_server overrides selected_agent_type. panel.update(cx, |panel, cx| { panel.selected_agent_type = AgentType::Custom { - name: CODEX_NAME.into(), + id: CODEX_ID.into(), }; panel.set_start_thread_in(&StartThreadIn::NewWorktree, cx); }); @@ -6421,7 +6421,7 @@ mod tests { assert_eq!( panel.selected_agent_type, AgentType::Custom { - name: CODEX_NAME.into() + id: CODEX_ID.into() }, ); }); @@ -6466,7 +6466,7 @@ mod tests { assert_eq!( found_codex, AgentType::Custom { - name: CODEX_NAME.into() + id: CODEX_ID.into() }, "the new worktree workspace should use the same agent (Codex) that was selected in the original panel", );