Skip to content

Report the editor as ready after refresh_unity's server-side wait - #63

Merged
vbucc merged 2 commits into
mainfrom
fix/issue-45-refresh-ready-reply
Oct 7, 2026
Merged

vbucc merged 2 commits into
mainfrom
fix/issue-45-refresh-ready-reply

Conversation

@vbucc

@vbucc vbucc commented Oct 7, 2026

Copy link
Copy Markdown
Collaborator

Fixes #45. This is the part upstream v10.3.0 left open.

Upstream v10.3.0 (merged in #61) makes the plugin reply only after a requested compile has started, so refresh_unity's server-side wait now covers the whole compile. On Unity 6, though, the tool still returned the plugin's mid-compile reply after that wait: resulting_state: "compiling" and a hint to poll mcpforunity://editor/state. A caller couldn't tell that the wait had happened.

Once the server-side wait confirms readiness, the reply now reports resulting_state: "idle" with the ready hint. Other fields, including compile_started, are kept. Without wait_for_ready the reply is unchanged.

  • Report the editor as ready after refresh_unity's server-side wait

Tests: new Server/tests/integration/test_refresh_unity_wait_reply.py, seen failing before the fix.

🤖 Generated with Claude Code

vbucc and others added 2 commits October 7, 2026 17:22
On Unity 6 the plugin answers compile="request" as soon as the compile starts, because
its own readiness wait cannot span the domain reload. refresh_unity then waited for
readiness on the server but returned the plugin's reply unchanged, so a call that had
waited still said resulting_state "compiling" and told the caller to poll (#45).

Once the server-side wait confirms readiness, report resulting_state "idle" with the
ready hint. Other fields, including compile_started, are kept. Without wait_for_ready the
reply is unchanged.

Upstream v10.3.0 (a0f59c2 and follow-ups) already makes the plugin reply only after
the compile has started, so the server's wait covers the whole compile.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vbucc
vbucc merged commit 0a59768 into main Oct 7, 2026
1 check passed
@vbucc
vbucc deleted the fix/issue-45-refresh-ready-reply branch October 7, 2026 21:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant