Skip to content

fix: /stop command crash + UnboundLocalError in streaming media delivery#2463

Merged
teknium1 merged 1 commit intomainfrom
hermes/hermes-40b195db
Mar 22, 2026
Merged

fix: /stop command crash + UnboundLocalError in streaming media delivery#2463
teknium1 merged 1 commit intomainfrom
hermes/hermes-40b195db

Conversation

@teknium1
Copy link
Copy Markdown
Contributor

Two fixes from the open PR scan:

1. /stop crashes with ImportError (#2458)
CLI imported non-existent get_registry() from process_registry. Fixed to use the actual process_registry singleton and list_sessions() method.

2. Streaming media delivery uses undefined variable (#2424)
Our PR #2382 called _deliver_media_from_response(adapter=adapter) but adapter wasn't defined in that scope — it would crash with UnboundLocalError when streaming mode delivered MEDIA: tags. Fixed to resolve via self.adapters.get(source.platform).

2 files, +8/-7.

Two fixes:

1. CLI /stop command crashed with 'cannot import name get_registry' —
   the code imported a non-existent function. Fixed to use the actual
   process_registry singleton and list_sessions() method.
   (Reported in #2458 by haiyuzhong1980)

2. Streaming media delivery used undefined 'adapter' variable —
   our PR #2382 called _deliver_media_from_response(adapter=adapter)
   but 'adapter' wasn't guaranteed to be defined in that scope.
   Fixed to resolve via self.adapters.get(source.platform).
   (Reported in #2424 by 42-evey)
@teknium1 teknium1 merged commit 0962cbb into main Mar 22, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant