Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 934b704

Browse filesBrowse files
authored
feat(web): adapt Web UI for Wire 1.6 subagent and approval changes (MoonshotAI#1555)
1 parent 65e104f commit 934b704
Copy full SHA for 934b704

16 files changed

+316-68Lines changed: 316 additions & 68 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎CHANGELOG.md‎

Copy file name to clipboardExpand all lines: CHANGELOG.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ Only write entries that are worth mentioning to users.
2626
- Web: Dismiss stale approval and question dialogs on session replay — when replaying a session or when the backend reports idle/stopped/error status, any pending approval/question dialogs are now properly dismissed to prevent orphaned interactive elements
2727
- Web: Enable inline math formula rendering — single-dollar inline math (`$...$`) is now supported in addition to block math (`$$...$$`)
2828
- Web: Improve Switch toggle proportions and alignment — the toggle track is now larger (36×20) with a consistent 16px thumb and smoother 16px travel animation
29+
- Web: Show subagent type labels in activity panels — subagent activities now display their type (e.g. "Coder agent working") instead of the generic "Agent" label
30+
- Web: Add feedback mode to approval dialog — press `4` to reject with written feedback text that guides the model's next attempt; approval requests from subagents show a source label and preview content (diffs, commands)
31+
- Web: Visually distinguish sub-agent origin tool calls — tool messages originating from a subagent are rendered with a left border and a source type label for clearer attribution
2932

3033
## 1.24.0 (2026-03-18)
3134

Collapse file

‎docs/en/guides/interaction.md‎

Copy file name to clipboardExpand all lines: docs/en/guides/interaction.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ The confirmation prompt will show operation details, including shell command and
162162
- **Allow**: Execute this operation
163163
- **Allow for this session**: Automatically approve similar operations in the current session (this decision is persisted with the session and automatically restored when resuming)
164164
- **Reject**: Do not execute this operation
165+
- **Reject with feedback**: Decline the operation and provide written feedback telling the agent how to adjust
165166

166167
If you trust the AI's operations, or you're running Kimi Code CLI in a safe isolated environment, you can enable "YOLO mode" to automatically approve all requests:
167168

Collapse file

‎docs/en/reference/keyboard.md‎

Copy file name to clipboardExpand all lines: docs/en/reference/keyboard.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Kimi Code CLI shell mode supports the following keyboard shortcuts.
1313
| `Alt-Enter` | Insert newline (same as `Ctrl-J`) |
1414
| `Ctrl-V` | Paste (supports images and video files) |
1515
| `Ctrl-E` | Expand full approval request content |
16-
| `1``3` | Quick select approval option |
16+
| `1``4` | Quick select approval option (`4` for decline with feedback) |
1717
| `1``5` | Select question option by number |
1818
| `Ctrl-D` | Exit Kimi Code CLI |
1919
| `Ctrl-C` | Interrupt current operation |
@@ -92,7 +92,7 @@ Useful for viewing longer shell commands or file diff content.
9292

9393
### Number key quick selection
9494

95-
In the approval panel, press `1``3` to directly select and submit the corresponding approval option without navigating with arrow keys first.
95+
In the approval panel, press `1``3` to directly select and submit the corresponding approval option without navigating with arrow keys first. Press `4` to enter feedback mode, where you can type a reason for declining and press Enter to submit; the feedback text is passed to the agent to guide its next attempt.
9696

9797
## Structured question operations
9898

Collapse file

‎docs/en/reference/kimi-web.md‎

Copy file name to clipboardExpand all lines: docs/en/reference/kimi-web.md
+9-2Lines changed: 9 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,14 @@ When the agent sends an approval request, you can use keyboard shortcuts to resp
255255
| `1` | Approve |
256256
| `2` | Approve for session |
257257
| `3` | Decline |
258+
| `4` | Decline with feedback |
259+
260+
Press `4` to enter feedback mode, where you can type a reason for declining or instructions on how the agent should adjust, then press Enter to submit. The feedback text is passed to the agent to guide its next attempt.
261+
262+
When an approval request originates from a subagent, the dialog shows a source label (e.g. "coder agent") so you know which agent initiated the request.
258263

259264
::: info Added
260-
Approval keyboard shortcuts added in version 1.10.
265+
Approval keyboard shortcuts added in version 1.10. Feedback mode added in version 1.25.
261266
:::
262267

263268
### Tool output
@@ -271,8 +276,10 @@ Web UI provides rich display for tool call output:
271276
- **Context compaction**: A compaction indicator is shown when context compaction is in progress
272277
- **Quick URL open**: The URL parameter of the `FetchURL` tool supports Cmd/Ctrl+Click to open the link in a new tab
273278

279+
- **Subagent origin indicators**: Tool calls originating from a subagent are rendered with a left border and a source type label (e.g. "coder agent") for clearer attribution; subagent activity panels display the specific agent type (e.g. "Coder agent working") instead of a generic label
280+
274281
::: info Added
275-
Media preview, shell command, and todo list display components added in version 1.9. Quick URL open added in version 1.14.
282+
Media preview, shell command, and todo list display components added in version 1.9. Quick URL open added in version 1.14. Subagent origin indicators added in version 1.25.
276283
:::
277284

278285
### Rich media support
Collapse file

‎docs/en/release-notes/changelog.md‎

Copy file name to clipboardExpand all lines: docs/en/release-notes/changelog.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ This page documents the changes in each Kimi Code CLI release.
1919
- Web: Dismiss stale approval and question dialogs on session replay — when replaying a session or when the backend reports idle/stopped/error status, any pending approval/question dialogs are now properly dismissed to prevent orphaned interactive elements
2020
- Web: Enable inline math formula rendering — single-dollar inline math (`$...$`) is now supported in addition to block math (`$$...$$`)
2121
- Web: Improve Switch toggle proportions and alignment — the toggle track is now larger (36×20) with a consistent 16px thumb and smoother 16px travel animation
22+
- Web: Show subagent type labels in activity panels — subagent activities now display their type (e.g. "Coder agent working") instead of the generic "Agent" label
23+
- Web: Add feedback mode to approval dialog — press `4` to reject with written feedback text that guides the model's next attempt; approval requests from subagents show a source label and preview content (diffs, commands)
24+
- Web: Visually distinguish sub-agent origin tool calls — tool messages originating from a subagent are rendered with a left border and a source type label for clearer attribution
2225

2326
## 1.24.0 (2026-03-18)
2427

Collapse file

‎docs/zh/guides/interaction.md‎

Copy file name to clipboardExpand all lines: docs/zh/guides/interaction.md
+1Lines changed: 1 addition & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ AI 只会在你的选择真正影响后续操作时才使用此工具。对于
160160
- **允许**:执行这次操作
161161
- **本会话允许**:在当前会话中自动批准同类操作(此决策会随会话持久化,恢复会话时自动还原)
162162
- **拒绝**:不执行此操作
163+
- **附带反馈拒绝**:拒绝操作并输入文字反馈,告诉 Agent 应该如何调整
163164

164165
如果你信任 AI 的操作,或者你正在安全的隔离环境中运行 Kimi Code CLI,可以启用「YOLO 模式」来自动批准所有请求:
165166

Collapse file

‎docs/zh/reference/keyboard.md‎

Copy file name to clipboardExpand all lines: docs/zh/reference/keyboard.md
+2-2Lines changed: 2 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Kimi Code CLI Shell 模式支持以下键盘快捷键。
1313
| `Alt-Enter` | 插入换行(同 `Ctrl-J`|
1414
| `Ctrl-V` | 粘贴(支持图片和视频文件) |
1515
| `Ctrl-E` | 展开审批请求完整内容 |
16-
| `1``3` | 审批面板快速选择 |
16+
| `1``4` | 审批面板快速选择`4` 为附带反馈拒绝) |
1717
| `1``5` | 问题面板按编号选择选项 |
1818
| `Ctrl-D` | 退出 Kimi Code CLI |
1919
| `Ctrl-C` | 中断当前操作 |
@@ -92,7 +92,7 @@ Kimi Code CLI Shell 模式支持以下键盘快捷键。
9292

9393
### 数字键快速选择
9494

95-
在审批面板中,按 `1``3` 可以直接选中并提交对应的审批选项,无需先用方向键选择再按 `Enter`
95+
在审批面板中,按 `1``3` 可以直接选中并提交对应的审批选项,无需先用方向键选择再按 `Enter``4` 进入反馈模式,输入拒绝原因后按 Enter 提交,反馈文本会传递给 Agent 以指导下一次尝试。
9696

9797
## 结构化问答操作
9898

Collapse file

‎docs/zh/reference/kimi-web.md‎

Copy file name to clipboardExpand all lines: docs/zh/reference/kimi-web.md
+9-2Lines changed: 9 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,14 @@ Assistant 消息提供以下操作按钮:
255255
| `1` | 批准 |
256256
| `2` | 本次会话批准 |
257257
| `3` | 拒绝 |
258+
| `4` | 附带反馈拒绝 |
259+
260+
`4` 进入反馈模式后,可以输入文字说明拒绝的原因或期望 Agent 如何调整,然后按 Enter 提交。反馈文本会传递给 Agent 以指导下一次尝试。
261+
262+
当审批请求来自子 Agent 时,对话框会显示来源标签(如 "coder agent"),帮助你了解请求的发起者。
258263

259264
::: info 新增
260-
审批键盘快捷键新增于 1.10 版本。
265+
审批键盘快捷键新增于 1.10 版本。反馈模式新增于 1.25 版本。
261266
:::
262267

263268
### 工具输出
@@ -271,8 +276,10 @@ Web UI 对工具调用的输出提供了丰富的展示方式:
271276
- **上下文压缩**:上下文压缩进行时会显示压缩指示器
272277
- **URL 快速打开**`FetchURL` 工具的 URL 参数支持 Cmd/Ctrl+点击在新标签页中打开链接
273278

279+
- **子 Agent 来源标识**:来自子 Agent 的工具调用以左边框和来源类型标签(如 "coder agent")渲染,便于区分归属;子 Agent 活动面板显示具体的 Agent 类型(如 "Coder agent working")而非通用标签
280+
274281
::: info 新增
275-
媒体预览、Shell 命令和 Todo 列表显示组件新增于 1.9 版本。URL 快速打开功能新增于 1.14 版本。
282+
媒体预览、Shell 命令和 Todo 列表显示组件新增于 1.9 版本。URL 快速打开功能新增于 1.14 版本。子 Agent 来源标识新增于 1.25 版本。
276283
:::
277284

278285
### 富媒体支持
Collapse file

‎docs/zh/release-notes/changelog.md‎

Copy file name to clipboardExpand all lines: docs/zh/release-notes/changelog.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
- Web:会话重放时消除过期的审批和问答对话框——重放会话或后端报告 idle/stopped/error 状态时,所有待处理的审批/问答对话框现在会被正确消除,防止产生孤立的交互元素
2020
- Web:支持行内数学公式渲染——除块级数学公式(`$$...$$`)外,新增支持单美元符号行内数学公式(`$...$`
2121
- Web:优化 Switch 切换开关的比例和对齐——切换轨道现在更大(36×20),拇指按钮保持 16px 并具备更平滑的 16px 位移动画
22+
- Web:在活动面板中显示子 Agent 类型标签——子 Agent 活动现在显示其类型(如 "Coder agent working")而非通用的 "Agent" 标签
23+
- Web:审批对话框新增反馈模式——按 `4` 可附带反馈文字拒绝,指导模型的下一次尝试;来自子 Agent 的审批请求会显示来源标签和预览内容(Diff、命令等)
24+
- Web:视觉区分子 Agent 来源的工具调用——来自子 Agent 的 Tool 消息以左边框和来源类型标签渲染,便于区分归属
2225

2326
## 1.24.0 (2026-03-18)
2427

Collapse file

‎web/src/components/ai-elements/subagent-steps.tsx‎

Copy file name to clipboardExpand all lines: web/src/components/ai-elements/subagent-steps.tsx
+9-3Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ export type SubagentActivityProps = ComponentProps<"div"> & {
2525
steps: SubagentStep[];
2626
isRunning?: boolean;
2727
defaultOpen?: boolean;
28+
/** Built-in subagent type (coder / explore / plan) */
29+
subagentType?: string;
2830
};
2931

3032
export const SubagentActivity = memo(
@@ -33,8 +35,12 @@ export const SubagentActivity = memo(
3335
steps,
3436
isRunning = false,
3537
defaultOpen = false,
38+
subagentType,
3639
...props
3740
}: SubagentActivityProps) => {
41+
const agentLabel = subagentType
42+
? `${subagentType.charAt(0).toUpperCase() + subagentType.slice(1)} agent`
43+
: "Agent";
3844
const [isOpen, setIsOpen] = useState(defaultOpen);
3945

4046
const toolCallCount = steps.filter((s) => s.kind === "tool-call").length;
@@ -63,7 +69,7 @@ export const SubagentActivity = memo(
6369
<span>
6470
{isRunning ? (
6571
<>
66-
Agent working
72+
{agentLabel} working
6773
<Shimmer
6874
as="span"
6975
duration={1}
@@ -73,9 +79,9 @@ export const SubagentActivity = memo(
7379
</Shimmer>
7480
</>
7581
) : toolCallCount > 0 ? (
76-
`Agent completed · ${toolCallCount} tool call${toolCallCount !== 1 ? "s" : ""}`
82+
`${agentLabel} completed · ${toolCallCount} tool call${toolCallCount !== 1 ? "s" : ""}`
7783
) : (
78-
"Agent completed"
84+
`${agentLabel} completed`
7985
)}
8086
</span>
8187
<ChevronRightIcon

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.