fix assistant widget configuration

This commit is contained in:
ajnart committed 2026-08-14 11:32:10 +02:00
1 parent 8d06201b41
commit 1f60b4b4be
16 files changed
+696 -11

No files matched your search

@@ -75,6 +75,20 @@ describe("getPendingAssistantAction", () => {
).toEqual({ kind: "form", toolName: "configure_board_settings", detail: "Home" });
});
test("exposes the native widget form while configuration still needs review", () => {
expect(
getPendingAssistantAction(
assistantMessage({
type: "tool-call",
toolCallId: "widget-1",
toolName: "configure_widget",
args: { boardId: "board-1", boardName: "Home", kind: "notebook" },
argsText: "{}",
}),
),
).toEqual({ kind: "form", toolName: "configure_widget", detail: "Home" });
});
test("exposes an unresolved mutation approval", () => {
expect(
getPendingAssistantAction(