mirror of
https://github.com/Ark0N/Codeman.git
synced 2026-11-14 02:29:33 +01:00
Merge pull request #610: fix(approvals): treat DeepSeek permission prompts as terminal-only alerts
This commit is contained in:
commit
0feb5658ca
9 files changed
+119
-24
No files matched your search
+5
-1
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user