File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ import {logger} from '../../utils/core/logger.js';
2525import { 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 */
3232function parseSubAgentTargets ( message : string ) : {
3333 targets : Array < { instanceId : string ; agentName : string } > ;
Original file line number Diff line number Diff 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 &&
You can’t perform that action at this time.
0 commit comments