Skip to content

fix(app): make error tool card respect settings#17005

Merged
nexxeln merged 1 commit intoanomalyco:devfrom
neriousy:fix/error-tool-card-respect-settings
Mar 11, 2026
Merged

fix(app): make error tool card respect settings#17005
nexxeln merged 1 commit intoanomalyco:devfrom
neriousy:fix/error-tool-card-respect-settings

Conversation

@neriousy
Copy link
Contributor

Issue for this PR

Closes #17003

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Error tool cards respect setting whether they should expand

If you paste a large clearly AI generated description here your PR may be IGNORED or CLOSED!

How did you verify your code works?

MAke model error out on edit

Screenshots / recordings

If this is a UI change, please include a screenshot or recording.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

Copilot AI review requested due to automatic review settings March 11, 2026 09:11
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes tool error cards so their expanded/collapsed default state follows the same defaultOpen setting used by other tool cards, addressing #17003.

Changes:

  • Add defaultOpen?: boolean prop to ToolErrorCard and initialize its collapsible state from it.
  • Pass defaultOpen through to ToolErrorCard from the tool part renderer so errors follow the caller’s expand/collapse defaults.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
packages/ui/src/components/tool-error-card.tsx Adds defaultOpen support and uses it to initialize the collapsible open state.
packages/ui/src/components/message-part.tsx Wires tool part defaultOpen into ToolErrorCard for error rendering consistency.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nexxeln nexxeln merged commit db57fe6 into anomalyco:dev Mar 11, 2026
14 of 16 checks passed
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.

App: error tool cards do not respect 'expand tool' setting

3 participants