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

Do not mention `/compact` until
https://github.com/openai/codex/issues/1257 is addressed.
This commit is contained in:
Michael Bolin
2025-07-10 11:23:35 -07:00
committed by GitHub
parent c8051b906f
commit 16eafd02ad

View File

@@ -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")