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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user