compaction_status
Inspect the current compaction job state to catch unfinished work before scheduling, and to confirm exact outcomes and metrics after scheduling or cancellation.
Instructions
Read-only local job inspection. Run before probe_compaction or schedule_compaction to detect an unfinished job, and after scheduling or cancellation to inspect its exact outcome and metrics. It does not probe extension compatibility. scheduled, waiting_for_idle, requesting, and accepted are intermediate; completed requires a newly observed completed contextCompaction event. resumed identifies a returned continuation turn, not successful work. Missing or stale post-compaction telemetry can skip automatic continuation with insufficient_headroom.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| threadId | Yes | Current CODEX_THREAD_ID; obtain from the shell environment. Never guess or select a different thread. |