Skip to content

Commit 3f9dcb3

Browse files
committed
revert: restore Claude in ACP permission decision handling
Claude now runs as ACP (ClaudeAcpSession), so it should use ACP-style permission decisions. The previous exclusion was incorrect.
1 parent d6d1e7f commit 3f9dcb3

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

apps/free/app/sources/sync/agentFlavor.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,7 @@ export function getCapabilityPresetFlavor(
2424
}
2525

2626
export function usesAcpPermissionDecisions(flavor: SessionFlavor | null | undefined): boolean {
27-
if (!flavor) {
28-
return false;
29-
}
30-
// Claude uses its own permission protocol (mode/allowedTools), not the ACP-style
31-
// decision enum (approved/approved_for_session/abort).
32-
if (flavor === 'claude') {
33-
return false;
34-
}
35-
return true;
27+
return Boolean(flavor);
3628
}
3729

3830
export function coerceAgentType(flavor: unknown): AppAgentFlavor {

0 commit comments

Comments
 (0)