schedule_compaction
After user approval, schedule a conversation compaction using a customizable handoff that keeps important facts, discards redundant history, and optionally continues the authorized task once.
Instructions
Schedule ONE compaction after this answer. Only when the user authorizes compaction. Optional handoff describes what to keep/summarize and is saved exactly in a per-job file. resume:true explicitly requests ONE subsequent turn with that handoff and nextStep; use only for authorized continuation. Cancels on observed new user input or a stopped turn. Return the handoff in context before finishing. Compaction prompt itself is not overridden. Check status later; no automatic retries.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| handoff | No | ||
| threadId | Yes | Current CODEX_THREAD_ID; obtain from the shell environment. Never guess or select a different thread. |