feat(core): set process titles for CLI and web workers#1254
Merged
Conversation
Contributor
There was a problem hiding this comment.
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.pywith 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.0as 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.
This was referenced Feb 26, 2026
This was referenced Mar 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Kimi Codekimi-code-workerin both worker entry pathssetproctitleas a dependency and include it in PyInstaller hidden importsChecklist
make gen-changelogto update the changelog.make gen-docsto update the user documentation.