fix(webui): keep automation creation intent in runtime context
This commit is contained in:
1 parent
037438e7d1
commit
458b925f86
21 files changed
+149
-20
No files matched your search
@@ -1608,6 +1608,7 @@ describe("ThreadShell", () => {
|
||||
id: "automation-first-message",
|
||||
chatId: "chat-new",
|
||||
content: "Every weekday at 9, summarize open pull requests",
|
||||
options: { intent: "create_automation" as const },
|
||||
};
|
||||
|
||||
render(
|
||||
@@ -1633,6 +1634,12 @@ describe("ThreadShell", () => {
|
||||
expect(client.sendMessage).toHaveBeenCalledTimes(1);
|
||||
expect(consumed).toHaveBeenCalledOnce();
|
||||
expect(consumed).toHaveBeenCalledWith(pendingFirstMessage.id);
|
||||
expect(client.sendMessage).toHaveBeenCalledWith(
|
||||
"chat-new",
|
||||
pendingFirstMessage.content,
|
||||
undefined,
|
||||
expect.objectContaining({ intent: "create_automation" }),
|
||||
);
|
||||
});
|
||||
|
||||
it("keeps the first landing message when new chat history is still empty", async () => {
|
||||
|
||||
Reference in new issue
Block a user