Skip to content

[LOW] UI verification leaves the Nexus Unity Test window open #137

Description

@Daliys

Problem

UIVerification.Verify() opens the real MCPTestWindow and never closes it after the diagnostic completes.

Evidence

  • Editor/UIVerification.cs:21-30 calls MCPTestWindow.ShowWindow(), resets state, runs checks, and returns.
  • Editor/MCPTestWindow.cs:44-48 uses GetWindow<MCPTestWindow>(), creating/focusing a visible editor window.
  • There is no Close() or cleanup after verification.

Impact

Running UI verification leaves a visible Nexus Unity Test window/tab in the user layout. Repeated runs refocus it rather than cleaning it up.

Suggested fix

Close the test window after verification, or create a hidden temporary instance if visibility is not required.

Source report

Imported from audit report item: unity-antipattern (6) / Editor/UIVerification.cs:25.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-triageImported or reported issue awaiting owner reviewpriority: lowCleanup, minor defect, or low-risk polishsurface: diagnosticsDiagnostics, verification, log capture, and troubleshooting workflowssurface: uiEditor UI Toolkit automation and window workflowstype: unity-antipatternUnity Editor lifecycle, Undo, selection, or API usage antipattern

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions