Skip to content

Compact collapsed tool calls#414

Draft
pascalandr wants to merge 3 commits into
NeuralNomadsAI:devfrom
Pagecran:fix/compact-tool-calls
Draft

Compact collapsed tool calls#414
pascalandr wants to merge 3 commits into
NeuralNomadsAI:devfrom
Pagecran:fix/compact-tool-calls

Conversation

@pascalandr
Copy link
Copy Markdown
Contributor

Summary

  • Collapse tool outputs by default while keeping a compact input/output preview visible in chat history.
  • Truncate long tool call headers and add responsive sizing so narrow screens do not waste horizontal space.
  • Keep the existing behavior setting as the user override for expanded vs collapsed defaults.

Validation

  • npm run typecheck --workspace @codenomad/ui
  • npm run build --workspace @codenomad/ui

Closes #295

pascalandr added 2 commits May 8, 2026 23:57
Collapse tool output blocks by default so chat history stays readable on desktop and narrow screens while still showing enough context to understand what each tool did.

The tool call header now truncates instead of forcing horizontal overflow, and collapsed tools render a compact input/output preview derived from the tool payload. Existing behavior settings continue to control whether users prefer expanded or collapsed output by default.

Validation:
- npm run typecheck --workspace @codenomad/ui
- npm run build --workspace @codenomad/ui
@pascalandr pascalandr marked this pull request as draft May 8, 2026 23:37
Remove the added collapsed preview so compact tool calls only rely on the existing header content.

The tool label now sits inline with the collapsed header without the extra generic Tool call text or icon, keeping the collapsed state closer to the issue request while preserving the default collapsed preference.

Validated with the existing UI typecheck and build before this commit; unrelated package-lock and Tauri generated changes were left unstaged.
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.

[UX/UI] provide a more compact tool call visualization in the chat

1 participant