Skip to content

Commit cee755f

Browse files
committed
chore:注释中文化收口
- useChatLogic: parseSubAgentTargets 注释改为中文,说明标记解析与剥离原因 - useKeyboardInput: 命令面板 Tab 补全注释改为中文
1 parent f8329d2 commit cee755f

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

source/hooks/conversation/useChatLogic.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ import {logger} from '../../utils/core/logger.js';
2525
import {runningSubAgentTracker} from '../../utils/execution/runningSubAgentTracker.js';
2626

2727
/**
28-
* Parse "# SubAgentTarget:instanceId:agentName" markers from a message.
29-
* These are injected by the running-agents picker via TextBuffer placeholders.
30-
* Returns the target sub-agent info and the clean message (markers stripped).
28+
* 从用户输入中解析运行中子代理的定向标记(# SubAgentTarget:instanceId:agentName).
29+
* 这些标记由 running-agents picker 注入,用于让主会话把用户消息路由到指定子代理.
30+
* 解析后会剥离标记,避免把控制信息发送给模型.
3131
*/
3232
function parseSubAgentTargets(message: string): {
3333
targets: Array<{instanceId: string; agentName: string}>;

source/hooks/input/useKeyboardInput.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1234,7 +1234,7 @@ export function useKeyboardInput(options: KeyboardInputOptions) {
12341234
return;
12351235
}
12361236

1237-
// Tab - autocomplete command to input
1237+
// Tab: 将当前候选命令补全到输入框,减少手动输入成本.
12381238
if (key.tab) {
12391239
if (
12401240
filteredCommands.length > 0 &&

0 commit comments

Comments
 (0)