@@ -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);