Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -317,6 +317,7 @@ private async Task HandleMessageAsync(string json)

case "interrupt":
// Playback stopped where the caller cut in; the caller's words follow as a prompt
bool sayAgain;
lock (_sync)
{
_quietSinceUtc = DateTime.UtcNow;
Expand Down Expand Up @@ -347,10 +348,12 @@ private async Task HandleMessageAsync(string json)
&& lineCutInto.StartsWith(heardOfLine, StringComparison.Ordinal) && CountWords(heardOfLine) >= HeardSomeWords;
_utteranceCutIn |= _utteranceOpen;
NoteCutIn();
sayAgain = _resumeLine != null;
}
var interruptedAfter = GetString(root, "durationUntilInterruptMs");
_logger.LogInformation(
$"Caller interrupted the agent in conversation {_conversationId} after {interruptedAfter} ms.");
$"Caller interrupted the agent in conversation {_conversationId} after {interruptedAfter} ms" +
(sayAgain ? $"; the line is said again if nothing follows for {_relay.ResumeAfterCutInSeconds} s." : "."));
break;

case "error":
Expand Down Expand Up @@ -938,6 +941,13 @@ private async Task ResumeIfSilentAsync()
// Anything from the caller since the cut-in (words, keys) is their turn: nothing is said again
if (_ended || _activity != _cutInActivity)
{
// Why logged: after a cut-in the line never came back and the call sat silent, and nothing showed whether
// the caller had started talking or the line was never set to be said again (a staging call, 2026-11-13)
if (!_ended)
{
_logger.LogInformation($"The caller spoke within {(DateTime.UtcNow - _cutInUtc).TotalSeconds:0.0} s of cutting in, " +
$"in conversation {_conversationId}; the line they cut into is not said again.");
Comment on lines +948 to +949
}
_resumeLine = null;
return;
}
Expand Down
Loading