"allow always" in the confirmation dialog with project-local storage of allowances #43
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
commands that show a confirmation dialog must also be showing a "allow always" that then destills the main commands and their combination out of the command and stores that signature as a project-local dotfile, so that later checks can recognize that. Command signatures are the base commands and the concatenating operators (pipe or double-ampersand). this prevents the system from constantly asking.
Another option could be to ask the AI model with a oneshot prompt for a signature of the command that is reduced by the uncritical parts and reduces. it to a singular fact that would be same for any similar command and an "allow always" would then only target this signature.