Skip to content

Commit 16eafd0

Browse files
authored
fix: remove reference to /compact until it is implemented (#1503)
Do not mention `/compact` until #1257 is addressed.
1 parent c8051b9 commit 16eafd0

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

codex-rs/tui/src/bottom_pane/chat_composer.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,10 @@ impl ChatComposer<'_> {
9090
// percentage.
9191
100
9292
};
93-
if percent_remaining > 25 {
94-
format!("{BASE_PLACEHOLDER_TEXT} — {percent_remaining}% context left")
95-
} else {
96-
format!(
97-
"{BASE_PLACEHOLDER_TEXT} — {percent_remaining}% context left (consider /compact)"
98-
)
99-
}
93+
// When https://github.com/openai/codex/issues/1257 is resolved,
94+
// check if `percent_remaining < 25`, and if so, recommend
95+
// /compact.
96+
format!("{BASE_PLACEHOLDER_TEXT} — {percent_remaining}% context left")
10097
}
10198
(total_tokens, None) => {
10299
format!("{BASE_PLACEHOLDER_TEXT} — {total_tokens} tokens used")

0 commit comments

Comments
 (0)