fix: persist subsessions setting

This commit is contained in:
Federico Jaramillo Martinez
2026-06-18 22:17:56 +02:00
parent d93110135b
commit 27bc924d4c
3 changed files with 12 additions and 2 deletions
+5
View File
@@ -59,6 +59,7 @@ function parseConfigRequest(value: unknown): PiWebConfig {
const shortcuts = value["shortcuts"];
const plugins = value["plugins"];
const spawnSessions = value["spawnSessions"];
const subsessions = value["subsessions"];
if (host !== undefined) {
if (typeof host !== "string") throw new Error("PI WEB config host must be a string");
config.host = host;
@@ -74,6 +75,10 @@ function parseConfigRequest(value: unknown): PiWebConfig {
if (typeof spawnSessions !== "boolean") throw new Error("PI WEB config spawnSessions must be a boolean");
config.spawnSessions = spawnSessions;
}
if (subsessions !== undefined) {
if (typeof subsessions !== "boolean") throw new Error("PI WEB config subsessions must be a boolean");
config.subsessions = subsessions;
}
return config;
}