mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-10 13:10:44 +08:00
fix(feishu): align menu number-fallback test with emoji label and bind-flows
The menu card renders the repair fallback as **5**<emoji>修复, so the two assertions that matched **5**修复 are broadened to tolerate the marker emoji. The number-reply on a later session page now reads the last text confirmation instead of assuming the last outgoing message is text, since #bindSession refreshes the menu card after binding. Rebuild bundle.
This commit is contained in:
parent
722a2f8c58
commit
7a6e84cb89
7 changed files with 212 additions and 147 deletions
|
|
@ -68,7 +68,7 @@ export async function runControlCommand(text, harness, state, key, {
|
|||
|
||||
const session = boundSession(harness, state, key);
|
||||
if (!session) {
|
||||
return commandResult('当前聊天没有正在运行的任务,请直接发送普通消息。');
|
||||
return commandResult('当前聊天没有绑定会话,无法补充指令。请先绑定会话。');
|
||||
}
|
||||
if (typeof session.steerActiveTurn !== 'function') {
|
||||
throw new TypeError('Harness session does not support steering active turns');
|
||||
|
|
@ -80,5 +80,5 @@ export async function runControlCommand(text, harness, state, key, {
|
|||
);
|
||||
return steered
|
||||
? commandResult('已提交补充指令,Agent 会在下一步读取。')
|
||||
: commandResult('当前聊天没有正在运行的任务,请直接发送普通消息。');
|
||||
: commandResult('任务已结束,没有正在运行的任务,无法补充指令。请直接发送消息开始新任务。');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue