Repository navigation
Done
Feature
2 / 22 of 2 issues completed
Copy link
Labels
enhancementNew feature or requestepicParent issue of several sub-issues; not worked on directlyfrontendFrontend (React/TypeScript)
Milestone
Description
Goal
In the confirmation dialog, the user creates allow rules per sub-command of a compound command instead of choosing from rule bundles for the whole command. Several sub-commands can be given a rule one after another, each with its own suggested level and scope; the rules are saved with a separate "Save rules" button, and the command is still executed or denied with the existing buttons.
Scope
- Backend: per-segment rule suggestions with verdict for a chosen scope, and saving several staged rules (each with its own scope) atomically without resolving the pending confirmation.
- Frontend: segment list with an expand toggle per sub-command, inline suggestions and scope choice, staged state per row, "Save rules" button; the whole-command split button "Accept + Rule ▾" is removed.
- Not in scope: changes to the filter engine's decision logic, the rule management screen.
Shared decisions
- The whole-command suggestion button (
QuickRuleButton, "Accept + Rule ▾") is replaced completely, also for single commands. - Scope (This Server / Global / Tag) is chosen per sub-command; default This Server.
- Rules are saved only by a separate "Save rules (N)" button; saving does not execute or deny the command. Execute and Deny keep their meaning.
- Suggestion kinds and their order stay as in spec 0011 §2 (exact, path-scoped, last-arg-open, subcommand, tool), computed per segment (
analyze_segmentincrates/app-logic/src/rule_suggestions.rs). - Spec
docs/specs/0011-rule-quick-accept.mdis the reference; both sub-issues update it.
Sub-issues
- Rule suggestions per sub-command and batch save of staged rules #1356 backend: per-segment suggestions and batch save
- Confirmation dialog: expand each sub-command to stage an allow rule, save rules separately #1357 frontend: per-sub-command staging in the dialog (blocked by Rule suggestions per sub-command and batch save of staged rules #1356)
Sub-issues
Collapse Sub-issuesSub-issues
Loading 2 sub-issues
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestepicParent issue of several sub-issues; not worked on directlyfrontendFrontend (React/TypeScript)
Type
Fields
Priority
None yet
Activity
smart-ssh-maintainer commentedon Nov 24, 2026
All sub-issues are done, closing the epic.