Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): thread handoff no longer splits emoji when truncating long messages #48289

Opensaphid(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/48289/headopened View on GitHub

Showing 2 changed files with 57 additions and 1 deletion.

x
0 of 2 viewed, 2 left
50 additions and 0 deletionsapps/server/src/peer/handoff/ThreadHandoff.test.tsModified
View file
@@ -4,6 +4,7 @@
import {
CommandId,
EnvironmentId,
+ EventId,
linkOriginIsFenced,
MessageId,
OrchestratorMcpFailure,
@@ -14,6 +15,7 @@
ThreadId,
} from "@t3tools/contracts";
import { expect, it } from "@effect/vitest";
+import * as DateTime from "effect/DateTime";
import * as Deferred from "effect/Deferred";
import * as Fiber from "effect/Fiber";
import * as Context from "effect/Context";
@@ -387,6 +389,7 @@
return {
links: Context.get(linking, PeerLinks.PeerLinks),
orchestrator: Context.get(core, Orchestrator.OrchestratorV2),
+ sink: Context.get(core, EventSink.EventSinkV2),
threads: Context.get(core, ThreadManagement.ThreadManagementService),
handoff: Context.get(here, ThreadHandoff.ThreadHandoff),
@@ -1137,3 +1140,50 @@
).pipe(Effect.provide(layerTestHost)),