-
Notifications
You must be signed in to change notification settings - Fork 13k
Epic: Tool Confirmation Message Bus #7231
Copy link
Copy link
Labels
1.0/ui-improvementsStalearea/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalitypriority/p2Important but can be addressed in a future release.Important but can be addressed in a future release.workstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Metadata
Metadata
Assignees
Labels
1.0/ui-improvementsStalearea/coreIssues related to User Interface, OS Support, Core FunctionalityIssues related to User Interface, OS Support, Core Functionalitypriority/p2Important but can be addressed in a future release.Important but can be addressed in a future release.workstream-rollupLabel used to tag epics and features that are associated with one of the three primary workstreamsLabel used to tag epics and features that are associated with one of the three primary workstreams🔒 maintainer only⛔ Do not contribute. Internal roadmap item.⛔ Do not contribute. Internal roadmap item.
Type
Fields
Give feedbackNo fields configured for Epic.
Projects
Status
Closed
This issue tracks the implementation of the Tool Confirmation Message Bus as described in the RFC.
Summary
This project will implement a new pub/sub message bus to decouple tool confirmation logic from the core tool implementation. This will allow the agent/tools in the
@google-gemini/corepackage to request user confirmation for actions (e.g., executing a shell command) from the TUI in the@google-gemini/clipackage without a direct dependency. This architecture will also introduce a centralized Policy Service to manage tool execution rules, incorporating existing features like 'Always Allow' and non-interactive mode tool permissions from the outset.Implementation Plan
PR 1: Foundation & Scaffolding
packages/core/src/confirmation-bus/andpackages/core/src/policy/.MessageBus,PolicyEngine, and all related types.PolicyEngineintoMessageBus.Sessionobject.PR 2: Core Tool Integration
packages/core/src/tools/shell.tsto use the new message bus flow.PR 3: TUI Integration
useReactToolSchedulerto handleToolConfirmationRequestandToolPolicyRejectionmessages.