fix: repair test failures from mobile feature additions

- Add shouldRunSetupForCreate to hooks mock in orca-runtime tests
- Fix send() helper to use rest args, avoiding extra undefined in IPC calls

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
Jinwoo-H
2026-04-30 18:03:54 -04:00
co-authored by Orca
parent e7d1bdaddd
commit d751bd8a63
2 changed files with 11 additions and 4 deletions
@@ -200,9 +200,9 @@ function registerRuntimeWindowLifecycle(
runtime: OrcaRuntimeService
): void {
runtime.attachWindow(mainWindow.id)
const send = (channel: string, data?: unknown): void => {
const send = (channel: string, ...args: unknown[]): void => {
if (!mainWindow.isDestroyed()) {
mainWindow.webContents.send(channel, data)
mainWindow.webContents.send(channel, ...args)
}
}
runtime.setNotifier({