feat: add ignore option for permission requests (UI-only dismissal)

This commit is contained in:
2026-02-21 03:52:26 -06:00
parent 07783f2aea
commit 24ba1fdf76
5 changed files with 77 additions and 3 deletions

View File

@@ -26,7 +26,7 @@ import { handleTranscriptDebugSessions, handleTranscriptDebugRaw, handleTranscri
import {
handleHooksApprovalPermission, handleHooksApprovalPlan,
handleHooksApprovalRespond, handleHooksApprovalRespondPlan,
handleHooksApprovalList
handleHooksApprovalIgnore, handleHooksApprovalList
} from './hooks-approval'
export async function handleRequest(req: Request): Promise<Response> {
@@ -371,6 +371,11 @@ export async function handleRequest(req: Request): Promise<Response> {
if (res) return res
}
if (path === '/api/hooks-approval/ignore' && req.method === 'POST') {
const res = await handleHooksApprovalIgnore(req)
if (res) return res
}
// Agents
if (path === '/api/agents' && req.method === 'GET') {
return handleAgents(req)