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