Skip to content

feat(ui): group reasoning and tool calls into a collapsible section #1307

Closed

Description

@YayoiNanoka

Problem

During longer tasks, Maka displays every reasoning step and tool call as a separate item in the conversation.

When there are many searches, file reads, or commands, these items take up most of the screen and push the actual response far down the page. The processing history is useful when debugging, but showing all of it by default makes the conversation difficult to scan.

Desired outcome

Group the reasoning steps and tool calls from one assistant turn into a single collapsible "Processing" section.

Suggested behavior:

  • Preserve all reasoning and tool activity in chronological order inside the section.
  • Show a compact summary when collapsed, such as "Searched 8 times, read 15 files, ran 4 commands."
  • Collapse completed processing sections by default.
  • While a task is running, keep the current activity or a short progress summary visible.
  • Allow users to expand the section when they want to inspect the details.
  • Keep permission requests, failures, and other items that require user action visible instead of hiding them in the collapsed section.

This would keep long conversations readable without losing access to the execution details.

Alternatives or workarounds

Currently, users have to scroll past each reasoning step and tool call to find the assistant's final response. There is no way to collapse or summarize the processing history.

Screenshot

The attached screenshot shows how reasoning and tool activity can fill most of the conversation during a longer task.

Image

Activity

  1. self-assigned this
    on Jul 22, 2026
  2. Astro-Han commented on Jul 22, 2026

    @Astro-Han
    Contributor

    Claiming this — implementation is up in #1320.

    Two deliberate deviations from the suggested behavior, with reasoning documented in the PR body: answer text acts as the grouping boundary (so a turn can hold more than one Processing block, keeping every user-facing message visible in place), and recovered tool failures stay collapsed with a red failure count on the summary line instead of forcing the block open — consistent with the existing tool-activity design.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions