Repository navigation
fix: agent consent for chosen-path exports, safer Windows agent starts, guest sockets, media headers and whole-file saves - #27
Merged
Conversation
export_deck with a path writes a file outside the Exports folder, so it now goes through the same consent check as other changing tools, and is refused when the person has blocked agents. Exports with no path still write into the Exports folder without asking.
A shared window was counted as a formdeck window until it sent hello, so agent questions and tool calls could be routed to it. The connection is now a guest as soon as it opens.
Library media and unpacked files now carry nosniff and a sandboxed content policy, so a stored file opened directly in a browser cannot run script on the engine's origin. Pictures, video, audio and fonts load as before.
The agent manifest is generated from the consent gate; regenerate it now that export_deck to a chosen path asks the person.
On Windows a Claude Code install that is a .cmd shim is started through the command interpreter, which reads the command line with its own quoting rules and stops at the first line break. The Chat and layout ideas prompt now goes on standard input, and a tab started that way gets its first message typed in after it opens.
Saves and exports wrote straight into the chosen file, so a write that failed partway left it cut short. They now write a temporary file beside it and move it into place, keeping the file's permissions, and a failed outline, GIF or composed export answers with a clear error.
…nterpreter On Windows a .cmd or .bat agent program was started through cmd.exe /c with its arguments as they were. The shared finder (1.0.2) now follows an npm shim to the exe or node script it starts and runs that directly. Any other .cmd or .bat still goes through the interpreter, and a word with a control character, a percent sign or a double quote, or with one of the interpreter's special characters outside a quoted word, is refused with a clear message.
The command interpreter keeps the quotes of a /c line only when there are exactly two with nothing special between them; otherwise it drops the first and last quote, which shifts every quote in between. The shared finder (1.0.2) now refuses a program path that holds & | < > ^ ( ) ! @, and a quoted program path followed by another quoted word. A name such as claude.cmd. counts as a .cmd, and an npm shim is not followed to a node on PATH that is itself a .cmd or .bat. The recorded hash of 1.0.2 is updated.
Saving over a file that is a symbolic link replaced the link with a plain file. The whole-file write now follows the link and replaces the file it points to, as the direct write did before.
A .cmd file passes its words on with %*, which the command interpreter reads again, and quotes do not hold against its expansion, so a quoted word is no protection. When the interpreter is still used (a .cmd or .bat that is not an npm shim the finder can follow), any word holding a control character or one of & | < > ^ ( ) ! % " is now refused, with or without a space, and the message points to standard input or a file for long text. An npm shim is still run directly as its exe or node and script. The recorded hash of the shared finder 1.0.2 is updated.
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