clean up proposal logic

This commit is contained in:
Will Chen
2025-04-18 13:23:26 -07:00
parent 639b3a320c
commit a4702f90b0
7 changed files with 74 additions and 61 deletions

View File

@@ -51,18 +51,7 @@ const getProposalHandler = async (
return null;
}
if (latestAssistantMessage?.approvalState === "approved") {
return {
proposal: {
type: "action-proposal",
actions: [
{
id: "restart-app",
},
],
},
chatId: chatId,
messageId: latestAssistantMessage.id,
};
return null;
}
if (latestAssistantMessage?.content && latestAssistantMessage.id) {