Skip to content

graff — a fast agentic coding harness in Zig: multi-provider, MCP, workflows, DGM evolution loop, TS/Python SDKs

Python

Isolate prompt history component regression

yxlyxb373341b3183
diff --git a/gui/src/app/SessionProvider.test.tsx b/gui/src/app/SessionProvider.test.tsx
index 1580f070..ac27e73e 100644
--- a/gui/src/app/SessionProvider.test.tsx
+++ b/gui/src/app/SessionProvider.test.tsx
@@ -138,7 +138,7 @@ mock.module("../hooks/useSessionBootstrap", () => ({
mock.module("../services/desktop/client", () => ({
setFast: async () => {},
savePastedImage: async () => "/tmp/pasted-image.png",
- imageThumbnail: async () => "data:image/jpeg;base64,", listCommands: async () => [],
+ imageThumbnail: async () => "data:image/jpeg;base64,",
openExternalUrl: async () => {},
openPathInTarget: async () => {},
ensureConversationView: async () => {
diff --git a/gui/src/components/PromptInputCard.navigation.test.tsx b/gui/src/components/PromptInputCard.navigation.test.tsx
index 39ea0884..a56162c7 100644
--- a/gui/src/components/PromptInputCard.navigation.test.tsx
+++ b/gui/src/components/PromptInputCard.navigation.test.tsx
@@ -1,9 +1,20 @@
-import { afterAll, beforeAll, expect, test } from "bun:test";
+import { afterAll, beforeAll, expect, mock, test } from "bun:test";
import { useState } from "react";
import type { Attachment } from "./attachments/attachmentTypes";
import type { ChatBinding } from "@/services/desktop/types/contracts";
+mock.module("@/hooks/useCommandAutocomplete", () => ({
+ useCommandAutocomplete: () => ({
+ activeIndex: 0,
+ handleKeyDown: () => false,
+ isOpen: false,
+ items: [],
+ pick: () => {},
+ setActiveIndex: () => {},
+ }),
+}));
+
let createRoot: typeof import("react-dom/client").createRoot;
let flushSync: typeof import("react-dom").flushSync;
let PromptInputCard: typeof import("./PromptInputCard").PromptInputCard;