mirror of
https://github.com/hansjone/dsh-im-ops.git
synced 2026-10-09 01:53:21 +08:00
fix(feishu): ensure /m sends a new card while other actions keep in-place updates
This commit is contained in:
parent
7a6e84cb89
commit
caa9e5eec2
2 changed files with 5 additions and 5 deletions
File diff suppressed because one or more lines are too long
|
|
@ -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 },
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue