Skip to content

FLOW-2584: Collapse verbose tool call output by default with expandable option - (Jira Coding Agent)#1900

Draft
atlassian[bot] wants to merge 1 commit into
mainfrom
FLOW-2584-tool-call-formatting-ad9fb
Draft

FLOW-2584: Collapse verbose tool call output by default with expandable option - (Jira Coding Agent)#1900
atlassian[bot] wants to merge 1 commit into
mainfrom
FLOW-2584-tool-call-formatting-ad9fb

Conversation

@atlassian

@atlassian atlassian Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces a feature to collapse completed tool call results in the thinking drawer, providing a more compact chat view while allowing users to expand the drawer to see full details if desired.

Key changes include:

Area Change Description
UI/UX Add collapsed view for tool call results in the thinking drawer for a cleaner, less verbose display.
CSS Add styles for collapsed tool return items to ensure compact and visually distinct presentation.
Component Updates Modify ToolReturnParsedItem component to support a collapsed mode showing concise content and title.
Rendering Logic Update renderChatHistory to optionally render tool returns in collapsed mode within MessageDrawer.
Testing Add tests for collapsed view rendering, interaction, and default expanded behavior.
Documentation/Changelog Update CHANGELOG.md to document the new improvement feature.

This enhancement improves user experience by reducing clutter in the chat interface while preserving access to detailed tool call information when needed.


Rovo Dev code review: Rovo Dev couldn't review this pull request
Rovo Dev does not review pull requests created by bot accounts.

Tool return items inside the MessageDrawer now render in a compact
single-line format (icon + content + title) instead of full bordered
cards with markdown, file paths, and bash command blocks. The drawer
itself already collapses when processing completes; this change makes
the expanded content less verbose too. Users can still expand the
drawer to see results.

- Add collapsed prop to ToolReturnParsedItem for compact rendering
- Pass collapsedToolReturns=true from MessageDrawer to renderChatHistory
- Add CSS styles for .tool-return-collapsed compact layout
- Add tests for collapsed view behavior

Co-authored-by: Leandro Lemos <llemos@atlassian.com>
@atlassian-cla-bot

Copy link
Copy Markdown

Thank you for your submission! Like many open source projects, we ask that you sign our CLA (Contributor License Agreement) before we can accept your contribution.
If your email is listed below, please ensure that you sign the CLA with the same email address.

The following users still need to sign our CLA:
a393d78c-73d8-4f4d-84ea-500a2d3d8fc3@connect.atlassian.com

Already signed the CLA? To re-check, try refreshing the page.

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.

0 participants