Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(antigravity): agy CLI threads open in Full access and Auto-accept edits #33143

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 4 commits intomain fromrefs/pull/33143/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

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

x
0 of 4 viewed, 4 left
1 addition and 1 deletionapps/server/scripts/acp-mock-agent.tsModified
View file
@@ -97,7 +97,7 @@
const sessionId = "mock-session-1";
​
let currentModeId = antigravityProfile
- ? "default"
+ ? (process.env.T3_ACP_INITIAL_MODE ?? "default")
: copilotModesProfile
? copilotModeId("agent")
: "ask";
46 additions and 1 deletionapps/server/src/provider/Drivers/AntigravityDriver.test.tsModified
View file
@@ -81,6 +81,7 @@
readonly loginRequired?: boolean;
/** `data` of the agent's "Internal error" response to `session/new`. */
readonly newSessionErrorData?: unknown;
+ readonly initialMode?: string;
} = {},
) {
const directory = path.join(root, name);
@@ -101,6 +102,9 @@
: [
`export T3_ACP_NEW_SESSION_ERROR_DATA=${shellQuote(JSON.stringify(options.newSessionErrorData))}`,
]),
+ ...(options.initialMode === undefined
+ ? []
+ : [`export T3_ACP_INITIAL_MODE=${shellQuote(options.initialMode)}`]),
`exec ${shellQuote(nodePath)} ${shellQuote(mockAgentPath)} "$@"`,