Skip to content

chore: bump version to 10.0.2 - #1267

Merged
github-actions[bot] merged 61 commits into
mainfrom
release/v10.0.2
Jul 13, 2026
Merged

github-actions[bot] merged 61 commits into
mainfrom
release/v10.0.2

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Automated version bump to 10.0.2.

mertakdut and others added 30 commits June 27, 2026 16:25
…8471654672

chore: sync main (v10.0.0) into beta
The play-mode composited path drives the player loop with EditorApplication.Step()
to reach WaitForEndOfFrame. Step() pauses play mode as a side effect, and the loop
never restored it — so any play-mode screenshot left the game paused indefinitely
(regression from #1132, which introduced the Step() loop).

Record isPaused before the loop and clear it afterward, unless the game was already
paused (preserve a caller's intentional pause).
Wrap the Step() loop in try/finally so the pause-state restore runs on
every exit path, including if Step() throws — matching the camera-state
restore pattern already used in CaptureFromCameraToProjectFolder.
Add the Ocean split-cube brand mark to the Editor UI and land three
low-risk installation-flow improvements.

Logo:
- OceanMark: reusable UI Toolkit control drawing the mark in Painter2D
  vector (geometry transcribed from logo-mark.svg, brand colors baked in),
  crisp at any DPI with no new package dependency. Painter2D is 2022.1+,
  so it is guarded by #if UNITY_2022_1_OR_NEWER with a raster fallback
  (package-icon.png) on the 2021.3 floor.
- Embedded in the main window header (#header-left group) and the
  setup-wizard header.
- Ship package-icon.png inside the package (listing icon + 2021.3 fallback).

Installation polish:
- One-click uv install: UvInstaller builds the official installer command
  per platform; setup wizard runs it off-thread with a confirm dialog and
  re-checks dependencies.
- Claude CLI auto-discovery: consolidate the weaker resolver into
  ExecPath.ResolveClaude() and add the ~/.claude/local (migrate-installer)
  location both resolvers missed.
- Setup wizard clarity: success/next-step copy after configuring clients.

Tests: EditMode coverage for the geometry/color mapping, per-platform uv
command, and the Claude override contract.

Verified: compiles clean on 2021.3.45f2 (fallback path) and 6000.4.11f1
(Painter2D path).
- Setup wizard: de-box the title beside the logo; footer buttons size to
  content and sit together on one row (Refresh no longer stretches
  full-width and overflows); rename the deps-step "Done" button to "Next".
- Client Configuration dialog: show the count + only failures + next step
  instead of enumerating every successfully configured client.
- Main window header: version pill never shrinks/clips (flex-shrink 0);
  title stays at natural width.
- Tabs: flex-shrink so all six stay reachable when docked narrow.
- Connection status label wraps/shrinks instead of sliding under the
  Disconnect button (scoped to #connection-section).
…ilure

Addresses AI review (Copilot + CodeRabbit) on #1231:
- PollUvInstall: bail out (and detach) if the window/UI was torn down while
  the task ran, guarding against dereferencing UI fields after teardown.
- OnEnable: resume polling if an install was still in flight when the window
  was disabled, so completion is still processed (button reset, deps re-checked).
- OceanMark.LoadBrandTexture: log a warning instead of silently swallowing
  asset-load failures on the 2021.3 raster-fallback path.

Declined CodeRabbit's "use a compat shim" suggestion for OceanMark's
#if UNITY_2022_1_OR_NEWER: per UnityCompatShims.cs policy, shims are for
[Obsolete] APIs, 3+ gated call sites, or announced removals — Painter2D is a
new API used via static dispatch in one self-contained file, which the policy
explicitly says to handle with #if, not a shim.
…o the #if

- Remove OceanMarkTests (geometry/color mapping + construction) per request;
  the mark is verified visually in-Editor.
- With the test gone, MapSvgPoint/FromHex no longer need to be `internal`,
  and they (plus the SvgOrigin/SvgSize consts) are only used by the Painter2D
  path — move them inside `#if UNITY_2022_1_OR_NEWER` and make them `private`,
  so the 2021.3 fallback carries no unused members.

Result of a /simplify pass; reuse/altitude/efficiency angles came back clean
(logo-injection duplication left at 2 call sites per the repo's 3+-uses rule).
feat(editor): embed Ocean brand mark in Editor UI + setup polish
…695419225

chore: update Unity package to beta version 10.0.1-beta.2
…ume (#1229)

Auto-start died for the whole session whenever startup included a compile:
the ctor latched SessionState before the delayCall ran, and the reload wiped
the delayCall. Reload-resume died at multi-pass compiles: the one-shot flag
was consumed before the deferred (delayCall) resume ran, and the next
boundary deleted it again.

- Replace delayCall with EditorApplication.update ticks that the
  [InitializeOnLoad] ctor re-arms on every domain load; latch only when the
  deferred work actually dispatches, retry (bounded per domain) while editor
  services are still initializing, and skip the subscription entirely in the
  common case where auto-start is off and nothing is pending.
- Move the resume flag from EditorPrefs (per-user machine-global, survives
  crashes, leaks across concurrently open editors) to SessionState; keep it
  until the resume succeeds, is cancelled, or exhausts its retries, instead
  of consuming it at boundaries where the bridge is down. Manual Connect,
  End Session, transport switch, and orphan cleanup cancel a pending resume
  through a named seam (CancelPendingResume), which also aborts an in-flight
  retry loop; exhaustion erases the flag so later reloads don't replay 49s
  failure loops.
- Serialize TransportManager.StartAsync per mode: concurrent starts coalesce
  onto one in-flight attempt, so a manual Connect can no longer race the
  resume/auto-start loops into bouncing a just-established session
  (WebSocketTransportClient.StartAsync tears down a live connection first).
- A SessionState connect-pending marker lets the next domain load finish an
  auto-start whose connect phase a reload killed — connect-only, never
  re-spawning (StartLocalHttpServer stops a still-booting server first).
  Whether a launch-process handle exists is now answered live by
  ServerManagementService.HasManagedServerLaunchHandle; without one (post-
  reload, or an externally started server) the wait polls to the 5-minute
  hard cap instead of fail-fasting.
- Busy gate uses EditorStateCache.GetActualIsCompiling (now internal, with
  the CompilationPipeline reflection bound once as a delegate): raw
  isCompiling stays true all play session under
  Recompile-After-Finished-Playing (#549).
- One-time (per session) migration deletes the legacy EditorPrefs flag.

The stdio sibling has the same defect class (StdioBridgeReloadHandler.cs:65
delete-when-not-running, :133 delayCall) — follow-up, kept out of scope here,
along with the remaining stdio copies of the isCompiling probe.
…t stop the interactive server

OnEditorQuitting stopped the managed HTTP server unconditionally; the pidfile+port handshake is global per-user state, so a -batchmode/CI instance killed the interactive editor's server on quit. Add an early-return guard mirroring HttpAutoStartHandler/StdioBridgeHost (skip in batch unless UNITY_MCP_ALLOW_BATCH), extracted into a testable ShouldRunCleanup predicate + EditMode regression test.

Closes #1196, #1010
…ion state (#1023)

UnityInstanceMiddleware previously kept its own dict (`_active_by_key`) keyed
by `client_id | user:{user_id} | "global"`. The MCP protocol's identity is
session-based, not client-based:

  - Streamable HTTP uses `Mcp-Session-Id` per the 2025-11-25 spec
  - stdio is intrinsically 1:1 (one subprocess = one session)
  - `client_id` is the peer-declared Implementation name, which is not
    unique — two Cursor instances both report `"cursor"` and collide

The `"global"` fallback compounded this: anonymous clients all collapsed onto
one record, so client A's `set_active_instance` retargeted client B (#1023).

FastMCP already exposes session-isolated state via `ctx.set_state` /
`ctx.get_state`, prefixed by `ctx.session_id` (verified in fastmcp 3.x
`server/context.py:1181-1238` — reads `mcp-session-id` header on HTTP,
generates a per-session UUID on stdio, caches on the session object).
Switching to it removes a whole concurrency surface and closes the bug class
by construction.

Changes:
- Replace `_active_by_key + _lock + get_session_key` with two-liner
  set/get/clear_active_instance backed by `ctx.set_state` under
  `mcpforunity.active_instance`.
- `set_active_instance` tool now returns `session_id` (the real key) instead
  of the bogus `session_key` field.
- `debug_request_context` drops `derived_key` and `all_keys_in_store`
  (no global dict to enumerate; per-session reads still report
  `active_instance` and the real `session_id`).
- Drop characterization/integration tests that pinned the removed
  `client_id → key → "global"` behaviour. Add a regression test that
  proves two ctxs with private state dicts can't read each other's
  active instance.

No protocol or wire-format change. The behavior shift is invisible to
single-client setups and removes the cross-client leak for multi-client
HTTP deployments.
…nnected (#1023)

The stdio connection pool's _resolve_instance_id silently returned the
most-recently-heartbeated editor when no unity_instance and no default
were supplied, letting an unbound session retarget another project's
Unity. Mirror the HTTP "multiple connected, no active set" guard: select
the sole instance when there is exactly one, otherwise raise ConnectionError
listing the available ids and requiring an explicit selection.

Pairs with the cherry-picked middleware fix that keys active-instance
state by ctx.session_id instead of the peer-supplied client_id.
#1207)

The orphaned-session detector ended an active session on a SINGLE stale
reachability reading, and the reading came from a lone 50ms TCP connect
cached for 0.75s — trivially false-negative on a machine busy with test
runs or domain reloads. Evidence bundles in #1207 show 13 teardowns and
147 socket closures in one session from exactly this loop, wedging the
bridge in no_unity_session churn until manual recovery.

- Require 3 consecutive failed polls (0.75s cadence) before declaring a
  session orphaned; probe readings taken while the editor is compiling or
  importing don't count toward teardown, and detection is skipped entirely
  while busy.
- Raise the probe's connect wait 50ms -> 250ms, as an overall budget shared
  across candidate hosts so the worst-case main-thread wait cannot multiply.
- Honor UNITY_MCP_SESSION_RESOLVE_MAX_WAIT_S above 20s (ceiling now 120s;
  default unchanged): the old ceiling equalled the default, silently
  neutering the documented escape hatch for projects whose reloads or test
  boundaries legitimately exceed 20s. Same treatment for
  UNITY_MCP_SESSION_READY_WAIT_SECONDS, and both now share one bounded
  env-read helper.

The remaining piece of #1207 (keepalive reload-awareness in
WebSocketTransportClient) is untouched here: the resume machinery reworked
in #1234 already covers reload boundaries, and the detector debounce
removes the dominant churn source dsarno identified.
… mode + retry-loop races

Review follow-ups:
- CompilationPipeline.isCompiling does not exist on the supported Unity range
  (reflection probe on 2021.3 and 6000.4: neither public nor non-public), so
  the reflected play-mode double-check never resolved and GetActualIsCompiling
  silently fell back to the raw signal — the #549 false positive was never
  actually mitigated. Track compilationStarted/compilationFinished events
  instead (public across the range); in Play mode trust the event-tracked
  state, outside it the raw signal is reliable.
- TransportManager.StartAsync validates the mode before touching the
  coalescing slots, matching the class's unsupported-mode contract instead of
  routing unknown values to the stdio slot.
- The resume retry loop's transport/IsRunning pre-checks moved inside the
  attempt try: a service read racing the reload boundary now burns a retry
  instead of killing the fire-and-forget task with the flag still set.
Review follow-up: a streak accumulated while no session was running (detector
inert, counter still counting) survived into a freshly started session and
could satisfy orphan detection before the first post-start probe refreshed.
Reset on the not-running -> running transition, which covers every start path
(manual Connect, auto-start, resume) since UpdateConnectionStatus runs on the
UI tick.
…cleanup

fix(editor): skip shutdown cleanup in batch mode so CI instances don't stop the interactive server
…732593709

chore: update Unity package to beta version 10.0.1-beta.3
Add a "Reading resources" section to the FastMCP server instructions
string. It states that resources are addressed by URI (slashes), never
by name (underscores); that the exact URI should be taken from the
client's resources/list rather than constructed from the name; and that
payloads are wrapped under a top-level `data` object (field paths look
like data.<section>.<field>).

Prevents the common naive failure where an agent turns a resource name
into a URI (e.g. editor_state -> mcpforunity://editor_state) and 404s,
and the matching failure of guessing a bare top-level field instead of
the nested data.* path.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…, not retry

Live-testing follow-ups from the two-client isolation pass:

- The HTTP refusal only logged the available instances server-side while the
  stdio guard lists them inline — an agent hitting the HTTP path needed an
  extra mcpforunity://instances hop to act. InstanceSelectionRequiredError now
  carries available_instances structurally and appends them to the message,
  fetched from the registry at raise time (error path only).
- The transport wrapper's blanket except turned the refusal into hint="retry",
  which is misleading: a blind retry fails identically. Selection errors now
  return hint="select_instance" with reason and available_instances in data,
  so clients can route straight to set_active_instance.
github-actions Bot and others added 28 commits July 6, 2026 04:48
…768160060

chore: update Unity package to beta version 10.0.1-beta.4
docs(server): guide agents to read resources by URI, not name
…769408451

chore: update Unity package to beta version 10.0.1-beta.5
Two related stdio connection-UI reliability bugs surfaced while testing
with a live domain-reload cycle:

1. Start Session race (severe). StdioTransportClient.StartAsync returned
   true unconditionally, then callers immediately verified — but
   VerifyAsync only reads StdioBridgeHost.IsRunning, which is still false
   while the previous port releases after a reload (Start() defers the
   bind to an editor-idle retry, or falls back to a new port after
   BusyPortFallbackWindowSeconds). Result: "Connection verification
   failed: Bridge not running", and Start Session only connected after
   several clicks. StartAsync now waits (bounded, ReadyWaitTimeoutSeconds)
   for the bridge to actually bind before reporting success.

2. Health-indicator flash. VerifyBridgeConnectionInternalAsync flipped the
   indicator to Unhealthy on a single transient verify miss during a
   reload/port-hop, then recovered — misleading. It now debounces via
   UnhealthyVerificationThreshold (mirrors the #1207 orphan-session
   debounce), resetting on any reachable result.

Both decisions are pure, unit-tested helpers (ShouldKeepWaitingForReady,
ShouldReportUnhealthy). 16 EditMode tests green (4 readiness + 5 debounce
+ 7 existing #1207 orphan, no regression).

Claude-Session: https://claude.ai/code/session_015JRaRFZy4piZzZtW5NabJS
…lation

fix(server): stop silent cross-instance routing when multiple editors are connected (#1023)
…824167586

chore: update Unity package to beta version 10.0.1-beta.6
…via subtarget

When manage_build builds for Android, BuildPlayerOptions.subtarget was
always set to StandaloneBuildSubtarget.Player (0). On Android, subtarget
maps to MobileTextureSubtarget (texture compression format). Building
with subtarget=0 on Unity 6000+ triggers a confirmed Unity bug (IN-102413)
that forces PVRTC texture compression — ignoring the project's Player
Settings (ASTC/ETC2).

Worse: setting subtarget persists the value in EditorUserBuildSettings,
overwriting whatever the user configured in Build Settings.

Fix: only set subtarget for Standalone platforms (Windows/OSX/Linux),
where it distinguishes Server vs Player builds. For all other platforms
(Android, iOS, tvOS, WebGL, etc.), leave subtarget at its default so
Unity respects the project's Player Settings.

Fixes #1212
…pvrtc-texture

fix(manage_build): stop forcing PVRTC texture compression on Android via subtarget
…141431063

chore: update Unity package to beta version 10.0.1-beta.7
Semantic coexistence resolution in McpConnectionSection.cs: keep both
sibling debounce mechanisms intact — beta's health-check verification
debounce (UnhealthyVerificationThreshold / ShouldReportUnhealthy /
consecutiveVerifyFailures, c344625) and this branch's orphaned-session
down-poll debounce (OrphanedSessionDownPollThreshold /
ShouldEndOrphanedSession / consecutiveServerDownPolls + reset on
session start). Both EditMode test files
(McpConnectionSectionHealthDebounceTests, McpConnectionSectionOrphanDetectionTests)
are preserved.

Claude-Session: https://claude.ai/code/session_01C8TU8ibk8gv3h4LqBxPbQi
…ctor-debounce

fix: stop tearing down healthy HTTP sessions on transient probe misses (#1207)
…me-race

fix(editor): survive domain reloads in HTTP auto-start and reload-resume (#1229)
…160989730

chore: update Unity package to beta version 10.0.1-beta.8
fix(stdio): recover from a reload-orphaned socket instead of hanging
…173557989

chore: update Unity package to beta version 10.0.1-beta.9
A rigged/animated FBX imported through import_model_file always arrived
with zero AnimationClips because the import pipeline hard-coded
ModelImporterAnimationType.None. Thread an optional animation_type param
(none|generic|humanoid|legacy) through the MCP tool, the CLI command, and
the C# pipeline so callers can surface a model's clips; the default stays
None, so existing imports are unchanged. glTF/GLB ignores the knob
(glTFast imports animation itself).

Also fold the tested Blender-handoff findings into the blender-to-unity
skill: GLB-vs-FBX fidelity guidance (with the new
references/bridge-fidelity.md matrix, force-added since .claude is
gitignored), FBX emission restoration steps, and the animation_type knob.
Sync uv.lock with the pyproject 10.0.0 version already on beta.

Claude-Session: https://claude.ai/code/session_01Cya1SZmg7CJgJS61nhjLH4
Review responses (CodeRabbit + Copilot):
- Document the 'legacy' animation_type value in the C# XML summary, MCP tool
  description, param help, and CLI help (Copilot x4).
- SKILL.md: drop multi-material zones as a GLB-only trigger (both formats keep
  slots), define out_glb in the glTF branch example, document the full
  animation_type contract, probe both Principled emission socket names
  ('Emission Color' 4.x / 'Emission' 3.x), keep use_active_scene=True in the
  Notes GLB example, and distinguish FBX vertex-color data transfer from URP
  Lit shader display.
- bridge-fidelity.md: make export_apply conditional (static-only; skinned/
  shape-key meshes need False) and document export_animations' active/NLA-
  stashed semantics.

Regenerate website/docs/reference for the updated tool description — fixes the
"Check docs reference is fresh" CI failure ("differs: asset_gen/import_model_file.md").

Claude-Session: https://claude.ai/code/session_01Cya1SZmg7CJgJS61nhjLH4
CodeRabbit follow-up on #1262: the API-level default is omitting the
parameter (nothing crosses the wire); passing 'none' explicitly maps to
the same no-rig import. Say "omitted or 'none'" instead of calling
'none' the default, and regenerate the reference page.

Claude-Session: https://claude.ai/code/session_01Cya1SZmg7CJgJS61nhjLH4
…mation-type

feat(asset-gen): add animation_type rig mode to import_model_file
…9201318649

chore: update Unity package to beta version 10.0.1-beta.10
@github-actions
github-actions Bot merged commit e7031fb into main Jul 13, 2026
@github-actions
github-actions Bot deleted the release/v10.0.2 branch July 13, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants