fix(session-bindings): guard optional stats config in compile path

This commit is contained in:
2026-04-10 02:56:53 -07:00
parent 48f74db239
commit e06f12634f

View File

@@ -294,7 +294,7 @@ export function compileSessionBindings(
const legacyToggleVisibleOverlayGlobal = (
input.rawConfig?.shortcuts as Record<string, unknown> | undefined
)?.toggleVisibleOverlayGlobal;
const statsToggleKey = input.statsToggleKey ?? input.rawConfig?.stats.toggleKey ?? null;
const statsToggleKey = input.statsToggleKey ?? input.rawConfig?.stats?.toggleKey ?? null;
if (legacyToggleVisibleOverlayGlobal !== undefined) {
warnings.push({