Preserve batch observer thread scope

Co-authored-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz>
Signed-off-by: Princess Donut <b238ea756dee4d98afa5883fc7f1de61eeabe65bf700e3a5a5a80db5e42e2c2b@buzz.block.builderlab.xyz>
This commit is contained in:
Princess Donut
2026-08-18 15:23:22 +01:00
parent 287e562280
commit 6dbfb88d05
2 changed files with 5 additions and 1 deletions

View File

@@ -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);