Skip to content

Commit 0b950cf

Browse files
committed
fix(acp): retain idle permission handling after main merge
1 parent 7fd75aa commit 0b950cf

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

‎packages/provider-acp/src/server/adapter.ts‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6393,9 +6393,7 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
63936393
const admitted = yield* runRuntimeCallbackAtGeneration(
63946394
handlerGeneration,
63956395
Effect.gen(function* () {
6396-
const context = followsAgentWorkState
6397-
? yield* Ref.get(activeTurn)
6398-
: yield* activeContext;
6396+
const context = yield* Ref.get(activeTurn);
63996397
// Kiro sends the tool's kind on its `tool_call` and leaves it
64006398
// off the permission request for that call; take it from the
64016399
// tool already seen under the same id so policy can tell a
@@ -6413,7 +6411,6 @@ export const makeAcpAdapterV2 = Effect.fn("makeAcpAdapterV2")(function* (
64136411
? { ...params, toolCall: { ...params.toolCall, kind: knownKind } }
64146412
: params,
64156413
);
6416-
64176414
if (disposition === "allow") {
64186415
const optionId = selectAutoApprovedPermissionOption(params);
64196416
return {

0 commit comments

Comments
 (0)