Merge pull request #610: fix(approvals): treat DeepSeek permission prompts as terminal-only alerts

This commit is contained in:
Codeman maintainer committed 2026-10-13 18:29:01 +02:00
commit 0feb5658ca
9 files changed
+119 -24

No files matched your search

+5 -1
View File
@@ -2771,9 +2771,13 @@ export class WebServer extends EventEmitter {
// Approvals Inbox item id: lets sw.js answer an Approve/Deny action
// click directly (POST /api/approvals/:id/answer) with no tab open.
// Gated on the opt-in setting together with the action buttons.
// Approve/Deny only when we also have an approvalId to answer with.
// Supervised-hook CLIs (DeepSeek) omit approvalId upstream so this also
// strips their action buttons — buttons without an id can never answer.
approvalId: approvalsEnabled && typeof data.approvalId === 'string' ? data.approvalId : undefined,
urgency: template.urgency,
actions: approvalsEnabled ? template.actions : undefined,
actions:
approvalsEnabled && typeof data.approvalId === 'string' ? template.actions : undefined,
});
for (const sub of subscriptions) {