Repository navigation
Warn that Unity, Unreal and Godot MCP run outside Studio's sandbox - #19781
NilayYadav wants to merge 6 commits into
Conversation
|
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
1 similar comment
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 5ca9197ab1
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| value: "off", | ||
| label: "Run automatically", | ||
| description: "Never ask, but keep code in the sandbox", | ||
| description: "Never ask. Python and Terminal stay sandboxed, MCP tools do not", |
There was a problem hiding this comment.
Keep the permission summary within its tested length limit
The new description is 63 characters, but studio/frontend/tests/permission-mode-learn-more.test.ts:103–107 requires every permission-mode description to be at most 60 characters. The existing menu descriptions stay to one short line test reproducibly fails against this commit, whereas the previous description satisfies the assertion. Shorten the summary while preserving the MCP caveat, or explicitly revise the layout/test contract if longer descriptions are intended.
Useful? React with 👍 / 👎.
There was a problem hiding this comment.
Fixed in 3623610: shortened to 53 characters, keeping the MCP caveat.
|
@codex review |
1 similar comment
|
@codex review |
|
Codex Review: Didn't find any major issues. Bravo. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
|
@codex review |
|
Codex Review: Didn't find any major issues. Delightful! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…olds host RAM (copies drifted since zoo #2909) (#19999) ## Problem `tests/utils/test_dataset_num_proc.py::test_the_two_copies_have_not_drifted` fails on every `Core` leg, for example on the #19837 and #19781 staging runs on current main: ``` AssertionError: unsloth/dataset_num_proc.py and unsloth_zoo/dataset_num_proc.py have diverged; the zoo copy is the source of truth ``` unsloth-zoo #2909 taught `unsloth_zoo/dataset_num_proc.py` to keep `Dataset.map` in-process while `offload_layers` holds model layers page-locked in host RAM. Linux copies that memory into every forked worker at fork time, and a 120 GB host tier with 6 workers stalled the map at 0 rows. The change adds `_offload_reason()` and returns it from `_workers_unusable_reason()`. The fallback copy in unsloth, which is used when the installed zoo has no `dataset_num_proc`, did not get the same change. The guard is right: the zoo copy is the source of truth. ## Fix Port the same `_offload_reason()` into `unsloth/dataset_num_proc.py` and return it from `_workers_unusable_reason()`, matching the zoo code exactly. Like the zoo version, it reads `unsloth_zoo.block_swap.offload_active` only if that module is already loaded, so nothing new is imported. ## Verification With unsloth-zoo main (`cf4eb46`) on the path: - `tests/utils/test_dataset_num_proc.py`: 106 passed. - Before, on main's copy: `test_the_two_copies_have_not_drifted` failed (1 failed, 105 passed).
Show a warning in the Unity, Unreal Engine and Godot MCP setup, for new and existing connections. These apps run the model's code (C#, editor commands and Python, GDScript) inside the editor, outside Unsloth's sandbox, so Sandbox High does not apply to them and that code can reach files outside the project. Blender's setup already says "unsandboxed Python"; Figma is read-only and Roblox Studio runs Luau inside Roblox's own sandbox, so neither gets the warning.
Also clarify the sandbox scope of Run automatically, both in Settings and in the chat permission menu (which said "Never ask, but keep code in the sandbox"), and in the MCP guide.
Verified with the frontend test suite (17436 pass, 0 fail), TypeScript, and the strict locale parity check.
Related to #19769.
Before / after
Unreal Engine setup dialog: the warning sits above the consent box.
Godot setup dialog.
Unity setup dialog.
Figma's dialog is unchanged (read-only server, no warning on either side).