From f747754b2f8fb5e86ba47614039650b48c95e5b5 Mon Sep 17 00:00:00 2001 From: Vito Sansevero Date: Tue, 27 Oct 2026 02:01:43 -0700 Subject: [PATCH] test(browser): restore the safety backup policy on system reset The Recovery policy test in workspace-system-backups saves safety_backup false at runtime, and /__test__/system/reset restored config.json but not PromptManagerConfig.SAFETY_BACKUP. A later spec on the same server (Tag output images review) then saw "No safety backup (the policy is off)". The new #369 test shifted the CI shards so the two met on one worker. --- tests/browser/workspace_system_fixture.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/browser/workspace_system_fixture.py b/tests/browser/workspace_system_fixture.py index 0fc36d97..4c626106 100644 --- a/tests/browser/workspace_system_fixture.py +++ b/tests/browser/workspace_system_fixture.py @@ -105,6 +105,9 @@ def register_system_commands(app, routes, api, root: Path): PromptManagerConfig.THUMBNAIL_FORMAT, PromptManagerConfig.THUMBNAIL_QUALITY, PromptManagerConfig.THUMBNAIL_EDGE, + # The Recovery policy toggle (workspace-system-backups) saves it at + # runtime; a later spec on the same server reads it (#369 CI). + PromptManagerConfig.SAFETY_BACKUP, ) from py.api import thumbnail_encode @@ -143,6 +146,7 @@ def register_system_commands(app, routes, api, root: Path): PromptManagerConfig.THUMBNAIL_FORMAT, PromptManagerConfig.THUMBNAIL_QUALITY, PromptManagerConfig.THUMBNAIL_EDGE, + PromptManagerConfig.SAFETY_BACKUP, ) = host_values thumbnail_encode.reset_encoders() image_monitor._monitor_instance = monitor