diff --git a/src/tools/ask-user-question.ts b/src/tools/ask-user-question.ts index b4d5a59..3618b5e 100644 --- a/src/tools/ask-user-question.ts +++ b/src/tools/ask-user-question.ts @@ -10,6 +10,7 @@ import { prisma } from '../prisma.js' import { requireWriteAccess } from '../auth.js' import { userCanAccessStory, userOwnsIdea } from '../access.js' import { toolError, toolJson, withToolErrors } from '../errors.js' +import { triggerPush } from '../lib/push-trigger.js' const PENDING_TTL_HOURS = 24 const POLL_INTERVAL_MS = 2_000 @@ -127,6 +128,13 @@ export function registerAskUserQuestionTool(server: McpServer) { }, }) + void triggerPush(auth.userId, { + title: 'Claude heeft een vraag', + body: question.slice(0, 120), + url: '/notifications', + tag: `claude-q-${created.id}`, + }) + // Async-mode (default): return direct. if (!wait_seconds || wait_seconds === 0) { return toolJson(summarize(created))