hermes - ✅(Solved) Fix [Bug]: Dashboard displays vision_analyze tool result as user message [2 pull requests, 1 comments, 1 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#22961Fetched 2026-05-11 03:32:03
View on GitHub
Comments
1
Participants
1
Timeline
9
Reactions
0
Participants
Timeline (top)
labeled ×4cross-referenced ×2referenced ×2commented ×1

Fix Action

Fixed

PR fix notes

PR #22988: Fix dashboard display role for vision_analyze pre-analysis

Description (problem / solution / changelog)

Summary

  • Normalize dashboard session message presentation so synthetic image pre-analysis is shown as a vision_analyze tool result instead of a user message.
  • Keep the underlying stored session rows unchanged; this only affects the dashboard API response.
  • Add focused tests for the dashboard message-role normalization helper.

Fixes #22961.

Tests

  • python -m pytest tests/cli/test_web_server_dashboard_messages.py
  • python -m py_compile hermes_cli/web_server.py

Changed files

  • hermes_cli/web_server.py (modified, +26/-1)
  • tests/cli/test_web_server_dashboard_messages.py (added, +32/-0)

PR #23036: fix(dashboard): display vision_analyze tool results with correct tool role styling

Description (problem / solution / changelog)

Problem

In the Dashboard, vision_analyze tool results are stored with role: "tool" but the MessageBubble component's ROLE_STYLES lookup only handles user, assistant, and system. Tool messages fall through to the default system style, making them visually indistinguishable or incorrectly styled.

Solution

Add tool role mapping to the assistant style in ROLE_STYLES. Tool results (like vision_analyze outputs) now render with the same styling as assistant messages.

Testing

  • Verified vision_analyze results display with assistant styling
  • No regression for user/assistant/system roles

Fixes #22961

Changed files

  • web/src/pages/SessionsPage.tsx (modified, +7/-1)
RAW_BUFFERClick to expand / collapse

Bug Description

In the Hermes Dashboard (Web UI) session view, the result of vision_analyze tool calls is displayed with the sender/role labeled as user, rather than tool or assistant. This makes the conversation history confusing when reading it in the Dashboard — it looks like the user sent the image analysis text, when in fact it was the vision model output. The actual message roles in the session data are correct, and agent behavior is unaffected — this is a Dashboard display-only issue.

Steps to Reproduce

  1. Send an image to Hermes via any messaging platform (QQ, Telegram, etc.) or CLI
  2. Hermes calls vision_analyze to analyze the image
  3. Open Dashboard → 会话 (Conversations) → View the session
  4. Observe the sender label for the vision_analyze result message — it shows "user"

Expected Behavior

The vision_analyze tool result should display with sender tool (or assistant if rendered inline as agent response).

Actual Behavior

The sender label incorrectly shows user for the vision_analyze result.

Environment

  • Hermes Agent v0.13.0 (2026.5.7)
  • Platform: QQ Bot via Gateway
  • Vision provider: GLM-4V-Flash (custom, auxiliary.vision)
  • Dashboard accessed via hermes web on WSL2

Additional Context

This appears to be a Dashboard UI rendering issue — the actual message roles in the session store are correct. Only the Dashboard display is misleading.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING