mirror of
https://github.com/openai/codex.git
synced 2026-11-03 19:53:25 +00:00
Fix BTW argument-comment lint
Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
co-authored by
Codex
parent
2b71d1ea20
commit
a08e852b05
@@ -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 {
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user