The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(bot-screen): profile export leaves bot-desktop/ (the screen's cookie jar) out of the archive
teknium13abb4debc740
diff --git a/hermes_cli/profiles.py b/hermes_cli/profiles.pyindex 2043f294a2d..5f839710cf1 100644--- a/hermes_cli/profiles.py+++ b/hermes_cli/profiles.py@@ -1492,8 +1492,9 @@ def _default_export_ignore(root_dir: Path):return _ignore-# Credential files dropped from named-profile exports.-_EXPORT_CREDENTIAL_FILES = frozenset({"auth.json", ".env"})+# Credential files dropped from named-profile exports. ``bot-desktop`` is the screen's runtime state:+# its persistent Chromium profile (Cookies, Login Data — the bot's live web sessions), Xauthority, sockets.+_EXPORT_CREDENTIAL_FILES = frozenset({"auth.json", ".env", "bot-desktop"})# Text/config suffixes secret-scrubbed on export; binary DBs, images etc. are left alone._EXPORT_REDACT_SUFFIXES = frozenset({diff --git a/tests/hermes_cli/test_profiles.py b/tests/hermes_cli/test_profiles.pyindex 91d6c034348..3ac037a683a 100644--- a/tests/hermes_cli/test_profiles.py+++ b/tests/hermes_cli/test_profiles.py@@ -1195,3 +1195,21 @@ def test_profile_delete_and_rename_stop_the_profiles_bot_desktop(profile_env, opassert proc.wait(timeout=10) != 0, "the launcher was signalled by the profile op"finally:proc.kill()++[email protected]("name", ["coder", "default"])+def test_export_leaves_the_bot_desktop_browser_profile_out(profile_env, tmp_path, name):+ """bot-desktop/ holds the screen's persistent Chromium profile (Cookies, Login Data: the bot's live web+ sessions) plus sockets and X state. None of it belongs in an export archive meant to move a persona."""+ profile_dir = create_profile(name, no_alias=True) if name != "default" else get_profile_dir("default")+ (profile_dir / "config.yaml").write_text("model: test")+ cookies = profile_dir / "bot-desktop" / "browser-profile" / "Default" / "Cookies"+ cookies.parent.mkdir(parents=True)+ cookies.write_bytes(b"SQLite format 3\x00")+ output = tmp_path / "export" / f"{name}.tar.gz"+ output.parent.mkdir(parents=True, exist_ok=True)+ export_profile(name, str(output))+ with tarfile.open(str(output), "r:gz") as tf:+ names = tf.getnames()+ assert f"{name}/config.yaml" in names+ assert not [n for n in names if "bot-desktop" in n], names