Repository navigation
fix: safer file writes, clearer agent prompts, and stricter local and Windows start checks - #20
Merged
Merged
Conversation
…t whole The permission question for open_file, place_image, save_project and export_file now names the path and says when a file there will be replaced. Saves and exports write through a temporary file in the same folder, so an interrupted write leaves the old file as it was.
Unembed Image asks the engine for a free name, so a second image with the same name is written as 'Image 2.png' instead of replacing the file the first image is linked to. Files the window writes replace an existing file whole, through a temporary file.
When two files in a batch would be saved under the same name (logo.svg and logo.pdf saved as PNG), the later one is numbered, as data merge already does.
The local guard now checks the connecting address as well as the Host header, so an engine bound to another address still refuses other computers on the network.
An agent program that still starts through cmd.exe /c after its npm shim is resolved is started only when no word holds %, !, a control character or a line break, and cmd's own characters sit inside quotes, read as cmd reads the line. Otherwise the tab, Chat, the check and the setup scripts say why and do not start it.
The permission question shows the file a path resolves to, through links and parent steps, and names the output folder for an action batch or a data set export, saying when a batch would replace the files it reads.
The launcher and the setup script refuse a batch-file path that cmd would change before asking it for its version, and a batch-file name with trailing dots or spaces is treated as a batch file.
A word passed to an agent that still starts through cmd.exe /c is refused when it holds & | < > ^ ( ) ! % " or a control character, with or without spaces or quotes, since the batch file reads %* again. The refusal says to pass long text through standard input or a file. An npm shim keeps resolving to the node script or exe it wraps, which starts directly with its words as a list. The Codex server entry uses single-quoted TOML, and the launcher hands a batch-file Claude Code its server list as a file.
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
For the owner
How to ship