mirror of
https://github.com/anthropics/claude-plugins-official.git
synced 2026-05-13 06:55:53 -03:00
Drop input_preview from iMessage permission prompt
Brings the prompt closer to the compact format telegram/discord use. The description field already summarizes what the tool will do; the raw input dump made the text wall-of-texty on a phone screen.
This commit is contained in:
parent
9693fd75c3
commit
d369b8cb8b
@ -530,16 +530,14 @@ mcp.setNotificationHandler(
|
|||||||
request_id: z.string(),
|
request_id: z.string(),
|
||||||
tool_name: z.string(),
|
tool_name: z.string(),
|
||||||
description: z.string(),
|
description: z.string(),
|
||||||
input_preview: z.string(),
|
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
async ({ params }) => {
|
async ({ params }) => {
|
||||||
const { request_id, tool_name, description, input_preview } = params
|
const { request_id, tool_name, description } = params
|
||||||
const access = loadAccess()
|
const access = loadAccess()
|
||||||
const text =
|
const text =
|
||||||
`🔐 Permission request [${request_id}]\n` +
|
`🔐 Permission request [${request_id}]\n` +
|
||||||
`${tool_name}: ${description}\n` +
|
`${tool_name}: ${description}\n\n` +
|
||||||
`${input_preview}\n\n` +
|
|
||||||
`Reply "yes ${request_id}" to allow or "no ${request_id}" to deny.`
|
`Reply "yes ${request_id}" to allow or "no ${request_id}" to deny.`
|
||||||
// allowFrom holds handle IDs, not chat GUIDs — resolve via qChatsForHandle.
|
// allowFrom holds handle IDs, not chat GUIDs — resolve via qChatsForHandle.
|
||||||
// Include SELF addresses so the owner's self-chat gets the prompt even
|
// Include SELF addresses so the owner's self-chat gets the prompt even
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user