Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): keep silent turns open while native swarm workers are active #46824

Openitsthecsguy(GitHub profile, opens in a new tab)wants to merge 8 commits intomain fromrefs/pull/46824/headopened View on GitHub

Showing 6 changed files with 190 additions and 0 deletions (loading 4).

x
0 of 6 viewed, 6 left
55 additions and 0 deletionsapps/server/src/orchestration-v2/Adapters/AcpAdapterV2.test.tsModified
View file
@@ -483,6 +483,7 @@
readonly environment: (runtimeOrdinal: number) => Readonly<Record<string, string>>;
readonly runtimeMode?: "full-access" | "approval-required";
readonly watchPromptOutcome?: AcpAdapterV2Flavor["watchPromptOutcome"];
+ readonly readPromptBackgroundActivity?: AcpAdapterV2Flavor["readPromptBackgroundActivity"];
readonly wrapPrompt?: (
prompt: AcpSessionRuntime.AcpSessionRuntime["Service"]["prompt"],
) => AcpSessionRuntime.AcpSessionRuntime["Service"]["prompt"];
@@ -492,6 +493,7 @@
}) {
const childProcessSpawner = yield* ChildProcessSpawner.ChildProcessSpawner;
const natives: Array<AcpSessionRuntime.AcpSessionRuntime["Service"]> = [];
+ const inactivityChecks = yield* Queue.unbounded<"done" | "rearm" | "retired">();
const instanceId = ProviderInstanceId.make("acp-prompt-inactivity");
const adapter = yield* makeAcpAdapterV2({
instanceId,
@@ -502,6 +504,9 @@
...(input.watchPromptOutcome === undefined
? {}
: { watchPromptOutcome: input.watchPromptOutcome }),
+ ...(input.readPromptBackgroundActivity === undefined
+ ? {}
+ : { readPromptBackgroundActivity: input.readPromptBackgroundActivity }),
...(input.followAgentWorkState === true ? { followAgentWorkState: true } : {}),
makeRuntime: makeMockRuntime({
childProcessSpawner,
@@ -524,6 +529,9 @@