Repository navigation
Conversation
|
Thanks for the detailed write-up. I'm not landing this as-is, because remembering consent for The per-call native dialog is the only point where the user confirms that this answer is theirs. The answer payload is authored by the plugin, not by the host prompt, so once "Allow until quit" is granted the plugin (or a prompt-injected model behind it) can silently approve every subsequent tool permission request for the rest of the run — including shell/file writes — with no further user involvement. That is a standing privilege elevation, which This is also a new consent mode rather than a defect fix, so under the current contribution scope it would need maintainer sign-off on the security design first. A direction that could work: let the remembered grant cover only answers that are provably the user's own (e.g. bound to a host-issued, single-use token from a click in the plugin's panel), or exclude |
|
Thanks for the thorough PR. Before review, two things:
|
|
Thanks for your message. You're absolutely right, I posted this as a fix thinking in terms of permissions but it's a feature from the product perspective. The idea behind the change is to allow plugins to interact directly with the host sessions and agents (similar to Herdr with the greater PI-Desktop as base layer). In this case, it's the session that reports to the plugin and ask to allow running code. It can stay unidirectional to avoid any dangerous plugin operation. Let me know what you think. |
Summary / 概要
A plugin that relays the user's own answers to agent prompts (question cards, tool permissions) got the native "wants to run …" warning for every single answer, with only Deny / Allow once.
agent/askTool/resolve,tool/resolvePermission,plans/resolve,extensions/ui/respond, listed inDESKTOP_CONSENT_SESSION_OPERATIONS) now get a third button, Allow until quit (same wording as the fs consent dialog).session/delete,session/configure,agent/instructions/save, …) keeps Deny / Allow once; a"session"answer for them is treated as a refusal."once" | "session" | "deny"; a boolean from an older service is still accepted (true= once). Successful dangerous calls auditdata.consent.pluginDesktopConsent.allowSessionin all 9 locales (reuses the fs-consent translation); security spec §8.2 and plugin guide (en, zh-CN) updated.Tests: new case in
apps/desktop/test/plugin-desktop-control.test.mjs(remembered answer raises no second dialog; destructive op never offers it; Allow once never remembered; unload drops the grant).plugin-desktop-control10/10,plugin-runtime*+plugin-fs*49/49, i18n 31/31,apps/desktoptsc --noEmitclean.Requirement link / 需求关联
The only UI change is one extra button on the existing native dialog.