From 2bb16d11613470851720e950b28d8efc9a6d56ef Mon Sep 17 00:00:00 2001 From: Edwin van den Houdt Date: Thu, 23 Jul 2026 16:18:18 +0200 Subject: [PATCH] fix(dev): dev switcher reflects the current role/scenario in the dropdowns The WP-33 panel's + @@ -140,8 +140,14 @@ export class DebugStateComponent { // read per-request in interceptors, so a reload re-runs them and re-fetches decisions. protected readonly roles = ROLES; protected readonly scenarios = SCENARIOS; - protected readonly role = currentRole(); - protected readonly scenario = currentScenario(); + // Getters so the dropdowns reflect the CURRENT value whenever the panel is opened + // (not just the value at component construction). + protected get role() { + return currentRole(); + } + protected get scenario() { + return currentScenario(); + } switchRole(r: Role): void { setRole(r);