Skip to content

[Bug]: session state isnt persistent on the hermes desktop app #43158

Closed as not planned

Description

@phantomic12

Bug Description

when closing and re-opening hermes-desktop, the session indicator on active sessions doesnt sync - and when you try to send messages when the task is ongoing, you get an error that says session busy.

Steps to Reproduce

start chat with hermes
when chat is active, close and open desktop app
send message in active chat

Expected Behavior

session state remains whatever it is, (active, interrupted, etc) and messages are sent as interrupts

Actual Behavior

sessions appear inactive and when sending a message, instead of an interrups, you get an error saying session is busy. you also cant delete them, closing and reopening is the only way to get rid of those messages, they persist across multiple chats

Affected Component

Other

Messaging Platform (if gateway-related)

No response

Debug Report

desktop error

Operating System

win11 desktop, ubuntu 24.04.4 server docker host

Python Version

No response

Hermes Version

0.16.0 client/backend

Additional Logs / Traceback (optional)

Root Cause Analysis (optional)

No response

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

Activity

  1. added
    type/bugSomething isn't working
    P3Low — cosmetic, nice to have
    comp/gatewayGateway runner, session dispatch, delivery
    on Jun 9, 2026
  2. teknium1 commented on Jul 14, 2026

    @teknium1
    Collaborator

    Implemented on current main — automated hermes-sweeper review.

    • 62af32efe persists the last routed Desktop session and restores it on cold start in apps/desktop/src/app/desktop-controller.tsx:272-294; useRouteResume then resumes that route.
    • tui_gateway/server.py:5627-5648 reuses a live session on resume and returns its current running/status payload to the reconnecting client.
    • tui_gateway/server.py:8433-8452 routes a prompt received during a live turn through _handle_busy_submit; the default policy interrupts and queues it (tui_gateway/server.py:5118-5125) rather than returning session busy.
    • 18916376f added Desktop regression coverage for retrying transient busy responses without surfacing an error. The relaunch restoration shipped in v2026.7.1 / v0.18.0.

    The linked PR #44330 and the duplicate consolidation noted on #45270 describe the same restoration mechanism, which current main already provides.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Low — cosmetic, nice to havecomp/gatewayGateway runner, session dispatch, deliverysweeper:implemented-on-mainSweeper: behavior already present on current maintype/bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions