Skip to content

fix(ui): collapse verbose tool failure details #741

Closed

Description

@Astro-Han

Summary

Show a concise tool failure summary by default and move raw diagnostic details behind a disclosure.

Problem

A real tool validation failure currently renders a human-readable error card followed by a large raw error payload containing repeated messages and schema details. In the observed session, one failed turn grew to roughly 2631px and repeated the same failure several times.

This makes the conversation difficult to scan and gives internal diagnostics the same visual priority as the actionable explanation.

Refs #546

Proposed direction

Render one concise, actionable failure summary by default. Put raw validation details, tool arguments, and diagnostic payloads inside a collapsed disclosure that users can inspect or copy when needed.

Acceptance criteria

  • A tool failure has one clear default summary.
  • Repeated provider/runtime error text is deduplicated.
  • Raw diagnostic details are collapsed by default and keyboard accessible.
  • Copy behavior remains available for diagnostics.
  • Secret redaction and output-size caps remain enforced.
  • Validation, permission, unavailable-tool, timeout, and generic runtime failures are checked.
  • Long error payloads do not dominate the conversation until explicitly expanded.
  • Relevant renderer contracts and deterministic visual fixtures cover collapsed and expanded states.

Out of scope

  • changing tool execution or retry semantics
  • suppressing diagnostics needed for debugging

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions