mirror of
https://github.com/MoonshotAI/kimi-code.git
synced 2026-12-05 22:24:39 +00:00
feat(kimi-code): add TUI mode setting for fullscreen layout (#4004)
This commit is contained in:
parent
b3212fd9ab
commit
e17ff67928
21 changed files with 421 additions and 36 deletions
|
|
@ -560,6 +560,7 @@ Alongside `config.toml`, the CLI keeps terminal-UI and client preferences in a c
|
|||
| Field | Type | Default | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| `theme` | `string` | `auto` | Color theme: `auto`, `dark`, `light`, or the name of a [custom theme](../customization/themes.md) |
|
||||
| `tui_mode` | `string` | `regular` | UI layout: `regular` renders into the terminal scrollback; `fullscreen` (experimental) makes parts of the UI mouse-interactive for a smoother experience |
|
||||
| `render_latex` | `boolean` | `true` | Render LaTeX math expressions in Markdown messages as Unicode text; `false` keeps the raw source |
|
||||
| `disable_paste_burst` | `boolean` | `false` | Disable the non-bracketed paste-burst fallback that keeps rapid multi-line pastes from submitting line by line |
|
||||
| `cache_expiry_hint` | `boolean` | `true` | On resume or when submitting after a long idle stretch, warn that the context cache may have expired and offer to compact or start a new session (v2 engine only) |
|
||||
|
|
@ -581,6 +582,7 @@ Model, cwd, git branch, permission mode, plan mode, context usage, session id, v
|
|||
```toml
|
||||
# ~/.kimi-code/tui.toml
|
||||
theme = "auto" # "auto" | "dark" | "light" | custom theme name
|
||||
tui_mode = "regular" # "regular" | "fullscreen" ("fullscreen" is experimental)
|
||||
render_latex = true # false keeps LaTeX math in messages as raw source
|
||||
disable_paste_burst = false # true disables non-bracketed paste-burst fallback
|
||||
cache_expiry_hint = true # false disables the "cache expired" dialog on resume / idle submit
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ Switches that control the behavior of subsystems such as telemetry, background t
|
|||
| `KIMI_CODE_IDENTITY_SLUG` | `User-Agent` product token and MCP client name; higher priority than `[identity] slug`; derived from the name when unset | Any non-empty string; normalized to lowercase with non-alphanumeric runs folded to `-` |
|
||||
| `KIMI_CODE_BUILTIN_PRODUCT_SKILLS` | Offer the built-in skills documenting Kimi Code itself to the model; higher priority than `builtin_product_skills` | Truthy: `1`/`true`/`yes`/`on`; falsy: `0`/`false`/`no`/`off` |
|
||||
| `KIMI_CODE_REPEAT_BREAKER` | Whether repeating the same tool call many times in a row injects reminders and eventually force-stops the turn. Unset keeps this on | Truthy: `1`/`true`/`yes`/`on`; falsy: `0`/`false`/`no`/`off`; any other value is ignored |
|
||||
| `KIMI_CODE_TUI_FULL_SCREEN` | Experimental fullscreen UI: scrollable transcript, mouse selection, clickable links, Ctrl-Shift-F search | `1` enables it; anything else keeps the regular inline UI |
|
||||
| `KIMI_CODE_EXPERIMENTAL_SUBAGENT_FORK` | Experimental `fork` parameter on `Agent`/`AgentSwarm`: start the subagent from a snapshot of the caller's history instead of an empty context; `KIMI_CODE_EXPERIMENTAL_FLAG=1` also enables it | Truthy: `1`/`true`/`yes`/`on`; falsy: `0`/`false`/`no`/`off` |
|
||||
| `KIMI_CODE_EXPERIMENTAL_TOOL_SELECT` | Experimental on-demand tool loading: tools of MCP servers marked `deferred: true` stay out of the top-level tool list and are loaded via `select_tools`; also requires the model to declare the `dynamically_loaded_tools` capability — see [MCP](../customization/mcp.md#loading-tools-on-demand) | Truthy: `1`/`true`/`yes`/`on`; falsy: `0`/`false`/`no`/`off` |
|
||||
| `KIMI_CODE_WATCH` | Attach filesystem watchers that reload config and workspace files; higher priority than `[watch] enabled` (default `false`) | Truthy: `1`/`true`/`yes`/`on`; falsy: `0`/`false`/`no`/`off` |
|
||||
|
|
|
|||
|
|
@ -559,6 +559,7 @@ MCP server 的声明配置写在 `~/.kimi-code/mcp.json` 或项目内 `.kimi-cod
|
|||
| 字段 | 类型 | 默认值 | 说明 |
|
||||
| --- | --- | --- | --- |
|
||||
| `theme` | `string` | `auto` | 配色主题:`auto`、`dark`、`light` 或[自定义主题](../customization/themes.md)名 |
|
||||
| `tui_mode` | `string` | `regular` | 界面布局:`regular` 渲染进终端滚动缓冲区;`fullscreen`(实验性)部分组件支持鼠标交互,交互更顺手 |
|
||||
| `render_latex` | `boolean` | `true` | 将 Markdown 中的 LaTeX 公式渲染为 Unicode 文本;`false` 保留原始源码 |
|
||||
| `disable_paste_burst` | `boolean` | `false` | 禁用非 bracketed paste 的粘贴突发兜底;默认开启,避免快速多行粘贴被逐行提交 |
|
||||
| `cache_expiry_hint` | `boolean` | `true` | resume 或长时间空闲后发消息时,若上下文缓存可能过期则提醒,可先压缩或新建会话(仅 v2 引擎) |
|
||||
|
|
@ -580,6 +581,7 @@ model、cwd、git 分支、permission 模式、plan 模式、上下文用量、s
|
|||
```toml
|
||||
# ~/.kimi-code/tui.toml
|
||||
theme = "auto" # "auto" | "dark" | "light" | 自定义主题名
|
||||
tui_mode = "regular" # "regular" | "fullscreen"("fullscreen" 为实验性)
|
||||
render_latex = true # false 表示消息中的 LaTeX 公式保留原始源码
|
||||
disable_paste_burst = false # true 表示禁用非 bracketed paste 的粘贴突发兜底
|
||||
cache_expiry_hint = true # false 表示关闭 resume / 空闲提交时的"缓存已过期"提醒弹窗
|
||||
|
|
|
|||
|
|
@ -158,7 +158,6 @@ kimi
|
|||
| `KIMI_CODE_IDENTITY_SLUG` | 协议标识(`User-Agent` 产品名、MCP 客户端名),优先级高于 `[identity] slug`;未设置时由名称派生 | 任意非空字符串;会转小写并将连续非字母数字字符折叠为 `-` |
|
||||
| `KIMI_CODE_BUILTIN_PRODUCT_SKILLS` | 是否向模型提供介绍 Kimi Code 自身的内置 Skills,优先级高于 `config.toml` 的 `builtin_product_skills` | 真值:`1`/`true`/`yes`/`on`;假值:`0`/`false`/`no`/`off` |
|
||||
| `KIMI_CODE_REPEAT_BREAKER` | 同一工具调用连续重复多次时,是否注入提醒并最终强制停止该轮。未设置时保持开启 | 真值:`1`/`true`/`yes`/`on`;假值:`0`/`false`/`no`/`off`;其他值忽略 |
|
||||
| `KIMI_CODE_TUI_FULL_SCREEN` | 启用实验性的 fullscreen 界面:可滚动 transcript、鼠标选择、可点击链接、Ctrl-Shift-F 搜索 | `1` 开启;其他值保持常规内联界面 |
|
||||
| `KIMI_CODE_EXPERIMENTAL_SUBAGENT_FORK` | 在 `Agent`/`AgentSwarm` 上启用实验性 `fork` 参数:以调用方对话历史快照而非空上下文启动 subagent | 真值:`1`/`true`/`yes`/`on`;假值:`0`/`false`/`no`/`off` |
|
||||
| `KIMI_CODE_EXPERIMENTAL_TOOL_SELECT` | 启用实验性按需加载工具:标记 `deferred: true` 的 MCP server 工具不进入顶层工具列表,由模型经 `select_tools` 按需加载;还需模型声明 `dynamically_loaded_tools` 能力,详见 [MCP](../customization/mcp.md#按需加载工具) | 真值:`1`/`true`/`yes`/`on`;假值:`0`/`false`/`no`/`off` |
|
||||
| `KIMI_CODE_WATCH` | 是否挂文件系统 watch 以热更新配置和工作区文件,优先级高于 `[watch] enabled`(默认 `false`) | 真值:`1`/`true`/`yes`/`on`;假值:`0`/`false`/`no`/`off` |
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue