Skip to content

[Feature] Preserve tool-call boundaries between thought blocks #856

Closed

Description

@akramcodez

Description

When a model is working through a task and uses multiple tool calls, the UI currently appends subsequent tool calls to the same tool-call dropdown instead of creating a separate block for each tool-call phase.

For example, the flow can be:

Thought → Tool calls → Thought → Tool calls → Thought → Tool calls

But the UI currently groups the later tool calls into the first "Exploring X tools..." dropdown, making it unclear which tools were used during each phase of the model's reasoning.

Expected Behavior

Each tool-call phase should have its own expandable block, preserving the actual sequence of events:

Thought → Tool calls → Thought → Tool calls → Thought → Tool calls

When the model starts a new tool-call phase after generating more thoughts, a new tool-call dropdown should be created instead of appending the tools to the previous dropdown.

Actual Behavior

The first tool-call dropdown is created when the model makes its initial tool calls. After the model generates additional thoughts and makes more tool calls, those new tool calls are appended to the original dropdown.

This makes the execution flow difficult to follow and does not accurately represent the sequence of the model's actions.

Additional Context

The UI should preserve the boundaries between separate tool-call phases while still grouping tools that belong to the same phase. This would make long agentic tasks much easier to understand and debug.

Activity

  1. added
    enhancement
    on Aug 12, 2026
  2. kishore280 commented on Aug 12, 2026

    @kishore280
    Contributor

    Hit this while testing #751 — currentAggregator never gets reset when a new phase starts mid-turn, only on completion. Happy to send a PR.

  3. added a commit that references this issue on Aug 21, 2026
    0cd4158
  4. added a commit that references this issue on Aug 21, 2026
    4e11490
  5. added
    area:vscode
    on Oct 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:vscodeenhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions