feat(mindspace): gate published page delivery
This commit is contained in:
@@ -36,6 +36,17 @@ test('resolvePostAgentRunChatState idles after worker-side agent run success', (
|
||||
);
|
||||
});
|
||||
|
||||
test('completed run wins when the direct-chat snapshot is not ready', () => {
|
||||
assert.equal(
|
||||
resolvePostAgentRunChatState({
|
||||
chatState: 'streaming',
|
||||
finishedViaPortalDirectChat: false,
|
||||
agentRunSucceeded: true,
|
||||
}),
|
||||
'idle',
|
||||
);
|
||||
});
|
||||
|
||||
test('shouldPromoteSessionIdToStreaming skips re-streaming after Finish', () => {
|
||||
assert.equal(shouldPromoteSessionIdToStreaming('idle'), false);
|
||||
assert.equal(shouldPromoteSessionIdToStreaming('waiting'), true);
|
||||
|
||||
Reference in New Issue
Block a user