Repository navigation
fix(plugins): let Agent question answers from a plugin be allowed until quit - #2514
Merged
Merged
Conversation
…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
Deploying pi-desktop with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A plugin relaying the user's answers through
desktop.controlraised the native consent dialog for every answer (#2504).agent/askTool/resolveoffers 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/respondand destructive operations keep Deny / Allow once; asessionanswer 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.true= once).pluginDesktopConsent.allowSessionin 9 locales; security spec §8.2 and plugin guides updated.Tests
plugin-desktop-control,plugin-runtime*,plugin-fs*, consent dialog: 60/60; i18n 31/31; desktop typecheck and architecture check clean.Closes #2504