use dedicated chat agent for opencode sessions
This commit is contained in:
+1
-1
@@ -268,7 +268,7 @@ async def _ensure_opencode_session(email: str) -> str:
|
|||||||
f"{OPENCODE_URL}/session",
|
f"{OPENCODE_URL}/session",
|
||||||
auth=_opencode_auth(),
|
auth=_opencode_auth(),
|
||||||
headers={"x-opencode-directory": "/home/madcat"},
|
headers={"x-opencode-directory": "/home/madcat"},
|
||||||
json={"title": f"chat-saiden:{email}"},
|
json={"title": f"chat-saiden:{email}", "agent": "chat"},
|
||||||
)
|
)
|
||||||
resp.raise_for_status()
|
resp.raise_for_status()
|
||||||
sid = resp.json()["id"]
|
sid = resp.json()["id"]
|
||||||
|
|||||||
Reference in New Issue
Block a user