diff --git a/mobile/lib/features/channels/agent_activity/observer_subscription.dart b/mobile/lib/features/channels/agent_activity/observer_subscription.dart index 89a7268cda..e29726ae96 100644 --- a/mobile/lib/features/channels/agent_activity/observer_subscription.dart +++ b/mobile/lib/features/channels/agent_activity/observer_subscription.dart @@ -369,6 +369,7 @@ class ObserverRelayNotifier extends Notifier { agentIndex: frame.agentIndex, channelId: frame.channelId, threadHeadId: frame.threadHeadId, + hasThreadScope: frame.hasThreadScope, sessionId: frame.sessionId, turnId: frame.turnId, startedAt: frame.startedAt, diff --git a/mobile/test/features/channels/agent_activity/observer_subscription_test.dart b/mobile/test/features/channels/agent_activity/observer_subscription_test.dart index 6f59538a7d..9cc6d786c7 100644 --- a/mobile/test/features/channels/agent_activity/observer_subscription_test.dart +++ b/mobile/test/features/channels/agent_activity/observer_subscription_test.dart @@ -379,7 +379,7 @@ void main() { seq: 2, channelId: channelId, turnId: 'turn-2', - ); + )..['threadHeadId'] = null; final earlierFrame = _observerFrameJson( seq: 1, channelId: channelId, @@ -412,6 +412,9 @@ void main() { reason: 'batch receipt order must follow timestamp and sequence', ); expect(frames[0].threadHeadId, 'thread-1'); + expect(frames[0].hasThreadScope, isTrue); + expect(frames[1].threadHeadId, isNull); + expect(frames[1].hasThreadScope, isTrue); final state = container.read(observerSubscriptionProvider(key)); expect(state.connection, ObserverConnectionState.open);