Skip to content

armgit / codex

Public Imported from GitHub
0

Lightweight coding agent that runs in your terminal

Rust

fix: remove reference to /compact until it is implemented (#1503)

Michael Bolin16eafd02ad53
diff --git a/codex-rs/tui/src/bottom_pane/chat_composer.rs b/codex-rs/tui/src/bottom_pane/chat_composer.rs
index 8c690e9686..29bf74c810 100644
--- a/codex-rs/tui/src/bottom_pane/chat_composer.rs
+++ b/codex-rs/tui/src/bottom_pane/chat_composer.rs
@@ -90,13 +90,10 @@ impl ChatComposer<'_> {
// percentage.
100
};
- if percent_remaining > 25 {
- format!("{BASE_PLACEHOLDER_TEXT} — {percent_remaining}% context left")
- } else {
- format!(
- "{BASE_PLACEHOLDER_TEXT} — {percent_remaining}% context left (consider /compact)"
- )
- }
+ // When https://github.com/openai/codex/issues/1257 is resolved,
+ // check if `percent_remaining < 25`, and if so, recommend
+ // /compact.
+ format!("{BASE_PLACEHOLDER_TEXT} — {percent_remaining}% context left")
}
(total_tokens, None) => {
format!("{BASE_PLACEHOLDER_TEXT} — {total_tokens} tokens used")