Fixes goose acp initialization

This commit is contained in:
2026-05-09 15:59:59 -04:00
parent 94563b1f1d
commit 3b1738fdfb
2 changed files with 14 additions and 1 deletions
+6 -1
View File
@@ -223,7 +223,12 @@ class GooseConnection:
client_info=Implementation(name="honker", version="0.1.0"), client_info=Implementation(name="honker", version="0.1.0"),
client_capabilities=ClientCapabilities(), 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: async def stop(self) -> None:
"""Shut down the ACP connection and goose process.""" """Shut down the ACP connection and goose process."""
+8
View File
@@ -1,6 +1,7 @@
import argparse import argparse
import asyncio import asyncio
import logging import logging
import os
import signal import signal
import sys import sys
from pathlib import Path from pathlib import Path
@@ -84,6 +85,13 @@ def main() -> None:
if args.debug: if args.debug:
log.debug("Debug mode enabled — process logs will be written to %s", 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)) asyncio.run(run(args))