Nudge users toward auto-compaction

This commit is contained in:
Abhinav Vedmala
2026-05-24 09:54:54 -07:00
parent 9f42c89c01
commit 80f5356bba
3 changed files with 6 additions and 3 deletions
+1 -1
View File
@@ -288,7 +288,7 @@ async fn run_compact_task_inner_impl(
sess.emit_turn_item_completed(&turn_context, compaction_item)
.await;
let warning = EventMsg::Warning(WarningEvent {
message: "Heads up: Long threads and multiple compactions can cause the model to be less accurate. Start a new thread when possible to keep threads small and targeted.".to_string(),
message: "Heads up: Codex automatically compacts long conversations".to_string(),
});
sess.send_event(&turn_context, warning).await;
Ok(summary_suffix)
+2 -1
View File
@@ -76,7 +76,8 @@ const FUNCTION_CALL_LIMIT_MSG: &str = "function call limit push";
const POST_AUTO_USER_MSG: &str = "post auto follow-up";
const PRETURN_CONTEXT_DIFF_CWD: &str = "/tmp/PRETURN_CONTEXT_DIFF_CWD";
pub(super) const COMPACT_WARNING_MESSAGE: &str = "Heads up: Long threads and multiple compactions can cause the model to be less accurate. Start a new thread when possible to keep threads small and targeted.";
pub(super) const COMPACT_WARNING_MESSAGE: &str =
"Heads up: Codex automatically compacts long conversations";
fn ev_shell_command_call(call_id: &str, command: &str) -> serde_json::Value {
ev_function_call(
+3 -1
View File
@@ -82,7 +82,9 @@ impl SlashCommand {
SlashCommand::Feedback => "send logs to maintainers",
SlashCommand::New => "start a new chat during a conversation",
SlashCommand::Init => "create an AGENTS.md file with instructions for Codex",
SlashCommand::Compact => "summarize conversation to prevent hitting the context limit",
SlashCommand::Compact => {
"summarize conversation to prevent hitting the context limit, we recommend relying on auto-compaction"
}
SlashCommand::Review => "review my current changes and find issues",
SlashCommand::Rename => "rename the current thread",
SlashCommand::Resume => "resume a saved chat",