You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
claim 语义:dsh-client-ui-commands 的 src/client/service.ts:388-405,注释写明「The composer keeps the claimed token in the draft and reads the arguments after it」,即选中命令后整行都算该命令的参数。
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
现象
在输入框打
/选「计划」后,输入框出现蓝色的/计划token,光标落在它后面。此时再打/xxx,不再弹出命令/技能补全,/xxx被当作普通参数文本。期望:此处
/xxx仍能补全出/xxx-xxxxxx这类技能,再回车把「进入计划模式 + 使用该技能」一起提交。当前行为与定位
打包版内附源码可读(
resources/app.asar),相关判定如下:dsh-client-ui-input-trigger的src/core/detect.ts:48-76。guard 分plain/claimed/frozen三档,claimed档下'/'被整体跳过(第 65 行if (guard.tier === 'claimed') continue),'@'仍可用;frozen档全禁(第 49 行)。dsh-client-ui-conversation的src/client/input/facade.ts:90-96,由输入机 phase 决定——草稿开头挂着命令 chip 即claimed。dsh-client-ui-commands的src/client/service.ts:388-405,注释写明「The composer keeps the claimed token in the draft and reads the arguments after it」,即选中命令后整行都算该命令的参数。因此这不是计划模式的特殊行为,而是「命令参数态」的通用规则。计划模式最容易撞上它,是因为它的参数就是一段任务描述,用户很自然想在里面写技能名。
一个加重困惑的细节
选中
/计划且参数为空时,输入框显示的提示描述你的任务以生成计划,与计划模式真正开启后的 placeholder 是同一句(src/client/locales.ts:6-8,17,20)。用户看到这句话会以为计划模式已经开了,于是第一印象变成「进入计划模式后/就不弹补全了」。同类反馈
/plan后输入的字符变成 token 颜色且删不掉;「一旦输入了文字,就不会出 plan 模式的选项了」。/目标claim 之后中文输入法打 1–2 字卡死。/计划文本。建议(按代价从小到大)
claimed态允许词首/触发「插入纯文本」的 source(技能),仍禁止命令嵌套,避免 Enter 语义歧义。技能 onPick 返回的是纯文本/${name},不产生新的命令链,风险可控。input.completion),/plan声明允许技能。不属于本诉求
不要求改变
/plan、/goal现有的参数语义,也不要求把任意自由文本里的/都变成补全触发点——路径、URL 里的/不应弹菜单。All reactions