Skip to content

fix(web): prefix non-built-in session skills with skill: in slash menu#1060

Open
djfch wants to merge 3 commits into
MoonshotAI:mainfrom
djfch:fix/web-skill-slash-prefix
Open

fix(web): prefix non-built-in session skills with skill: in slash menu#1060
djfch wants to merge 3 commits into
MoonshotAI:mainfrom
djfch:fix/web-skill-slash-prefix

Conversation

@djfch

@djfch djfch commented Jun 24, 2026

Copy link
Copy Markdown

Related Issue

N/A — direct UX inconsistency report.

Problem

In the web UI, typing /skill in the composer only showed skills whose names happened to contain the substring "skill". In the CLI/TUI, the same query lists every non-built-in session skill because they are rendered as /skill:<name>. This made the web slash menu appear to have far fewer skills than the CLI.

What changed

  • Updated apps/kimi-web/src/lib/slashCommands.ts so that session skills with a non-builtin source are shown as /skill:<name>, matching the TUI behavior. Built-in skills still render as /<name>.
  • Added/updated unit tests in apps/kimi-web/test/slash-menu.test.ts to cover both built-in and non-built-in skill slash names, and to verify that /skill filters the full non-built-in skill list.
  • Generated a patch changeset for the CLI release artifact, since the web app is bundled into @moonshot-ai/kimi-code.

Checklist

  • I have read the CONTRIBUTING document.
  • I have explained the problem above (no linked issue).
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill.
  • Ran gen-docs skill — no user-facing doc update needed for this minor UI consistency fix.

@changeset-bot

changeset-bot Bot commented Jun 24, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 4fe8cc5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@moonshot-ai/kimi-code Patch

Not sure what this means? Click here to learn what changesets are.

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

@chatgpt-codex-connector chatgpt-codex-connector Bot 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.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 8720d9076c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread apps/kimi-web/src/lib/slashCommands.ts
@djfch djfch force-pushed the fix/web-skill-slash-prefix branch from 8720d90 to ee1ec54 Compare June 24, 2026 04:27
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.

1 participant