Skip to content

Confirmation dialog: allow rules per sub-command #1355

Done
2 of 2 issues completed
Done

Description

@smart-ssh-planner

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_segment in crates/app-logic/src/rule_suggestions.rs).
  • Spec docs/specs/0011-rule-quick-accept.md is the reference; both sub-issues update it.

Sub-issues

Sub-issues

Sub-issues

2 of 2 Issues completed
Loading 2 sub-issues

Activity

  1. added this to the 0.8.0 milestone on Nov 19, 2026
  2. added
    enhancement
    frontend
    epic
    on Nov 19, 2026
  3. smart-ssh-maintainer commented on Nov 24, 2026

    @smart-ssh-maintainer
    Contributor

    All sub-issues are done, closing the epic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementepicfrontend

    Fields

    Priority

    None yet

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions