Skip to content

feat(gateway): suppress_tool_display option β€” hide intermediate tool-call output for customer-facing platforms (LINE, Telegram)Β #641

@jinwei-pikmin

Description

@jinwei-pikmin

Problem

When using the gateway with LINE or Telegram in production/customer-facing scenarios, intermediate tool-call lines (e.g. πŸ”§ Running bash..., βœ… read_file) are visible to end users. This exposes internal processing details that may contain sensitive information (file paths, API calls, internal data) and degrades the user experience.

Discord has streaming which makes tool calls feel natural, but LINE/Telegram use send-once semantics β€” showing tool call progress adds no value and may expose sensitive operations.

Proposed Solution

Add a suppress_tool_display option to the gateway config:

[gateway]
# true  = only send final text response (recommended for production)
# false = show tool calls as they run (default, good for debugging)
suppress_tool_display = false

Helm chart equivalent:

agents:
  go:
    gateway:
      suppressToolDisplay: true

When suppress_tool_display = true:

  • Tool-call lines are not forwarded to the platform
  • Only the final text response is sent
  • Errors are still surfaced (e.g. ⚠️ Internal error)

Use Case

A travel planning bot running on LINE sends customers their itinerary. With suppress_tool_display = false, customers see internal bash commands and Notion API calls before the final response. With true, they only see the polished final reply.

Related

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions