Skip to content

Conversation

@tamuratak
Copy link
Contributor

Add inline reference handling for markdown conversion in RunSubagentTool. Fix #282509

CC: @roblourens

Copilot AI review requested due to automatic review settings December 25, 2025 08:53
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes issue #282509 where inline references (file paths) from subagents were being lost during markdown conversion. The fix ensures that when a subagent returns inline references as part of its response, these references are properly preserved and converted to markdown links in the tool result that gets sent back to the orchestrator.

Key Changes:

  • Added handling for inlineReference kind in the response processing loop alongside markdownContent
  • Implemented a new inlineReferenceToMarkdown function to convert inline reference objects into markdown link format
  • Added necessary imports for URI, basename, and isLocation utilities

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subagent file path context is missing in response to orchestrator

2 participants