Merge pull request #44534 from NousResearch/bb/approval-allow-permanent

fix(approval): carry allow_permanent to TUI + desktop approval prompts
This commit is contained in:
brooklyn!
2026-06-11 18:49:58 -05:00
committed by GitHub
14 changed files with 202 additions and 29 deletions
+5 -1
View File
@@ -729,8 +729,12 @@ export function createGatewayEventHandler(ctx: GatewayEventHandlerContext): (ev:
return
case 'approval.request': {
const description = String(ev.payload.description ?? 'dangerous command')
// Only an explicit false (tirith warning) drops the permanent-allow option.
const allowPermanent = ev.payload.allow_permanent !== false
patchOverlayState({ approval: { command: String(ev.payload.command ?? ''), description } })
patchOverlayState({
approval: { allowPermanent, command: String(ev.payload.command ?? ''), description }
})
setStatus('approval needed')
return