Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(acp): auto-approve detached full-access permission requests when continuation cannot attach #40673

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

Showing 5 changed files with 148 additions and 3 deletions (loading 4).

x
0 of 5 viewed, 5 left
148 additions and 3 deletionsapps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.test.tsModified
View file
@@ -1647,6 +1647,8 @@
options?: {
readonly profileDirectory?: string;
readonly initialToolCalls?: ReadonlyArray<EffectAcpSchema.SessionUpdate>;
+ readonly runtimeMode?: ProviderAdapter.ProviderAdapterV2RuntimePolicy["runtimeMode"];
+ readonly disableContinuationRequests?: boolean;
readonly steerDispatchGate?: {
readonly reached: Deferred.Deferred<void>;
readonly release: Deferred.Deferred<void>;
@@ -1703,7 +1705,13 @@
const adapterOptions: AntigravityAdapterV2Options = {
instanceId,
selfInvocation,
- continuationRequests: { offer: (request) => Effect.sync(() => void offers.push(request)) },
+ ...(options?.disableContinuationRequests
+ ? {}
+ : {
+ continuationRequests: {
+ offer: (request) => Effect.sync(() => void offers.push(request)),
+ },
+ }),
makeRuntime: (input) => {
terminate = input.onTermination;
return makeAntigravityAcpRuntime({
@@ -1860,8 +1868,9 @@
Queue.offer(promptSettledWithBackgroundWork, undefined),