@devries-cameron20 / t3code Mirror · read-only / commits / 2d40894328
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 20:45 UTC

fix(server): keep Antigravity question options and no-custom-answer flag in V2 (#22019)

fixfon committed Oct 21, 2026 at 16:16 UTC 2d408943287b7f9e7cdc8ba6379a617569b21afd
2 files changed +18 -10
apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.ts
+17
@@ -96,6 +96,23 @@ describe("AntigravityAdapterV2 flavor", () => {
96 ),
97 );
98 });
99 +
100 + it("keeps the question card to the agent's own options so a typed answer cannot be sent", () => {
101 + const question = flavor.extractPermissionQuestion?.(
102 + permissionRequest("interaction_2", [
103 + { optionId: "opt-main", name: "main", kind: "allow_once" },
104 + { optionId: "opt-dev", name: "dev", kind: "allow_once" },
105 + ]),
106 + );
107 + assert.strictEqual(question?.question.allowCustomAnswer, false);
108 + assert.deepEqual(
109 + question?.question.options.map((option) => option.value),
110 + ["opt-main", "opt-dev"],
111 + );
112 + assert.deepEqual(question?.respond({ interaction_2: "opt-dev" }), {
113 + outcome: { outcome: "selected", optionId: "opt-dev" },
114 + });
115 + });
116 });
117
118 const layerSession = Layer.mergeAll(
apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts
+1 -10
@@ -198,16 +198,7 @@ export function makeAntigravityAcpAdapterFlavor(
198 const question = extractAntigravityUserInputQuestion(request);
199 if (question === undefined) return undefined;
200 return {
201 - question: {
202 - id: question.id,
203 - header: question.header,
204 - question: question.question,
205 - options: question.options.map((option) => ({
206 - label: option.label,
207 - description: option.description,
208 - })),
209 - multiSelect: false,
210 - },
201 + question,
202 respond: (answers) => makeAntigravityUserInputResponse(request, answers),
203 };
204 },