Skip to content

fix: polish plugin manager hints - #164

Merged
wbxl2000 merged 2 commits into
mainfrom
qer/plugins-ui-hints
May 28, 2026
Merged

fix: polish plugin manager hints#164
wbxl2000 merged 2 commits into
mainfrom
qer/plugins-ui-hints

Conversation

@wbxl2000

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue; this addresses plugin manager UX cleanup from review feedback.

Problem

The interactive /plugins manager mixed keyboard shortcuts into muted text and reported enable/disable changes as transcript status lines, which made repeated plugin toggles noisy and harder to scan.

What changed

  • Highlight plugin manager shortcut keys, using the error color for destructive remove actions.
  • Show interactive plugin and MCP server toggle results inline next to the selected item instead of appending success messages to the transcript.
  • Keep command-style /plugins actions reporting status in the transcript, where there is no active picker item to update.
  • Add a patch changeset for the CLI.

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked a related issue, or explained the problem above.
  • I have added tests that prove my feature works.
  • Ran gen-changesets skill, or this PR needs no changeset.
  • Ran gen-docs skill, or this PR needs no doc update.

Test Plan

  • pnpm exec vitest run apps/kimi-code/test/tui/components/dialogs/plugins-selector.test.ts apps/kimi-code/test/tui/components/dialogs/choice-picker.test.ts apps/kimi-code/test/tui/kimi-tui-message-flow.test.ts
  • pnpm --filter @moonshot-ai/kimi-code run typecheck
  • pnpm exec oxlint apps/kimi-code/src/tui/components/dialogs/plugins-selector.ts apps/kimi-code/src/tui/components/dialogs/choice-picker.ts apps/kimi-code/src/tui/kimi-tui.ts apps/kimi-code/test/tui/components/dialogs/plugins-selector.test.ts apps/kimi-code/test/tui/kimi-tui-message-flow.test.ts

@changeset-bot

changeset-bot Bot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: be5397d

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

@wbxl2000
wbxl2000 force-pushed the qer/plugins-ui-hints branch from e2dd428 to e14eaf3 Compare May 28, 2026 12:54
@pkg-pr-new

pkg-pr-new Bot commented May 28, 2026

Copy link
Copy Markdown
pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@be5397d
npx https://pkg.pr.new/@moonshot-ai/kimi-code@be5397d

commit: be5397d

@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: e14eaf31f3

ℹ️ 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 on lines +321 to +324
await showPluginMcpPicker(host, selection.pluginId, {
server: selection.server,
text: pluginInlineChangeHint(selection.enabled),
});

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve the toggled MCP server selection

When toggling an MCP server other than the first one, this remounts the MCP picker with only a serverHint; PluginMcpSelectorComponent still initializes selectedIndex to 0, so focus jumps back to the first server while the inline success text appears on the toggled row. Because this change also removes the transcript status for interactive toggles, a user who presses Space again expecting to undo the same server can silently toggle the first server instead. Pass the toggled server through as the selected item, similar to the overview picker's selectedId, before remounting.

Useful? React with 👍 / 👎.

@wbxl2000

Copy link
Copy Markdown
Collaborator Author
cd48cbca-d3c7-4d4b-befd-cdb987e69cf6

@wbxl2000

Copy link
Copy Markdown
Collaborator Author

@codex

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Already looking forward to the next diff.

ℹ️ 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".

@wbxl2000
wbxl2000 merged commit 0a76658 into main May 28, 2026
6 checks passed
@wbxl2000
wbxl2000 deleted the qer/plugins-ui-hints branch May 28, 2026 13:18
@github-actions github-actions Bot mentioned this pull request May 28, 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.

1 participant