Repository navigation
fix: run Python scripts in a worker, start Windows launchers directly, and fix agent save and data folder handling - #12
Merged
Conversation
Chat and the Claude Code tab now start agent programs the same way the other tabs do. A package manager's .cmd launcher is read and the node script or program it names is started directly, so a message with line breaks, quotes or percent signs reaches the program as typed. A launcher that cannot be read still goes through the command interpreter, which is now given only words it keeps as text.
Projects, exports, the library and scripts now use the same data folder as preferences, logs and the engine lock when the folder is given as a home-relative path that nothing expanded. An empty value falls back to the default folder, and FORMSURFACE_STATIC is expanded the same way.
Scripts from the Python panel and the workspace scripts folder now run in a dedicated worker. They reach the editor through the same tool calls agents use, and their requests no longer carry the window's key, so they cannot change preferences, open terminals or do anything else only the window itself may do. Events, plugin buttons and output work as before.
formsurface_save_project with no name now saves into the project that is open, or into a new project named after the mesh when none is, the same way the window's own Save does. Before, it used the mesh's name and could replace another project of that name.
…nchers A launcher in a folder whose name has a space is now checked the way the command interpreter reads the line, which drops the first and last quote. A ! sign is refused in any position, a launcher name ending in a dot or space is still treated as a launcher, and a launcher that names another .cmd or .bat goes through the same checks.
A .cmd or .bat file that cannot be read as a launcher still starts through the Windows command interpreter, where quotes do not keep text as text. Every word, quoted or not and with or without spaces, is now refused when it holds & | < > ^ ( ) ! % " or a control character, and the message says to pass long text through standard input or a file. A launcher in a folder whose name has a space may not be given another quoted word. Readable launchers keep starting the program they name directly, with every character passed through.
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