Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(acp): a steered Antigravity turn keeps the answer to the earlier prompt visible #43150

Opencostaspanay(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/43150/headopened View on GitHub

Showing 2 changed files with 186 additions and 4 deletions (loading 1).

x
0 of 2 viewed, 2 left
186 additions and 4 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -1647,6 +1647,8 @@
options?: {
readonly profileDirectory?: string;
readonly initialToolCalls?: ReadonlyArray<EffectAcpSchema.SessionUpdate>;
+ /** The first prompt only starts its work and writes no reply. */
+ readonly skipInitialReply?: boolean;
/** Finalization pauses here between marking the turn finalized and clearing it. */
readonly finalizeGate?: {
readonly reached: Deferred.Deferred<void>;
@@ -1750,10 +1752,12 @@
- yield* send({
- sessionUpdate: "agent_message_chunk",
- content: { type: "text", text: "I'll render once the fetch finishes." },
- });
+ if (options?.skipInitialReply !== true) {
+ yield* send({
+ sessionUpdate: "agent_message_chunk",
+ content: { type: "text", text: "I'll render once the fetch finishes." },
+ });
+ }
yield* send(usage);
if (steering?.holdsFirstPrompt === true) yield* Deferred.await(steered);
return { stopReason: "end_turn" as const };
@@ -2650,6 +2654,184 @@
}).pipe(Effect.provide(layerSession)),