Fix: Synchronize SvelteKit relay and enhance native command testing

- Updated electron_relay.ts with full Phase 3 command set (run_cmd_sync, kill_processes, get_device_info).
- Fixed 500 error in Event Location by standardizing enabled/hidden flags.
- Hardened native environment detection in root layout.
- Added Manual OS Command input to Launcher Configuration for Phase 3 testing.
This commit is contained in:
Scott Idem
2026-01-23 17:23:35 -05:00
parent efdf1188a6
commit f9f6d7f4f0
4 changed files with 61 additions and 65 deletions

View File

@@ -645,12 +645,17 @@
}
// *** Electron Native Mode Detection ***
// If window.native_app or window.aetherNative exists, we are running inside the Electron bridge
// @ts-ignore - native_app is injected by legacy, aetherNative by new V3 bridge
// Explicitly set is_native if the bridge is detected, ensuring reactivity for all child components
// @ts-ignore
if (window.native_app || window.aetherNative) {
console.log('ELECTRON: Native environment detected. Switching to native app_mode.');
$events_loc.launcher.app_mode = 'native';
$ae_loc.is_native = true;
if (!$ae_loc.is_native) {
console.log('ELECTRON: Native environment detected via window bridge.');
$ae_loc.is_native = true;
}
// Ensure launcher mode is set to native if we're in the bridge
if ($events_loc?.launcher && $events_loc.launcher.app_mode !== 'native') {
$events_loc.launcher.app_mode = 'native';
}
}
}

View File

@@ -68,7 +68,7 @@
{:else}
<span class="fas fa-chevron-right"></span>
{/if}
Native OS Folders
Native OS Handlers & Folders
</span>
<span class="badge variant-filled-success">Active</span>
</button>