mirror of
https://github.com/stablyai/orca.git
synced 2026-11-18 03:45:08 +00:00
On Windows, path.relative() returns an absolute path when the plugin root and the file are on different drives or UNC roots. The plugin test hooks and panel-check stack locator only treated '..'-prefixed results as outside the plugin, so Orca's bundled testing runtime was resolved as a plugin file and panel issues pointed at Orca frames. Add a shared pathInsidePluginRoot helper (also backing isInsidePluginRoot) that rejects empty, '..', '..<sep>' and absolute relative paths, use it at both call sites, regenerate orca-test-hooks.mjs, and add win32-mocked regression tests. Fixes #43195 Co-authored-by: alaya <21375302+AlayaElla@users.noreply.github.com> Co-authored-by: Neil <neil@stably.ai>