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. // percentage.
100 100
}; };
if percent_remaining > 25 { // When https://github.com/openai/codex/issues/1257 is resolved,
format!("{BASE_PLACEHOLDER_TEXT}{percent_remaining}% context left") // check if `percent_remaining < 25`, and if so, recommend
} else { // /compact.
format!( format!("{BASE_PLACEHOLDER_TEXT}{percent_remaining}% context left")
"{BASE_PLACEHOLDER_TEXT}{percent_remaining}% context left (consider /compact)"
)
}
} }
(total_tokens, None) => { (total_tokens, None) => {
format!("{BASE_PLACEHOLDER_TEXT}{total_tokens} tokens used") format!("{BASE_PLACEHOLDER_TEXT}{total_tokens} tokens used")