Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(aui): correct slash command source test for empty input

Steven Enamakel3a868e7e1476
diff --git a/app/src/features/conversations/aui/useSlashCommandSource.test.tsx b/app/src/features/conversations/aui/useSlashCommandSource.test.tsx
index ce8674a8d4..3de90e0476 100644
--- a/app/src/features/conversations/aui/useSlashCommandSource.test.tsx
+++ b/app/src/features/conversations/aui/useSlashCommandSource.test.tsx
@@ -31,7 +31,8 @@ const SKILL: CoreCommand = {
};
function rpcByMethod(responses: Record<string, unknown>) {
- vi.mocked(callCoreRpc).mockImplementation(async ({ method }) => {
+ vi.mocked(callCoreRpc).mockImplementation(async request => {
+ const method = request?.method ?? '';
if (method in responses) {
const value = responses[method];
if (value instanceof Error) throw value;