Repository navigation
Conversation
Contributor
|
Important Draft PR not reviewedDraft PRs are not automatically reviewed by default.
To automatically review draft PRs, update your CodeRabbit configuration: reviews:
auto_review:
drafts: true
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This branch has not been deployed
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.
Description
MCP for Unityウィンドウにフォーカスを戻したとき、TCP接続確認、実行ファイル探索、uv検証、クライアント設定の読み取りがEditorのメインスレッドを止める問題を修正します。更新処理は必要な設定をメインスレッドで取得し、I/Oをワーカーで実行してから表示を更新します。
Type of Change
Changes Made
Compatibility / Package Source
#beta,#main, tag, branch, orfile:): betaから作成した本ブランチを、独立したテストプロジェクトのfile:参照で検証しました。Packages/packages-lock.json(if using a Git package URL): 該当なし(file:参照)。ベースは142ea0af4890337f0ff6658df61db23982313717です。Testing/Screenshots/Recordings
cd Server && uv run --extra dev pytest -q tests): 1,575 passed、18 skipped。修正前は遅い実行ファイルの検証により約505msかかり、応答時間の回帰テストが失敗しました。修正後は同じテストが合格しました。実ウィンドウでも1秒かかる実行ファイルを使ってフォーカス更新を12回確認し、更新呼び出しの最大時間は約0.38msでした。Editor更新の継続、設定ファイルの不変、検証用設定の復元、500・768・1000幅での表示も確認しました。
bash tools/check-unity-versions.shを実行しました。指定の2021.3.45f2、2022.3.62f1、6000.0.75f1、6000.4.8f1はいずれも未インストールのためskipです。Documentation Updates
tools/UPDATE_DOCS_PROMPT.md(recommended)Related Issues
Fixes #1238
Additional Notes
報告環境のWindows 11での実機検証は行えていません。実行したネイティブ検証はmacOS上の上記Unityで、Editorの処理を対象としています。新しいUnityバージョン分岐やMCPツールの変更はありません。
forkでのCI検証
同一コミット
b9345fa8dbd890338d9ffd0a83e87af6a7fa78eaの検証結果をGitHub Actionsで確認しました。Pythonテストと、Unityを使わないハーネステストが成功しています。C#コンパイルもUnity 6000.0.75f1で成功しました。Windows・macOS・Linuxの各条件でRuntimeとEditorをコンパイルしています。
ライセンスが必要なE2EとUnity Editor実テストはスキップされています。