The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
fix(honcho): clone sessionAiPeerPrefix into new profile host blocks
Erosika0ede483479d6
diff --git a/plugins/memory/honcho/cli.py b/plugins/memory/honcho/cli.pyindex e9c9c500e64..22281c24ef2 100644--- a/plugins/memory/honcho/cli.py+++ b/plugins/memory/honcho/cli.py@@ -25,7 +25,7 @@ _INHERITED_KEYS = ("recallSync",)# clone_honcho_for_profile also carries the operator's runtime-to-peer routing intent.-_CLONE_KEYS = _INHERITED_KEYS[:3] + ("sessionPeerPrefix",) + _INHERITED_KEYS[3:] + (+_CLONE_KEYS = _INHERITED_KEYS[:3] + ("sessionPeerPrefix", "sessionAiPeerPrefix") + _INHERITED_KEYS[3:] + ("pinUserPeer", "userPeerAliases", "runtimePeerPrefix",)_IDENTITY_MAPPING_KEYS = ("pinPeerName", "pinUserPeer", "userPeerAliases", "runtimePeerPrefix")diff --git a/tests/honcho_plugin/test_cli.py b/tests/honcho_plugin/test_cli.pyindex 25d8380b081..a66a1574910 100644--- a/tests/honcho_plugin/test_cli.py+++ b/tests/honcho_plugin/test_cli.py@@ -275,6 +275,22 @@ class TestCloneHonchoForProfile:new_block = written["cfg"]["hosts"]["hermes_coder"]assert new_block["runtimePeerPrefix"] == "telegram_"+ def test_session_ai_peer_prefix_carries_into_cloned_profile(self, monkeypatch, tmp_path):+ cfg = {+ "apiKey": "***",+ "hosts": {+ "hermes": {+ "sessionAiPeerPrefix": True,+ "peerName": "eri",+ },+ },+ }+ honcho_cli, written = self._setup_clone_env(monkeypatch, tmp_path, cfg)+ ok = honcho_cli.clone_honcho_for_profile("coder")+ assert ok is True+ new_block = written["cfg"]["hosts"]["hermes_coder"]+ assert new_block["sessionAiPeerPrefix"] is True+def test_legacy_pin_peer_name_migrates_to_canonical_on_clone(self, monkeypatch, tmp_path):cfg = {"apiKey": "***",