use dedicated chat agent for opencode sessions

This commit is contained in:
marauder-actual
2026-05-29 18:42:44 +02:00
parent fa018f380c
commit 34295d2f14
+1 -1
View File
@@ -268,7 +268,7 @@ async def _ensure_opencode_session(email: str) -> str:
f"{OPENCODE_URL}/session",
auth=_opencode_auth(),
headers={"x-opencode-directory": "/home/madcat"},
json={"title": f"chat-saiden:{email}"},
json={"title": f"chat-saiden:{email}", "agent": "chat"},
)
resp.raise_for_status()
sid = resp.json()["id"]