Repository navigation
fix: Google sign-in return, Windows .cmd starts, one service per data folder, panel turn tools, model import size - #15
Merged
Conversation
The browser opens the Google return address as a cross-site navigation with no Origin header, which the local request check refused, so Google Drive sign-in could never finish. Allow that one read path through; it is still bound to the single-use sign-in state. Escape the message shown on the return page.
A Codex or Cursor turn passes the message as one argument holding line breaks and quotes, which the Windows command interpreter cannot carry through a .cmd shim. Read an npm shim and run its node script directly with the node beside it or on PATH. Any other .cmd or .bat still runs under the interpreter, but only with words it reads as plain text; anything else is refused with a clear message.
Only the desktop engine took engine.lock, so a service started by the MCP server, ./formref serve or ./formref dev let the desktop engine start a second service over the same data folder, and each overwrote the other's boards. The service now takes the lock when it starts, unless its own process already holds it, refuses to start while another holds it, and lets it go when it stops.
Codex and Cursor turns from the Agent panel ran in the app folder and relied on the source checkout's MCP files, which the installed app does not have and which name a fixed port. Run them in the agent folder that program tabs already use, whose files point at the running service and send the turn's own token.
… turns A running Codex or Cursor panel turn let every caller without a token through and attached its changes to that turn. Those turns now carry their own token, so a caller without one is treated by the outside agents setting as at any other time.
The person cutout and sharp cutout files are about 180 MB, above the 64 MiB limit every upload shared, so importing a model file someone already has could never succeed. Model imports get their own 256 MiB limit and are still checked against the published hash.
…older The in-process service now holds the shared test data folder, so a second engine on it is refused as intended.
The finder changed how it starts .cmd and .bat programs on Windows, so it carries a new version and its hash is recorded for agents sync.
…turn and model import fixes
When the program path itself is quoted, the Windows command interpreter drops the first and last quote of the line, so a word with a space is no longer read as quoted. Such a program now gets only words without command characters. A program name with trailing dots or spaces after .cmd or .bat is treated as one as well. The finder's 1.1.0 hash is updated.
The Windows command interpreter reads & | < > ^ ( ) ! % and " even inside quotes, and a .cmd shim re-reads its arguments, so a word with a space is no safer than one without. Any program still started through cmd.exe now gets only words that hold none of these characters and no control character, its own path included, and the refusal points at the .exe, the node script, or standard input or a file for long text. An npm-style shim that wraps an .exe now starts that .exe directly with an argv list, as one that wraps a node script already did. The finder's 1.1.0 hash 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