Skip to content

fix(plugins): let Agent question answers from a plugin be allowed until quit - #2514

Merged
vastsa merged 1 commit into
mainfrom
fix/plugin-desktop-consent-prompt-answers
Nov 22, 2026
Merged

vastsa merged 1 commit into
mainfrom
fix/plugin-desktop-consent-prompt-answers

Conversation

@vastsa

@vastsa vastsa commented Nov 22, 2026

Copy link
Copy Markdown
Owner

Summary

A plugin relaying the user's answers through desktop.control raised the native consent dialog for every answer (#2504).

  • Only agent/askTool/resolve offers Allow until quit. Answering a question approves nothing; the Agent's next action still crosses the host tool permission gate.
  • tool/resolvePermission, plans/resolve, extensions/ui/respond and destructive operations keep Deny / Allow once; a session answer for them is treated as a refusal. This addresses the privilege-elevation concern raised on fix(plugins): let prompt answers from a plugin be allowed until quit #2505.
  • Grants are in memory, per plugin and operation, dropped on explicit stop or quit (not on supervisor restart). Boolean consent services stay accepted (true = once).
  • i18n pluginDesktopConsent.allowSession in 9 locales; security spec §8.2 and plugin guides updated.

Tests

  • New runtime regression test (fails on old code) + dialog option/answer mapping test.
  • plugin-desktop-control, plugin-runtime*, plugin-fs*, consent dialog: 60/60; i18n 31/31; desktop typecheck and architecture check clean.

Closes #2504

…il quit

A plugin that relays the user's answers to Agent questions through
desktop.control raised the native "wants to run" dialog for every single
answer, which made such plugins unusable.

Only agent/askTool/resolve now offers "Allow until quit": answering a
question approves nothing, and the Agent's next action still crosses the
host's own tool permission gate. Tool permissions, plan checkpoints,
trusted extension prompts, and destructive operations keep Deny / Allow
once, because a remembered plugin-authored answer to them would approve
later requests without the user. Grants live in memory per plugin and
operation and are dropped on an explicit stop or quit.

fixes #2504
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying pi-desktop with  Cloudflare Pages  Cloudflare Pages

Latest commit: 0bb3186
Status: ✅  Deploy successful!
Preview URL: https://c5661b99.pi-desktop.pages.dev
Branch Preview URL: https://fix-plugin-desktop-consent-p.pi-desktop.pages.dev

View logs

@vastsa
vastsa merged commit aa03aa6 into main Nov 22, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] Plugin desktop-control consent dialog repeats for every prompt answer

1 participant