mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-06-09 08:21:50 +00:00
fix(honcho): share workspace across profiles by default
Profiles inherit the default workspace instead of deriving a separate one. All profiles see the same user context, sessions, and project history. Each profile is a different AI peer in a shared space. Workspace can still be overridden per-profile via config if isolation is needed.
This commit is contained in:
parent
f27da5fe8e
commit
5f6bf2a473
2 changed files with 3 additions and 3 deletions
|
|
@ -113,7 +113,7 @@ def cmd_enable(args) -> None:
|
|||
if peer_name and "peerName" not in block:
|
||||
block["peerName"] = peer_name
|
||||
block.setdefault("aiPeer", host)
|
||||
block.setdefault("workspace", host)
|
||||
block.setdefault("workspace", default_block.get("workspace") or cfg.get("workspace") or HOST)
|
||||
|
||||
_write_config(cfg)
|
||||
print(f" {label}Honcho enabled.")
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ class TestCloneHonchoForProfile:
|
|||
assert new_block["recallMode"] == "tools"
|
||||
assert new_block["writeFrequency"] == "turn"
|
||||
assert new_block["aiPeer"] == "hermes.coder"
|
||||
assert new_block["workspace"] == "hermes.coder"
|
||||
assert new_block["workspace"] == "hermes" # shared, not profile-derived
|
||||
assert new_block["enabled"] is True
|
||||
|
||||
def test_skips_when_no_honcho_configured(self, tmp_path):
|
||||
|
|
@ -113,5 +113,5 @@ class TestCloneHonchoForProfile:
|
|||
assert result is True
|
||||
cfg = json.loads(config_file.read_text())
|
||||
assert cfg["hosts"]["hermes.coder"]["aiPeer"] == "hermes.coder"
|
||||
assert cfg["hosts"]["hermes.coder"]["workspace"] == "hermes.coder"
|
||||
assert cfg["hosts"]["hermes.coder"]["workspace"] == "hermes" # shared
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue