Skip to content

Add expect_response to klat.response messages - #198

Merged
NeonDaniel merged 1 commit into
NeonGeckoCom:devfrom
OscillateLabsLLC:feat/klat-response-expect-response
Aug 14, 2026
Merged

NeonDaniel merged 1 commit into
NeonGeckoCom:devfrom
OscillateLabsLLC:feat/klat-response-expect-response

Conversation

@mikejgray

@mikejgray mikejgray commented Jul 31, 2026 •

Copy link
Copy Markdown
Contributor

Description

speak messages carry expect_response, which reaches WrappedTTS.execute as listen but is dropped when building klat.response. Local playback signals this via mycroft.mic.listen after TTS; klat/MQ sessions never reach that path, so remote clients (e.g. hana Node WebSocket) can't know a skill expects a reply. This breaks get_response and converse prompts for those clients.

Add expect_response to the klat.response payload so clients can trigger listening after playback.

Issues

Other Notes

Extended the existing test_execute klat assertions to cover the new key.

🤖 Generated with Claude Code

The `listen` flag (from `speak` message `expect_response`) is passed into
`WrappedTTS.execute` but was dropped when building `klat.response`, so
remote clients (neon-hana Node WebSocket, MQ/klat clients) have no way to
know a skill expects a reply and should re-open the mic. Local playback
handles this via `mycroft.mic.listen` after TTS, but klat sessions never
reach that path, breaking `get_response` and converse prompts for
remote Nodes.

Include the flag in the `klat.response` payload so clients can trigger
listening after response playback.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@mikejgray
mikejgray marked this pull request as ready for review July 31, 2026 02:34

@NeonDaniel NeonDaniel left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes here look good; added a note that neon-data-models also needs an update to support this new param

Comment thread neon_audio/tts/neon.py
@NeonDaniel
NeonDaniel merged commit ebfabea into NeonGeckoCom:dev Aug 14, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants