Skip to content

Setting LargeOutput but if subagent started, it won't inherit the LargeOutput but use the operating system's default tmp directory #2158

Description

@AngryBerryMS

When using the copilot sdk, we want to specify the LargeOutput dir to limit the large output from Tools be saved to specified directory. It works for the main agent, but sometimes subagents are launched, and the subagents will also call MCP Tools, whose large output will be saved to /tmp in Linux.

This is not ideal, because we want all large output to be saved to the specified directory. Our read tools are not allowed to read any directory in the operainng system, if the large output is saved to the default tmp dir (like /tmp in Linux), some customed defined read tools will fail since we only allow them to read specific directory

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions