Skip to content

fix(acp): register compact and summarize commands for visibility#31644

Open
szzhoujiarui-sketch wants to merge 3 commits into
anomalyco:devfrom
szzhoujiarui-sketch:260610-fix-compact-summarize-commands
Open

fix(acp): register compact and summarize commands for visibility#31644
szzhoujiarui-sketch wants to merge 3 commits into
anomalyco:devfrom
szzhoujiarui-sketch:260610-fix-compact-summarize-commands

Conversation

@szzhoujiarui-sketch

Copy link
Copy Markdown

Issue for this PR

Closes #31636

Type of change

  • Bug fix

What does this PR do?

Fixes the missing /compact and /summarize commands from the command autocomplete and /help list.

Root cause: These commands were implemented with special handling in the ACP service but were never registered in the Command service, so they didn't appear in the availableCommands list sent to the UI.

Changes:

  • Add COMPACT and SUMMARIZE to Command.Default constants
  • Register both commands in the Command service with descriptions
  • Update ACP service logic to preserve special handling (calling session.summarize API) while including them in the visible command list
  • Unit tests verifying commands appear in available_commands_update
  • Test for /summarize slash command behavior

Example: Users will now see:

  • /compact - compress session history to preserve key information
  • /summarize - generate a concise summary of the session

How did you verify your code works?

  • All 32 existing tests in test/acp/service-session.test.ts pass
  • Added 2 new tests:
    • includes compact and summarize in available commands - verifies commands appear in UI
    • summarize slash command calls summarize path - verifies /summarize behavior
  • Verified both commands still call the session.summarize API correctly

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

MonkeyCode-AI and others added 3 commits June 10, 2026 07:20
- Add progress tracking with stage-based updates
- Display download percentage, size, and speed for curl method
- Show progress messages for all installation methods
- Backward compatible with optional progress callback
- Fixes anomalyco#31623
Add /compact and /summarize to the default command registry so they appear in command autocomplete and /help. The commands maintain their special handling in ACP service (calling session.summarize API) while now being visible to users.

Changes:
- Add COMPACT and SUMMARIZE to Command.Default constants
- Register both commands in Command service with descriptions
- Update ACP service to exclude these commands from standard command path
- Add unit tests verifying commands appear in available_commands_update
- Add test for /summarize slash command behavior

Closes anomalyco#31636
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.

v1.17.0: /compact and /summarize commands are missing

2 participants