fix for hey jibo again

This commit is contained in:
Jacob Dubin
2026-04-18 21:22:53 -05:00
parent 25d5ab1e43
commit d4b33a1635
12 changed files with 4334 additions and 0 deletions

View File

@@ -572,6 +572,27 @@ public sealed class JiboWebSocketServiceTests
Assert.Empty(replies);
}
[Fact]
public async Task InitialHotphraseListen_RemainsPendingInsteadOfGreeting()
{
var replies = await _service.HandleMessageAsync(new WebSocketMessageEnvelope
{
HostName = "neo-hub.jibo.com",
Path = "/listen",
Kind = "neo-hub-listen",
Token = "hub-initial-hotphrase-token",
Text = """{"type":"LISTEN","transID":"trans-initial-hotphrase","data":{"hotphrase":true,"rules":["launch","globals/global_commands_launch"]}}"""
});
Assert.Single(replies);
Assert.Equal("OPENJIBO_TURN_PENDING", ReadReplyType(replies[0]));
var session = _store.FindSessionByToken("hub-initial-hotphrase-token");
Assert.NotNull(session);
Assert.Null(session.LastIntent);
Assert.Null(session.LastTranscript);
}
[Fact]
public async Task SecondEmptyHotphraseTurn_BecomesGreetingAndKeepsFollowUpOpen()
{