Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): background subagent tools no longer split streaming replies #46160

Openvitalikish(GitHub profile, opens in a new tab)wants to merge 6 commits intomain fromrefs/pull/46160/headopened View on GitHub

Showing 7 changed files with 220 additions and 0 deletions (loading 6).

x
0 of 7 viewed, 7 left
220 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.tsModified
View file
@@ -10515,6 +10515,226 @@
}).pipe(Effect.provide(layerTest)),
+ it.effect(
+ "session/load replay keeps unnamed messages intact across forwarded child tools and still splits on root tools",
+ () =>
+ Effect.gen(function* () {
+ const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
+ const selfInvocation = yield* resolveSelfInvocation();
+ const mockAgentPath = yield* bundledMockAgentPath;
+ const instanceId = ProviderInstanceId.make("acp-test");
+ type RuntimeService = AcpSessionRuntime.AcpSessionRuntime["Service"];
+ let sessionUpdateHandler: Parameters<RuntimeService["handleSessionUpdate"]>[0] | undefined;
+ const adapter = yield* makeAcpAdapterV2({
+ instanceId,
+ selfInvocation,
+ flavor: {
+ driver: ACP_TEST_DRIVER,
+ capabilities: AcpProviderCapabilitiesV2,
+ isChildSessionToolCall: (toolCallId, rootSessionId) =>
+ toolCallId.startsWith("child-1:") && rootSessionId !== "child-1",
+ makeRuntime: makeMockRuntime({
+ childProcessSpawner,
+ mockAgentPath,
+ wrapRuntime: (runtime) => ({
+ ...runtime,
+ handleSessionUpdate: (handler) =>
+ Effect.sync(() => {
+ sessionUpdateHandler = handler;