Repository navigation
fix: pass agent messages through unchanged, accept only the window's own origin, and expand a tilde in the data folder - #16
Merged
Conversation
The desktop shell loads the window from the engine's own address, so the origins every Tauri web view shares are no longer let through.
On Windows an npm launcher's target is started directly instead of through the command interpreter, and text that interpreter would change is refused when there is no other way. On macOS and Linux both launchers quote for the person's own login shell, fish included. Stopping Chat on Windows ends the whole process tree.
Windows drops trailing dots and spaces when it opens a file, so such a path is started the same way as the plain .cmd or .bat name.
Extra slashes after the tilde stay under the home folder, and a tilde followed by a backslash is expanded on Windows only.
…uments A batch file reads its arguments again through %*, so quoting does not protect them. When an agent program is a plain .cmd or .bat (not an npm launcher that can be started directly), any word holding a control character or one of & | < > ^ ( ) ! % " is now refused, quoted or not, and the message points to standard input or a file for long text.
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