From c0d2a6fac4dd1e95c536df43f4808f13ed49539f Mon Sep 17 00:00:00 2001 From: jif Date: Tue, 3 Nov 2026 13:15:17 +0000 Subject: [PATCH] Clarify token-count and screen-ownership arguments in tests (#59161) GitOrigin-RevId: 90687303b7a36d1da9b5233b3fe24fbf02abc7ce --- codex-rs/core/tests/suite/scenarios_guardian_reconsideration.rs | 2 +- codex-rs/tui/src/app/tests/key_chords.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/codex-rs/core/tests/suite/scenarios_guardian_reconsideration.rs b/codex-rs/core/tests/suite/scenarios_guardian_reconsideration.rs index c33aa10a86..cb1b7768a9 100644 --- a/codex-rs/core/tests/suite/scenarios_guardian_reconsideration.rs +++ b/codex-rs/core/tests/suite/scenarios_guardian_reconsideration.rs @@ -110,7 +110,7 @@ async fn guardian_denial_reconsideration( ev_assistant_message("first-assessment", &first_assessment.to_string()), // Cross the pre-turn compaction threshold. Reconsideration must preserve // the original evidence instead of issuing a compaction request. - ev_completed_with_tokens("first-review", 100_001), + ev_completed_with_tokens("first-review", /*total_tokens*/ 100_001), ]), ] .into_iter() diff --git a/codex-rs/tui/src/app/tests/key_chords.rs b/codex-rs/tui/src/app/tests/key_chords.rs index b49f16a8f9..0290827512 100644 --- a/codex-rs/tui/src/app/tests/key_chords.rs +++ b/codex-rs/tui/src/app/tests/key_chords.rs @@ -1170,7 +1170,7 @@ async fn key_capture_receives_voice_shortcut_and_chord_prefix() -> Result<()> { let mut app_server = start_config_write_test_app_server(&app).await?; let mut tui = crate::tui::test_support::make_test_tui()?; super::enable_side_retention(&mut app)?; - tui.set_owned_screen(true)?; + tui.set_owned_screen(/*owned*/ true)?; let parent = ThreadId::new(); app.active_thread_id = Some(parent); app.side_threads