Commit Graph
1 Commits
Author SHA1 Message Date
RehuzandClaude Opus 5 f29aa0faef fix(tts): send stream_resumed to the same hook path as the other stream events (#1585)
_onTtsStreamingResume asked for "streaming-event" while stream_open,
stream_paused, stream_closed and user_interruption all ask for
"/streaming-event".

That one missing slash decides whether the event reaches an HTTP application at
all. HttpRequestor joins a hook path to the app's baseUrl only when it is
relative, and relative means starting with a slash:

  _isRelativeUrl(u) { return typeof u === 'string' && u.startsWith('/'); }
  const absUrl = this._isRelativeUrl(url) ? `${this.baseUrl}${url}` : url;

"streaming-event" is neither relative nor absolute, so it is passed through
unjoined and never lands on the application. The call site catches and logs the
failure rather than raising it, so an application simply sees stream_paused with
no matching stream_resumed and nothing anywhere says why.

Present since the verb was introduced in #994. Found by reading the file, so
there is no issue to close.

Tests: the two new cases fail against the unpatched line and pass with it.

Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
2026-09-05 11:32:26 +01:00