nanocoder icon indicating copy to clipboard operation
nanocoder copied to clipboard

[Feature] Group agent thoughts and tool calls into a single work summary

Open akramcodez opened this issue 3 months ago • 2 comments

Description

When the user asks the agent to perform a task, the UI currently displays thoughts and tool calls as separate sections throughout the response. Once the task is complete, the final response is shown separately.

A cleaner experience would be to group the entire execution process into a single collapsible work summary.

For example, instead of showing:

  • Thought for 12s
  • Exploring 59 tools...
  • Thought for 92s
  • Some content
  • More tool calls
  • Thought for 0s
  • Final response

The UI could show:

Worked for 2m ›

When expanded, the user can see the complete execution history, including all thoughts and tool calls in their original order.

Expected Behavior

For each user request, group the agent's execution activity into one collapsible section:

Worked for 2m ›

Inside the expanded section:

  • All thought/reasoning blocks
  • All tool-call groups
  • Tool results/statuses
  • The original chronological order of the execution

After the work section, display the agent's final response normally.

Actual Behavior

Thoughts and tool calls are currently rendered as separate UI sections throughout the response. Multiple tool-call groups and thought blocks can appear between pieces of the agent's generated text, making the conversation visually fragmented.

The user has to scroll through many individual sections to understand what the agent did.

Proposed UX

The collapsed state should remain minimal:

Worked for 2m ›

Clicking it expands the complete execution timeline so users who want to inspect the agent's work can see everything, while users who only care about the final answer get a clean conversation.

The execution section should preserve the chronological order of thoughts and tool calls rather than merging unrelated tool calls together.

Why This Matters

This would make the interface much cleaner for long agentic tasks while still keeping the execution details accessible. It also creates a clear separation between how the agent worked and what the agent ultimately answered. om

akramcodez avatar Aug 12 '26 11:08 akramcodez

Hi, I'd like to work on this issue.

Before starting, I'd like to confirm the intended scope. My proposed first version would be limited to the VS Code extension chat panel:

  1. group thought blocks and tool-call updates for one user turn into a single collapsible work-summary container;
  2. preserve their original chronological order instead of merging unrelated tool calls;
  3. keep the final assistant response outside the work-summary container;
  4. derive the elapsed time from the start and terminal state of the turn;
  5. cover streaming updates, completed runs, cancellation, failure, and pending tool approval;
  6. add focused chat-panel harness tests, a user-facing changeset, and a manual screen recording.

I would avoid changing the CLI UI or redesigning individual tool cards in the same PR.

Would this reduced scope match the intended direction? If so, please assign the issue to me and I will start after confirmation.

Gambit-Checkmate avatar Aug 17 '26 13:08 Gambit-Checkmate

sure @Gambit-Checkmate go for it

akramcodez avatar Aug 18 '26 06:08 akramcodez