Feature request: retract/sync channel permission prompts when resolved elsewhere (Discord plugin)

Open 💬 0 comments Opened Jul 6, 2026 by muldoon711

Problem

When using a channel plugin (e.g. the official Discord plugin), permission requests are delivered as DMs with Allow/Deny buttons. If the request is instead resolved in the terminal session (or another surface), the channel message is never updated or retracted — stale permission prompts accumulate in the DM history.

The buttons are inert after resolution (the request_id is no longer pending), so this is clutter rather than a security issue, but with an active session the DM channel fills with dead prompts.

Proposal

Emit a notification when a pending permission request is resolved by any surface, e.g.:

notifications/claude/channel/permission_resolved with { request_id, outcome: "allowed" | "denied" }

Channel plugins that sent UI for that request could then edit the message (e.g. "✅ Allowed in another session") or delete it. The Discord plugin already tracks pendingPermissions keyed by request_id, so wiring an edit on resolution looks straightforward.

Environment

  • Claude Code running headless in a Docker container (Discord channel plugin v0.0.4)
  • Permission prompts answered sometimes via Discord buttons, sometimes in an interactive terminal attached to the same session

View original on GitHub ↗