diff --git a/src/honker/goose.py b/src/honker/goose.py index 68b3186..0a69b9a 100644 --- a/src/honker/goose.py +++ b/src/honker/goose.py @@ -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.""" diff --git a/src/honker/main.py b/src/honker/main.py index fe1c63d..dc18785 100644 --- a/src/honker/main.py +++ b/src/honker/main.py @@ -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))