Skip to content

docs: add missing slash commands to reference#516

Closed
jimpablo wants to merge 1 commit into
MoonshotAI:mainfrom
jimpablo:docs/slash-commands-add-missing
Closed

docs: add missing slash commands to reference#516
jimpablo wants to merge 1 commit into
MoonshotAI:mainfrom
jimpablo:docs/slash-commands-add-missing

Conversation

@jimpablo

@jimpablo jimpablo commented Jun 7, 2026

Copy link
Copy Markdown

Problem

The slash command reference (docs/{en,zh}/reference/slash-commands.md) was
out of sync with the command registry (apps/kimi-code/src/tui/commands/registry.ts):

  • /undo is a registered built-in command but was listed in neither the English
    nor the Chinese reference. It was added in feat: add /undo slash command and keep replay in sync #277, which never updated the reference.
  • /reload and /reload-tui were listed in the English reference but missing
    from the Chinese one.

Users reading the reference could not discover these commands.

What changed

  • Added /undo [<count>] to the Session Management table in both en and zh.
  • Restored the missing /reload / /reload-tui rows in zh to match en.
  • Kept the en/zh tables in the same row order.

Documentation only — no code or behavior change.

Checklist

  • I have read the CONTRIBUTING document.
  • Explained the problem above (docs-only change, no issue required).
  • Tests — N/A, documentation only.
  • No changeset needed (docs-only).
  • This is the doc update.

The slash command reference omitted /undo entirely (en and zh), and the
zh version was also missing /reload and /reload-tui that already exist in
the en version. /undo was added in MoonshotAI#277 but never documented in the
reference. All three are registered built-in commands, so add the missing
rows and keep the en/zh tables in the same order.
Copilot AI review requested due to automatic review settings June 7, 2026 10:14
@changeset-bot

changeset-bot Bot commented Jun 7, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 0722ec0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds documentation entries for new/previously missing slash commands in the reference tables.

Changes:

  • Document /undo [<count>] in both English and Chinese references.
  • Add missing /reload and /reload-tui rows to the Chinese reference.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
docs/zh/reference/slash-commands.md Adds /undo, /reload, and /reload-tui rows to the Chinese slash command reference table.
docs/en/reference/slash-commands.md Adds the /undo row to the English slash command reference table.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| `/fork` | — | Fork a new session from the current one, preserving the full conversation history | No |
| `/title [<text>]` | `/rename` | Without arguments, display the current session title; with an argument, set a new title (max 200 characters) | Yes |
| `/compact [<instruction>]` | — | Compact the current conversation context to free up token usage; an optional custom instruction can hint to the model what to preserve | No |
| `/undo [<count>]` | — | Withdraw the last prompt from the conversation history, along with the responses that followed it; pass a positive integer to undo that many prompts | No |
@jimpablo

jimpablo commented Jun 9, 2026

Copy link
Copy Markdown
Author

Consolidated into #577 for easier review (single focused PR for the missing slash-command rows). Closing this in favor of that one.

@jimpablo jimpablo closed this Jun 9, 2026
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.

2 participants