From b85808c0af9b0df39c5e05edd99aab5974a7679d Mon Sep 17 00:00:00 2001 From: Makito Date: Fri, 3 Apr 2026 03:34:47 +0900 Subject: [PATCH] fix(stage-tamagotchi): openDevtoolsWindow in settings not working due to missing windowAuthManager from injeca --- apps/stage-tamagotchi/src/main/index.ts | 2 +- apps/stage-tamagotchi/src/main/windows/settings/index.ts | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/stage-tamagotchi/src/main/index.ts b/apps/stage-tamagotchi/src/main/index.ts index d137d9409..930f612e0 100644 --- a/apps/stage-tamagotchi/src/main/index.ts +++ b/apps/stage-tamagotchi/src/main/index.ts @@ -155,7 +155,7 @@ app.whenReady().then(async () => { }) const settingsWindow = injeca.provide('windows:settings', { - dependsOn: { widgetsManager, beatSync, autoUpdater, devtoolsMarkdownStressWindow, serverChannel, mcpStdioManager, i18n }, + dependsOn: { widgetsManager, beatSync, autoUpdater, devtoolsMarkdownStressWindow, serverChannel, mcpStdioManager, i18n, windowAuthManager }, build: async ({ dependsOn }) => setupSettingsWindowReusableFunc(dependsOn), }) diff --git a/apps/stage-tamagotchi/src/main/windows/settings/index.ts b/apps/stage-tamagotchi/src/main/windows/settings/index.ts index 3ec4fa52d..83ed986de 100644 --- a/apps/stage-tamagotchi/src/main/windows/settings/index.ts +++ b/apps/stage-tamagotchi/src/main/windows/settings/index.ts @@ -1,4 +1,5 @@ import type { I18n } from '../../libs/i18n' +import type { WindowAuthManager } from '../../services/airi/auth' import type { ServerChannel } from '../../services/airi/channel-server' import type { McpStdioManager } from '../../services/airi/mcp-servers' import type { AutoUpdater } from '../../services/electron/auto-updater' @@ -31,6 +32,7 @@ export function setupSettingsWindowReusableFunc(params: { serverChannel: ServerChannel mcpStdioManager: McpStdioManager i18n: I18n + windowAuthManager: WindowAuthManager }): SettingsWindowManager { const rendererBase = baseUrl(resolve(getElectronMainDirname(), '..', 'renderer')) const defaultRoute = '/settings' @@ -69,6 +71,7 @@ export function setupSettingsWindowReusableFunc(params: { serverChannel: params.serverChannel, mcpStdioManager: params.mcpStdioManager, i18n: params.i18n, + windowAuthManager: params.windowAuthManager, }) window.on('closed', () => {