@@ -346,6 +346,7 @@ function buildMessagingSection(params: {
|
346 | 346 | return []; |
347 | 347 | } |
348 | 348 | const messageToolOnly = params.sourceReplyDeliveryMode === "message_tool_only"; |
| 349 | +const showGenericInlineButtonHint = params.runtimeChannel !== "slack"; |
349 | 350 | const hasSessionsSpawn = params.availableTools.has("sessions_spawn"); |
350 | 351 | const hasSubagents = params.availableTools.has("subagents"); |
351 | 352 | const subagentOrchestrationGuidance = hasSessionsSpawn |
@@ -376,11 +377,13 @@ function buildMessagingSection(params: {
|
376 | 377 | messageToolOnly |
377 | 378 | ? "- If you use `message` (`action=send`) to deliver visible output, do not repeat that visible content in your final answer; final answers are private in this mode." |
378 | 379 | : `- If you use \`message\` (\`action=send\`) to deliver your user-visible reply, respond with ONLY: ${SILENT_REPLY_TOKEN} (avoid duplicate replies).`, |
379 | | -params.inlineButtonsEnabled |
380 | | - ? "- Inline buttons supported. Use `action=send` with `buttons=[[{text,callback_data,style?}]]`; `style` can be `primary`, `success`, or `danger`." |
381 | | - : params.runtimeChannel |
382 | | - ? `- Inline buttons not enabled for ${params.runtimeChannel}. If you need them, ask to set ${params.runtimeChannel}.capabilities.inlineButtons ("dm"|"group"|"all"|"allowlist").` |
383 | | - : "", |
| 380 | +showGenericInlineButtonHint |
| 381 | + ? params.inlineButtonsEnabled |
| 382 | + ? "- Inline buttons supported. Use `action=send` with `buttons=[[{text,callback_data,style?}]]`; `style` can be `primary`, `success`, or `danger`." |
| 383 | + : params.runtimeChannel |
| 384 | + ? `- Inline buttons not enabled for ${params.runtimeChannel}. If you need them, ask to set ${params.runtimeChannel}.capabilities.inlineButtons ("dm"|"group"|"all"|"allowlist").` |
| 385 | + : "" |
| 386 | + : "", |
384 | 387 | ...(params.messageToolHints ?? []), |
385 | 388 | ] |
386 | 389 | .filter(Boolean) |
|