From fa6a9c10f70b56a408246d7563ff8f852a9d27bf Mon Sep 17 00:00:00 2001 From: Memo Chou Date: Fri, 23 Dec 2022 03:47:23 +0800 Subject: [PATCH] Continue conversation even deactivated --- app/commands/index.js | 2 ++ app/handle-events.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/commands/index.js b/app/commands/index.js index b071a004..cce57894 100644 --- a/app/commands/index.js +++ b/app/commands/index.js @@ -1,5 +1,6 @@ import { execActivateCommand, isActivateCommand } from './activate.js'; import { execChatCommand, isChatCommand } from './chat.js'; +import { isContinue } from './continue.js'; import { execDeactivateCommand, isDeactivateCommand } from './deactivate.js'; import { execDeployCommand, isDeployCommand } from './deploy.js'; import { execDrawCommand, isDrawCommand } from './draw.js'; @@ -16,6 +17,7 @@ export { execVersionCommand, isActivateCommand, isChatCommand, + isContinue, isDeactivateCommand, isDeployCommand, isDrawCommand, diff --git a/app/handle-events.js b/app/handle-events.js index 9adf3608..8f196e3d 100644 --- a/app/handle-events.js +++ b/app/handle-events.js @@ -11,6 +11,7 @@ import { execVersionCommand, isActivateCommand, isChatCommand, + isContinue, isDeactivateCommand, isDeployCommand, isDrawCommand, @@ -30,6 +31,7 @@ const handleEvent = async (event) => ( || (isDrawCommand(event) && execDrawCommand(event)) || (isActivateCommand(event) && execActivateCommand(event)) || (isDeactivateCommand(event) && execDeactivateCommand(event)) + || (isContinue(event) && execChatCommand(event)) || (isChatCommand(event) && execChatCommand(event)) || ((await storage.getItem(SETTING_AI_ACTIVATED) && execChatCommand(event))) || event