Skip to content

feat(cli): add /compact command - #386

Merged
qorzj merged 2 commits into
mainfrom
add-compact-slash-command
Oct 26, 2026
Merged

qorzj merged 2 commits into
mainfrom
add-compact-slash-command

Conversation

@qorzj

@qorzj qorzj commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Adds /compact to manually summarize the active conversation and reduce context usage while keeping the displayed history. After compaction, the CLI waits for the next user input.

  • Supports command completion, progress and completion messages, and Esc cancellation without interrupting background processes.
  • Handles missing sessions, unchanged conversations, and failures; updates context usage after success.
  • Documents the command in the Chinese and English READMEs and the bundled reference.

Validation: npm run check and npm test (857 passed, 2 skipped).

Closes #384

@qorzj
qorzj merged commit 49d2782 into main Oct 26, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature request: add a manual context compaction command like /compact

1 participant