dsarno
|
0c52c1c92e
|
feat: Automatic Background Compile and Domain Reload for MCP Script Edits and New Script Creation (#248)
* Unity MCP: reliable auto-reload via Unity-side sentinel flip; remove Python writes
- Add MCP/Flip Reload Sentinel editor menu and flip package sentinel synchronously
- Trigger sentinel flip after Create/Update/ApplyTextEdits (sync) in ManageScript
- Instrument flip path with Debug.Log for traceability
- Remove Python reload_sentinel writes; tools now execute Unity menu instead
- Harden reload_sentinel path resolution to project/package
- ExecuteMenuItem runs synchronously for deterministic results
- Verified MCP edits trigger compile/reload without focus; no Python permission errors
* Getting double flips
* Fix double reload and ensure accurate batch edits; immediate structured reloads
* Remove MCP/Flip Reload Sentinel menu; rely on synchronous import/compile for reloads
* Route bridge/editor logs through McpLog and gate behind debug; create path now reloads synchronously
* chore: ignore backup artifacts; remove stray ManageScript.cs.backup files
* fix span logic
* fix: honor UNITY_MCP_STATUS_DIR for sentinel status file lookup (fallback to ~/.unity-mcp)
* test: add sentinel test honoring UNITY_MCP_STATUS_DIR; chore: ManageScript overlap check simplification and log consistency
* Harden environment path, remove extraneous flip menu test
* refactor: centralize import/compile via ManageScriptRefreshHelpers.ImportAndRequestCompile; replace duplicated sequences
* feat: add scheduledRefresh flag; standardize logs; gate info and DRY immediate import/compile
* chore: remove execute_menu_item sentinel flip from manage_script_edits; rely on import/compile
* chore: remove unused MCP reload sentinel mechanism
* fix: honor ignore_case for anchor_insert in text conversion path
|
2025-09-02 09:36:50 -07:00 |