Bring the checked-in command reference up to date with the Linux picker rules

The reference still said a path rule cancels a file picker on Linux and that a save picker needs a new
file, so the reference test failed.
This commit is contained in:
SoftFever committed 2026-11-21 19:17:25 +08:00
1 parent 867ba9b005
commit e7bcdbe01e
1 file changed
+2 -2
+2 -2
View File
@@ -19557,7 +19557,7 @@
},
{
"completion": "immediate",
"description": "Answer modal dialogs automatically when their title or message matches a rule's regex (case-insensitive). app_state.auto_answer_rules lists the rules in force. Called from a replay or script, the rules join those it set before and last until it ends, and a plugin's likewise until it unloads; an MCP client's replace the ones MCP clients set before and last until the MCP server stops, and an empty list clears them. Reply: scope (run, plugin or session), rules (uses counts a rule's answers) and answered_open_dialog. A native dialog returns the rule's button at once and never shows. A file or folder picker takes button ok with an absolute path and returns it without showing (on Linux such a rule cancels it); without a path a picker can only be cancelled, and a multi-select picker takes no path. A wx dialog is answered as dialog_answer does. A matching dialog already open is answered too (answered_open_dialog), so a prompt that shows around the same time, such as the restore prompt after startup, is caught either way. A web dialog is matched by its title: a button that names one of its shown wx buttons (by label, standard name or id) is pressed as for a wx dialog, any other on its page once it shows there, for up to 10 s after the page loads; past that, cancel and close end the dialog and any other button gives up.",
"description": "Answer modal dialogs automatically when their title or message matches a rule's regex (case-insensitive). app_state.auto_answer_rules lists the rules in force. Called from a replay or script, the rules join those it set before and last until it ends, and a plugin's likewise until it unloads; an MCP client's replace the ones MCP clients set before and last until the MCP server stops, and an empty list clears them. Reply: scope (run, plugin or session), rules (uses counts a rule's answers) and answered_open_dialog. A native dialog returns the rule's button at once and never shows. A file or folder picker takes button ok with an absolute path and returns it without showing; without a path a picker can only be cancelled, and a multi-select picker takes no path. A wx dialog is answered as dialog_answer does. A matching dialog already open is answered too (answered_open_dialog), so a prompt that shows around the same time, such as the restore prompt after startup, is caught either way. A web dialog is matched by its title: a button that names one of its shown wx buttons (by label, standard name or id) is pressed as for a wx dialog, any other on its page once it shows there, for up to 10 s after the page loads; past that, cancel and close end the dialog and any other button gives up.",
"destructive": false,
"group": "Driving the GUI",
"guard": "recover",
@@ -19584,7 +19584,7 @@
"type": "boolean"
},
"path": {
"description": "Absolute path a matching file or folder picker returns, with button ok. A picker has no title until it shows, so the rule matches its prompt and must not anchor on a title with ^. The rule answers pickers only: an open picker needs an existing file, a folder picker an existing folder, and a save picker a new file. A picker the path can't serve is cancelled and the reason logged.",
"description": "Absolute path a matching file or folder picker returns, with button ok. A picker has no title until it shows, so the rule matches its prompt and must not anchor on a title with ^. The rule answers pickers only: an open picker needs an existing file, a folder picker an existing folder, and a save picker the file's final name, new unless overwrite: overwrite is checked against this path, and the picker's caller may still add an extension. A picker the path can't serve is cancelled and the reason logged.",
"type": "string"
}
},