Skip to content

The agent that grows with you

test: trim #116107 dashboard dist tests to the two invariants

teknium11d1284765b2b
diff --git a/tests/hermes_cli/test_dashboard_web_dist_validation.py b/tests/hermes_cli/test_dashboard_web_dist_validation.py
index 13a076f4f7b..1d281f545e4 100644
--- a/tests/hermes_cli/test_dashboard_web_dist_validation.py
+++ b/tests/hermes_cli/test_dashboard_web_dist_validation.py
@@ -142,7 +142,9 @@ def test_skip_build_missing_dist_attempts_one_recovery_build(
def test_desktop_child_dashboard_drops_packaged_renderer(main_mod, monkeypatch):
- """A browser dashboard must not trust Desktop identity inherited by a child."""
+ """#116107: every desktop-spawned process inherits HERMES_DESKTOP=1 with the
+ packaged dist; a browser `hermes dashboard` from it must not keep serving the
+ IPC-only desktop renderer."""
packaged = "/Applications/Hermes.app/Contents/Resources/app.asar.unpacked/dist"
monkeypatch.setenv("HERMES_DESKTOP", "1")
monkeypatch.setenv("HERMES_WEB_DIST", packaged)
@@ -163,22 +165,3 @@ def test_desktop_headless_serve_keeps_packaged_renderer(main_mod, monkeypatch):
main_mod._dashboard_sanitize_desktop_env(headless_backend=True)
assert os.environ["HERMES_WEB_DIST"] == packaged
-
-
-def test_dashboard_keeps_caller_managed_web_dist(main_mod, monkeypatch, tmp_path):
- """Only Electron-packaged renderer paths are removed from dashboards."""
- custom_dist = tmp_path / "custom-dashboard"
- monkeypatch.setenv("HERMES_DESKTOP", "1")
- monkeypatch.setenv("HERMES_WEB_DIST", str(custom_dist))
-
- main_mod._dashboard_sanitize_desktop_env(headless_backend=False)
-
- assert os.environ["HERMES_WEB_DIST"] == str(custom_dist)
-
-
-
-
-
-
-
-