Skip to content

A tiny friend in your Mac's notch and on your iPhone that keeps an eye on your AI coding agents: Claude Code, Codex, Cursor, Gemini CLI, Antigravity and more. Approve from the notch or your Lock Screen.

Merge #984: Windows and Linux: permission requests wait their turn (Ohualtex)

Claudedaebec8392b7
diff --cc windows/src/island/hooks.ts
index 06d14a38,31d7e27d..1584033a
--- a/windows/src/island/hooks.ts
+++ b/windows/src/island/hooks.ts
@@@ -505,20 -546,18 +546,18 @@@ function handleHook(island: Island, pay
if (requestId) void Bridge.approvalDecline(requestId);
break;
}
+
ensurePill();
supersedeStop();
- if (pendingTimeout != null) window.clearTimeout(pendingTimeout);
const tool = payload.tool_name ?? "Tool";
const input = payload.tool_input ?? {};
- // Claude Code asking a question is not a permission to grant: the island
- // shows the options and sends back the one that was picked. Only Claude
- // Code asks questions this way.
- const questions = isExternalAgent ? null : askedQuestions(tool, input);
+ // Claude Code (including Claude Desktop) asking a question is not a permission to grant: the island
+ // shows the options and sends back the one that was picked.
+ const isClaude = !isExternalAgent || validAgent === "claude-desktop";
+ const questions = isClaude ? askedQuestions(tool, input) : null;
const view = questions ? "question" : "approval";
- // The card always comes up, even over another pill or an island that is
- // already open: its pill comes to the front, and the one you were on
- // comes back once you answer (Mac #117, #120).
- State.beginApproval({
+
+ const info: ApprovalInfo = {
requestId,
sessionId,
pillId: agentId,