Skip to content

fix(cli): set process title to kimi-code - #407

Merged
liruifengv merged 2 commits into
mainfrom
liruifeng/set-cli-process-title
Jun 4, 2026
Merged

fix(cli): set process title to kimi-code#407
liruifengv merged 2 commits into
mainfrom
liruifeng/set-cli-process-title

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue; this fixes process identification for npm-launched CLI sessions.

Problem

When Kimi Code is launched through npm, the operating system can show the underlying Node process instead of a stable CLI-specific process title. That makes Activity Monitor, process searches, and monitoring scripts harder to interpret.

What changed

The CLI now defines a dedicated process-name constant and sets process.title to kimi-code at startup. A CLI entry test covers the startup behavior, and a patch changeset records the user-visible fix.

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.

Validation

  • pnpm exec vitest run apps/kimi-code/test/cli/main.test.ts apps/kimi-code/test/tui/kimi-tui-message-flow.test.ts
  • pnpm --filter @moonshot-ai/kimi-code typecheck
  • git diff --check
  • Read-only diff audit found no context-specific internal identifiers.

@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d254660

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

pkg-pr-new Bot commented Jun 4, 2026

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

commit: d254660

@liruifengv
liruifengv merged commit 07609b4 into main Jun 4, 2026
8 checks passed
@liruifengv
liruifengv deleted the liruifeng/set-cli-process-title branch June 4, 2026 06:13
@github-actions github-actions Bot mentioned this pull request Jun 4, 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