You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(plugin): add ToolResult type for structured tool responses #7590
Plugin tools lacked support for structured responses and real-time streaming metadata, preventing advanced features like background tasks with progress updates.
Problem
When building a plugin to support background tasks, we encountered limitations:
1. No Structured Response Support
Plugin tools could only return plain strings. Any metadata (tool counts, status, progress) was lost because fromPlugin always returned metadata: {}.
Long-running operations (file searches, API calls, subagent tasks) had no way to emit progress updates. The UI showed a static "Running..." state until completion.
Impact: Poor UX for multi-step operations with no feedback.
Attachments: The attachments field was added for alignment with core Tool.Result types, but attachment propagation was not tested. Future work could enable plugins to return images, PDFs, or other file types.
Reacted by NAOE Kenichi, Matt Peterson and ualtinok
Activity
github-actions commentedon Mar 25, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.