Fixes goose acp initialization
This commit is contained in:
+6
-1
@@ -223,7 +223,12 @@ class GooseConnection:
|
||||
client_info=Implementation(name="honker", version="0.1.0"),
|
||||
client_capabilities=ClientCapabilities(),
|
||||
)
|
||||
log.info("ACP initialized: %s", resp)
|
||||
log.info(
|
||||
"ACP initialized (protocol_version=%s, agent=%s)",
|
||||
resp.protocol_version,
|
||||
resp.agent_info,
|
||||
)
|
||||
log.debug("ACP full init response: %s", resp)
|
||||
|
||||
async def stop(self) -> None:
|
||||
"""Shut down the ACP connection and goose process."""
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import argparse
|
||||
import asyncio
|
||||
import logging
|
||||
import os
|
||||
import signal
|
||||
import sys
|
||||
from pathlib import Path
|
||||
@@ -84,6 +85,13 @@ def main() -> None:
|
||||
if args.debug:
|
||||
log.debug("Debug mode enabled — process logs will be written to %s", args.debug)
|
||||
|
||||
if "DBUS_SESSION_BUS_ADDRESS" not in os.environ:
|
||||
log.warning(
|
||||
"DBUS_SESSION_BUS_ADDRESS is not set — Goose may not be able to "
|
||||
"access its keyring for API keys. If you see authentication errors, "
|
||||
"ensure you're running in a session with D-Bus available."
|
||||
)
|
||||
|
||||
asyncio.run(run(args))
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user