Calling compact() in headless SDK sessions now returns a clear rejection instead of silently doing nothing
Headless sessions, meaning ones run with -p or through the SDK without the interactive terminal interface, now expose a compact() method, but calling it currently always fails with an explanatory error. That's because compaction in headless mode currently only happens inside a turn, triggered by a /compact prompt, not through a separate method call.
This gives headless and SDK users a clear, catchable error explaining that compact() isn't available yet in that mode, instead of it failing silently or behaving unpredictably, so they know to work around it for now.
Fixed resuming a session after /compact or another slash command ran via -p --resume: a spurious "Continue from where you left off." turn is…