fix(feishu): ensure /m sends a new card while other actions keep in-place updates

This commit is contained in:
C3H3-AI 2026-08-23 11:13:03 +08:00
parent 7a6e84cb89
commit caa9e5eec2
2 changed files with 5 additions and 5 deletions

File diff suppressed because one or more lines are too long

View file

@ -655,7 +655,7 @@ export class FeishuHarnessBridge {
return;
}
if (MENU_COMMAND.test(commandText)) {
await this.#sendMenuCard(key, event.message.chat_id);
await this.#sendMenuCard(key, event.message.chat_id, { newCard: true });
return;
}
if (commandText === '/new') {
@ -1508,7 +1508,7 @@ export class FeishuHarnessBridge {
return messageId;
}
async #sendMenuCard(key, chatId) {
async #sendMenuCard(key, chatId, { newCard = false } = {}) {
let workspaces = [];
let currentWorkspace = null;
try {
@ -1566,7 +1566,7 @@ export class FeishuHarnessBridge {
currentSession: currentSessionId ? { id: currentSessionId, title: currentSessionTitle } : null,
sessions, archiveVisible,
}),
{ key, update: true },
{ key, update: !newCard },
);
}