Skip to content

Compact collapsed tool calls - #414

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

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
pascalandr marked this pull request as draft May 8, 2026 23:37
@pascalandr
pascalandr marked this pull request as ready for review May 16, 2026 12:48
@github-actions

Copy link
Copy Markdown

PR builds are available as GitHub Actions artifacts:

https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/25585396489

Artifacts expire in 7 days.
Artifacts: (none found on this run)

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
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.
@pascalandr
pascalandr force-pushed the fix/compact-tool-calls branch from 6406312 to 08ee37e Compare May 16, 2026 12:59
@github-actions

Copy link
Copy Markdown

PR builds are available as GitHub Actions artifacts:

https://github.com/NeuralNomadsAI/CodeNomad/actions/runs/25962557778

Artifacts expire in 7 days.
Artifacts:

  • pr-414-08ee37e5e1da5bd8e21563784779da1ca0b7f84c-tauri-macos-arm64
  • pr-414-08ee37e5e1da5bd8e21563784779da1ca0b7f84c-electron-windows
  • pr-414-08ee37e5e1da5bd8e21563784779da1ca0b7f84c-electron-linux

@pascalandr

Copy link
Copy Markdown
Contributor Author

@shantur
this PR is not needed anymore as you already solved the issue #295 with redesign, right ?

@pascalandr pascalandr closed this May 16, 2026
@shantur

shantur commented May 16, 2026

Copy link
Copy Markdown
Collaborator

@shantur this PR is not needed anymore as you already solved the issue #295 with redesign, right ?

Yes, I did some improvements by reducing the buttons to menu in smaller widths.

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

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

2 participants