hermes - 💡(How to fix) Fix [Bug]: webui: Chat sidebar model picker changes don't take effect in chat until tab switch [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#16667Fetched 2026-04-28 06:51:49
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Author
Participants
Timeline (top)
labeled ×3

Error Message

Additional Logs / Traceback (optional)

Root Cause

Root Cause Analysis (optional)

Code Example

Report       https://paste.rs/1XncH
  agent.log    https://paste.rs/LAiaS
  gateway.log  https://paste.rs/TaEga

---
RAW_BUFFERClick to expand / collapse

Bug Description

When using the web dashboard Chat tab (hermes dashboard --tui), switching the model via the sidebar model picker only updates the sidebar badge. The underlying PTY/TUI session continues using the previously selected model. The new model only takes effect after navigating to another dashboard tab and back (which re-spawns the PTY).

Steps to Reproduce

  1. Open the dashboard Chat tab
  2. Click the model name in the sidebar to open the model picker
  3. Select a different model
  4. The sidebar badge updates to show the new model
  5. Send a message to the agent — it still uses the old model
  6. Click SESSIONS or CONFIG in the sidebar, then click CHAT again
  7. Now the new model is active

Expected Behavior

Selecting a model from the sidebar model picker should immediately take effect in the active chat session. The agent should use the newly selected model for the next message.

Actual Behavior

The sidebar badge updates to show the new model, but the underlying PTY/TUI chat session continues using the previously selected model. The new model only activates after navigating to a different dashboard tab and back, which re-spawns the PTY.

Affected Component

Other

Messaging Platform (if gateway-related)

No response

Debug Report

Report       https://paste.rs/1XncH
  agent.log    https://paste.rs/LAiaS
  gateway.log  https://paste.rs/TaEga

Operating System

Debian 13

Python Version

3.11.15

Hermes Version

0.11.0

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

The ChatSidebar opens its own JSON-RPC sidecar WS to the TUI gateway, separate from the PTY child running the Ink TUI. Model selection goes to the sidecar/gateway but the PTY (Ink) is already spawned with the old model and doesn't pick up the change until it's re-spawned. Environment: Hermes 0.11.0

Proposed Fix (optional)

No response

Are you willing to submit a PR for this?

  • I'd like to fix this myself and submit a PR

extent analysis

TL;DR

The issue can be resolved by ensuring the PTY/TUI session is updated or re-spawned immediately after selecting a new model from the sidebar model picker.

Guidance

  • Investigate the JSON-RPC sidecar WS connection between the ChatSidebar and the TUI gateway to understand how model selection updates are communicated.
  • Verify that the PTY child process running the Ink TUI is properly notified of model changes and can update its configuration accordingly.
  • Consider adding a mechanism to re-spawn the PTY session or update its configuration immediately after a new model is selected, rather than requiring navigation to another tab and back.
  • Review the provided debug reports (agent.log, gateway.log) for any clues on why the model update is not being propagated to the PTY session.

Example

No specific code example can be provided without further details on the implementation, but the fix likely involves modifying the ChatSidebar's model selection handler to trigger an update or re-spawn of the PTY session.

Notes

The root cause analysis suggests a disconnect between the model selection update mechanism and the PTY session's configuration. The proposed fix should focus on bridging this gap.

Recommendation

Apply a workaround to re-spawn the PTY session after model selection, as upgrading to a fixed version is not mentioned as an option. This approach directly addresses the identified issue and provides an immediate solution.

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

hermes - 💡(How to fix) Fix [Bug]: webui: Chat sidebar model picker changes don't take effect in chat until tab switch [1 participants]