Skip to content
Source
Sign inSign up
pingdotgg/t3code

Refresh Codex protocol bindings and adapter mappings #2590

Mergedjuliusmarmingemerged 1 commit intomain fromrefs/pull/2590/headmerged by juliusmarminge View on GitHub

Showing 9 changed files with 39 additions and 1 deletion (loading 3).

x
0 of 9 viewed, 9 left
36 additions and 0 deletionsapps/server/src/provider/Layers/CodexAdapter.test.tsModified
View file
@@ -452,6 +452,7 @@
turnId: asTurnId("turn-1"),
itemId: asItemId("msg_1"),
payload: {
+ completedAtMs: 1_778_000_000_000,
threadId: "thread-1",
turnId: "turn-1",
item: {
@@ -494,6 +495,7 @@
turnId: asTurnId("turn-1"),
itemId: asItemId("plan_1"),
payload: {
+ completedAtMs: 1_778_000_000_000,
threadId: "thread-1",
turnId: "turn-1",
item: {
@@ -660,6 +662,40 @@
}),
​
+ it.effect("maps realtime started notifications with upstream realtime session ids", () =>
+ Effect.gen(function* () {
+ const { adapter, runtime } = yield* startLifecycleRuntime();
+ const firstEventFiber = yield* Stream.runHead(adapter.streamEvents).pipe(Effect.forkChild);
+​
+ yield* runtime.emit({
+ id: asEventId("evt-realtime-started"),
+ kind: "notification",