Repository navigation
fix: replacing a file needs an explicit replace and file writes always ask - #21
Merged
Merged
Conversation
Saving, exporting, running an action in a batch and exporting data sets now ask the person in the window every time, offering only Deny and Allow once, even when outside agents are allowed. A yes covers that one call, and a no refuses only that write. save_project and export_file take a replace argument, off by default. Without it a path that already exists is refused before anything is asked or written, and a new file is created exclusively so a file that appears meanwhile is kept. The tool descriptions, the harness skill, the manual and both HASHOUT logs describe the change.
The Save, Download Project and Unembed menu commands write a file without a dialog the person answers, and the links tool's unembed writes the same file. Through run_command, run_commands, links and the local command route they now ask in the window every time, offering only Deny and Allow once, like saving and exporting. The question names the command the window will actually run.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tests
How to ship