mirror of
https://github.com/affaan-m/ECC.git
synced 2026-11-17 21:42:11 +00:00
A bare load_dotenv() calls find_dotenv() without usecwd, which searches
upward from the calling script's directory (skills/videodb/scripts), not
from the project the user is in. A VIDEO_DB_API_KEY saved in the project
.env, as the skill documents, was never read, so the listener failed with
an authentication error. Use load_dotenv(find_dotenv(usecwd=True)).
The Quick Start started the listener with `python scripts/ws_listener.py`,
which does not resolve from the project directory on a plugin install.
Point it at "${CLAUDE_SKILL_DIR}/scripts/ws_listener.py".
Also stop the immediate reconnect loop when the server accepts and then
closes the socket: a close now counts as a failed attempt with backoff,
and the retry budget resets only after an event is received.
Signed-off-by: Wen <jwcastillo@gmail.com>