Skip to content

fix(tui): set terminal title without renaming process - #398

Merged
liruifengv merged 2 commits into
mainfrom
fix-process-title
Jun 4, 2026
Merged

fix(tui): set terminal title without renaming process#398
liruifengv merged 2 commits into
mainfrom
fix-process-title

Conversation

@liruifengv

Copy link
Copy Markdown
Collaborator

Related Issue

No linked issue; this fixes terminal title updates also changing the process name.

Problem

Terminal session title updates were using process.title, so changing the terminal tab/window title also renamed the running process in system process lists.

What changed

  • Route TUI terminal title updates through the pi-tui terminal API instead of process title mutation.
  • Stop rewriting the process title during startup.
  • Add regression coverage for session title updates, forked sessions, and startup process-name behavior.

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 --filter @moonshot-ai/kimi-code exec vitest run test/tui/kimi-tui-message-flow.test.ts test/cli/main.test.ts
  • pnpm exec oxlint --type-aware apps/kimi-code/src/main.ts apps/kimi-code/src/tui/kimi-tui.ts apps/kimi-code/src/tui/controllers/auth-flow.ts apps/kimi-code/src/tui/controllers/session-event-handler.ts apps/kimi-code/src/tui/constant/terminal.ts 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

@changeset-bot

changeset-bot Bot commented Jun 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5e7761e

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@5e7761e
npx https://pkg.pr.new/@moonshot-ai/kimi-code@5e7761e

commit: 5e7761e

@liruifengv
liruifengv merged commit b2801c4 into main Jun 4, 2026
8 checks passed
@liruifengv
liruifengv deleted the fix-process-title branch June 4, 2026 03:39
@github-actions github-actions Bot mentioned this pull request Jun 4, 2026
sunjie21 pushed a commit to sunjie21/kimi-code that referenced 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