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:
C3H3-AI 2026-08-23 09:41:38 +08:00
parent 722a2f8c58
commit 7a6e84cb89
7 changed files with 212 additions and 147 deletions

View file

@ -88,7 +88,7 @@ test('/stop and /steer return friendly no-session messages without creating one'
);
assert.match(
(await runControlCommand('/steer 补充', harness, state, 'direct:one')).message,
/普通消息/,
/没有绑定会话/,
);
assert.equal(calls.some(([method]) => method === 'workspaceSession'), false);
});
@ -135,7 +135,7 @@ test('/steer reports a lost active-turn race instead of starting new work', asyn
const result = await runControlCommand('/steer continue', harness, state, 'direct:one', {
control: { owner: {}, key: 'direct:one' },
});
assert.match(result.message, /普通消息/);
assert.match(result.message, /没有正在运行/);
assert.equal(calls.filter(([method]) => method === 'steerActiveTurn').length, 1);
});