Skip to content

Fix issue with large error msgs #1444

Open
@tomsmith8

Description

@tomsmith8

Cap excessive error message size in Agent logs

Issue:
Agent updates are currently producing extremely large error messages, particularly in cases such as login failures or ontology mismatches. These logs include full serialized JSON responses and internal states, resulting in:

  • Bloated and unreadable log output (see screenshot).
  • Poor developer experience when debugging.
  • Potential UI performance issues due to oversized log payloads.

Screenshot Example:
Image

Proposed Solution:

  • Introduce a character or payload size cap for error logs shown in the Agent update panel.
  • Display a truncated version of long logs by default, with an optional “View full details” toggle or expandable section.
  • Ensure critical information remains visible (e.g., top-level error message, query input, tool name).

Acceptance Criteria:

  • Logs exceeding the defined cap are trimmed with an ellipsis and/or "Show more" control.
  • Key debugging data is preserved in the initial view.
  • Log display no longer causes horizontal scroll or layout issues in the UI.
  • Performance remains stable regardless of error log size.

Metadata

Metadata

Assignees

Labels

BountiesbugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions