Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions cecli/commands/compact.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ async def execute(cls, io, coder, args, **kwargs):
message = args.strip() if args else ""
await coder.compact_context_if_needed(force=True, message=message)

# CLI-71: compaction is a command, so run_one() returns early after it.
# Set the drain flag so any queued prompts process automatically once
# compaction finishes, instead of stalling until a manual /run-queue.
coder._drain_queue_after_command = True

@classmethod
def get_help(cls) -> str:
return "Force compaction of the chat history context."
Loading