Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): send messages queued during context compaction #10096

Closedf4llenz(GitHub profile, opens in a new tab)wants to merge 9 commits intomain fromrefs/pull/10096/headopened View on GitHub

Showing 2 changed files with 192 additions and 16 deletions (loading 1).

x
0 of 2 viewed, 2 left
192 additions and 16 deletionsapps/server/src/orchestration/Layers/ProviderCommandReactor.test.tsModified
View file
@@ -973,7 +973,7 @@
}),
​
- effectIt.effect("keeps turns blocked until compaction restores the session", () =>
+ effectIt.effect("sends turns requested during compaction once it settles", () =>
Effect.gen(function* () {
const readyDispatchStarted = yield* Deferred.make<void>();
const releaseReadyDispatch = yield* Deferred.make<void>();
@@ -1006,11 +1006,11 @@
createdAt,
- yield* dispatchTurn("before-blocked-compact", "hello", now);
+ yield* dispatchTurn("before-queued-compact", "hello", now);
yield* Effect.promise(() => waitFor(() => harness.sendTurn.mock.calls.length === 1));
yield* harness.engine.dispatch({
type: "thread.session.set",
- commandId: CommandId.make("cmd-session-ready-before-blocked-compact"),
+ commandId: CommandId.make("cmd-session-ready-before-queued-compact"),
threadId,
session: {
threadId,
@@ -1026,32 +1026,208 @@
blockReadyDispatch = true;
- yield* dispatchTurn("blocked-compact", "/compact", "2026-01-01T00:00:01.000Z");