Skip to content

feat(core): set process titles for CLI and web workers#1254

Merged
RealKai42 merged 3 commits intomainfrom
kaiyi/terminal-process-name
Feb 26, 2026
Merged

feat(core): set process titles for CLI and web workers#1254
RealKai42 merged 3 commits intomainfrom
kaiyi/terminal-process-name

Conversation

@RealKai42
Copy link
Copy Markdown
Collaborator

@RealKai42 RealKai42 commented Feb 26, 2026

Summary

  • add a new process-title utility and initialize the main CLI process title as Kimi Code
  • label web worker subprocesses as kimi-code-worker in both worker entry paths
  • add setproctitle as a dependency and include it in PyInstaller hidden imports
  • update changelog entries in root, English docs, and Chinese docs

Checklist

  • I have read the CONTRIBUTING document.
  • I have linked the related issue, if any.
  • I have added tests that prove my fix is effective or that my feature works.
  • I have run make gen-changelog to update the changelog.
  • I have run make gen-docs to update the user documentation.

Open with Devin

Copilot AI review requested due to automatic review settings February 26, 2026 08:15
Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration bot left a comment

Choose a reason for hiding this comment

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

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 3 additional findings.

Open in Devin Review

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds process title functionality to improve visibility and identification of Kimi CLI processes in system monitoring tools like ps, top, and terminal panels. The implementation sets the OS-level process title for the main CLI process and web worker subprocesses.

Changes:

  • Added a new utility module proctitle.py with functions to set OS process titles and terminal window titles
  • Initialized the main CLI process with the title "Kimi Code"
  • Labeled web worker subprocesses as "kimi-code-worker" in both entry points (PyInstaller frozen and module execution)
  • Added setproctitle>=1.3.0 as a dependency and included it in PyInstaller hidden imports

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/kimi_cli/utils/proctitle.py New utility module providing process title and terminal title setting functions with graceful error handling
src/kimi_cli/cli/init.py Added process title initialization in main CLI command and web worker command
src/kimi_cli/web/runner/worker.py Added process title setting in worker module entry point
src/kimi_cli/utils/pyinstaller.py Added setproctitle to PyInstaller hidden imports for frozen executable support
pyproject.toml Added setproctitle>=1.3.0 dependency
uv.lock Updated lockfile with setproctitle v1.3.7 and all platform-specific wheels

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

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