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:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user