Skip to content

fix(tui): replace stale /connect hints with /provider#303

Merged
liruifengv merged 2 commits into
mainfrom
fix/replace-stale-connect-hints
Jun 2, 2026
Merged

fix(tui): replace stale /connect hints with /provider#303
liruifengv merged 2 commits into
mainfrom
fix/replace-stale-connect-hints

Conversation

@liruifengv
Copy link
Copy Markdown
Collaborator

Related Issue

No related issue. Follow-up cleanup spotted while syncing the 0.7.0 changelog: the /connect command was replaced by /provider, but stale /connect references were left behind. See the Problem section.

Problem

/connect is no longer a registered slash command (it was replaced by /provider), so invoking it now falls through to "Unknown slash command". Two user-facing hints still told users to run /connect:

  • the welcome screen ("Run /login or /connect to get started." and the "not set" model line), and
  • the "No models configured" notice.

Following those hints leads users to a command that does not exist. Dead handler code for the old command also remained in the tree.

What changed

  • Update the welcome screen and the no-models-configured notice to point to /provider instead of /connect.
  • Remove the orphaned /connect command handler, its catalog-argument parser, and that parser's unit test, plus the now-unused re-exports. The handler had no dispatch entry and was unreachable, so this changes no runtime behavior.

Verification: typecheck, oxlint --type-aware (0 errors), the TUI and CLI test suites (853 passing), and the CLI build all pass. A patch changeset is included.

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. — N/A: user-facing string fix plus removal of unreachable dead code; existing TUI/CLI suites still pass.
  • Ran gen-changesets skill, or this PR needs no changeset. — Added a patch changeset for @moonshot-ai/kimi-code.
  • Ran gen-docs skill, or this PR needs no doc update. — The docs already document /provider; no current-command reference to /connect remains.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jun 2, 2026

🦋 Changeset detected

Latest commit: 7d455c7

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

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Jun 2, 2026

pnpm dlx https://pkg.pr.new/@moonshot-ai/kimi-code@7d455c7
npx https://pkg.pr.new/@moonshot-ai/kimi-code@7d455c7

commit: 7d455c7

@liruifengv liruifengv merged commit 3d7e20e into main Jun 2, 2026
8 checks passed
@liruifengv liruifengv deleted the fix/replace-stale-connect-hints branch June 2, 2026 04:04
@github-actions github-actions Bot mentioned this pull request Jun 2, 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