diff --git a/.changeset/cap-session-title-length.md b/.changeset/cap-session-title-length.md new file mode 100644 index 000000000..f2ae844d0 --- /dev/null +++ b/.changeset/cap-session-title-length.md @@ -0,0 +1,5 @@ +--- +"@moonshot-ai/kimi-code": patch +--- + +Shorten the session title written to the terminal window/tab from 80 to 32 characters so long first messages and pasted content no longer stretch the tab bar past readable width. diff --git a/apps/kimi-code/src/tui/constant/terminal.ts b/apps/kimi-code/src/tui/constant/terminal.ts index 9d68af25f..3530d19b3 100644 --- a/apps/kimi-code/src/tui/constant/terminal.ts +++ b/apps/kimi-code/src/tui/constant/terminal.ts @@ -33,7 +33,7 @@ export const OSC11_RESPONSE_PREFIX_NO_ESC = "]11;rgb:"; // Keep notification/title payloads bounded so terminal tabs and desktop // notifications stay readable. export const MAX_TERMINAL_NOTIFICATION_MESSAGE_LENGTH = 240; -export const MAX_PROCESS_TITLE_LENGTH = 80; +export const MAX_PROCESS_TITLE_LENGTH = 32; // OSC 11 probing must be short because unsupported terminals do not reply. export const TERMINAL_THEME_DETECT_TIMEOUT_MS = 250;