Fix BTW argument-comment lint

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Charles Cunningham
2026-03-24 15:34:50 -07:00
co-authored by Codex
parent 2b71d1ea20
commit a08e852b05
4 changed files with 14 additions and 8 deletions
+6 -3
View File
@@ -14,7 +14,7 @@ impl App {
/// Keeps BTW-specific UI state in sync with the currently displayed thread.
pub(super) fn sync_btw_thread_ui(&mut self) {
let clear_btw_ui = |chat_widget: &mut crate::chatwidget::ChatWidget| {
chat_widget.set_thread_footer_hint_override(None);
chat_widget.set_thread_footer_hint_override(/*items*/ None);
chat_widget.clear_thread_rename_block();
};
let Some(active_thread_id) = self.current_displayed_thread_id() else {
@@ -163,8 +163,11 @@ impl App {
parent_thread_id: ThreadId,
user_message: crate::chatwidget::UserMessage,
) -> Result<AppRunControl> {
self.session_telemetry
.counter("codex.thread.btw", 1, &[("source", "slash_command")]);
self.session_telemetry.counter(
"codex.thread.btw",
/*inc*/ 1,
&[("source", "slash_command")],
);
self.refresh_in_memory_config_from_disk_best_effort("starting a BTW subagent")
.await;
let parent_rollout_path = match self.server.get_thread(parent_thread_id).await {
+1 -1
View File
@@ -11905,7 +11905,7 @@ async fn clearing_thread_footer_override_preserves_general_footer_hint_snapshot(
"BTW".to_string(),
"from main thread · Esc to return".to_string(),
)]));
chat.set_thread_footer_hint_override(None);
chat.set_thread_footer_hint_override(/*items*/ None);
let width = 80;
let height = chat.desired_height(width);
+6 -3
View File
@@ -13,7 +13,7 @@ pub(super) struct BtwThreadState {
impl App {
pub(super) fn sync_btw_thread_ui(&mut self) {
let clear_btw_ui = |chat_widget: &mut crate::chatwidget::ChatWidget| {
chat_widget.set_thread_footer_hint_override(None);
chat_widget.set_thread_footer_hint_override(/*items*/ None);
chat_widget.clear_thread_rename_block();
};
let Some(active_thread_id) = self.current_displayed_thread_id() else {
@@ -183,8 +183,11 @@ impl App {
parent_thread_id: ThreadId,
user_message: crate::chatwidget::UserMessage,
) -> Result<AppRunControl> {
self.session_telemetry
.counter("codex.thread.btw", 1, &[("source", "slash_command")]);
self.session_telemetry.counter(
"codex.thread.btw",
/*inc*/ 1,
&[("source", "slash_command")],
);
self.refresh_in_memory_config_from_disk_best_effort("starting a BTW subagent")
.await;
@@ -12317,7 +12317,7 @@ async fn clearing_thread_footer_override_preserves_general_footer_hint_snapshot(
"BTW".to_string(),
"from main thread · Esc to return".to_string(),
)]));
chat.set_thread_footer_hint_override(None);
chat.set_thread_footer_hint_override(/*items*/ None);
let width = 80;
let height = chat.desired_height(width);