diff --git a/apps/app/src/components/plugin/PluginPendingInteractionComposer.test.tsx b/apps/app/src/components/plugin/PluginPendingInteractionComposer.test.tsx
index 8fd888b71d3..97816e14860 100644
--- a/apps/app/src/components/plugin/PluginPendingInteractionComposer.test.tsx
+++ b/apps/app/src/components/plugin/PluginPendingInteractionComposer.test.tsx
@@ -4,8 +4,9 @@ import { useEffect, useState } from "react";
import { cleanup, fireEvent, render, screen } from "@testing-library/react";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
import { afterEach, describe, expect, it, vi } from "vitest";
-import type { PluginPendingInteraction } from "@bb/domain";
+import { defaultAppSettings, type PluginPendingInteraction } from "@bb/domain";
import type { PluginPendingInteractionProps } from "@get-bb/plugin-sdk";
+import { loadPluginApp } from "@get-bb/plugin-sdk/testing/app";
import {
resetPluginSlotStoreForTest,
setPluginSlotRegistrations,
@@ -22,10 +23,43 @@ import {
import { resetAllCrashedPluginSlotsForTest } from "./PluginSlotMount";
import { PluginPendingInteractionComposer } from "./PluginPendingInteractionComposer";
import { makePluginRegistrationSet } from "@/test/fixtures/plugins";
+import { AppCommandProvider } from "@/components/commands/AppCommandProvider";
+
+vi.mock("@/hooks/queries/system-queries", () => ({
+ useSystemConfig: () => ({
+ data: {
+ generalSettings: { ...defaultAppSettings },
+ keybindings: [1, 2, 3].map((digit) => ({
+ command: `question.select.${digit}`,
+ desktopOnly: false,
+ shortcut: {
+ key: String(digit),
+ mod: false,
+ meta: false,
+ control: false,
+ alt: false,
+ shift: false,
+ },
+ when: { all: ["questionOpen"], none: [] },
+ })),
+ },
+ }),
+}));
+vi.mock("@/lib/bb-desktop", () => ({ getBbDesktopInfo: () => null }));
+const pane = vi.hoisted(() => ({ isFocused: true }));
+vi.mock("@/views/thread-detail/PaneContext", () => ({
+ useOptionalPaneContext: () => pane,
+}));
+
+const piApp = await loadPluginApp(() =>
+ import("../../../../../plugins/provider-pi/app"),
+);
function renderComposer(ui: React.ReactElement) {
return render(
-
{request.message}
: null} {request.method === "select" ? ( ) : null} {request.method === "input" ? (