Skip to content

fix(core): Resolve networking, environment, and async blocking issues - #8

Merged
talhasarit merged 3 commits into
mainfrom
develop
Aug 5, 2025
Merged

fix(core): Resolve networking, environment, and async blocking issues#8
talhasarit merged 3 commits into
mainfrom
develop

Conversation

@talhasarit

Copy link
Copy Markdown
Owner

Description

This PR addresses several fundamental issues that were preventing the application from running successfully in the Dockerized environment. The core problems were related to inter-container networking, environment variable loading, and a critical bug where the Google GenAI SDK was blocking the asynchronous event loop.

Key Changes

  • Networking: The frontend now correctly resolves the backend's address using the BACKEND_URL environment variable, fixing the "Connection Refused" error.
  • Environment Loading: The backend has been updated with python-dotenv to ensure that API keys and other configuration from the .env file are properly loaded at startup.
  • Asynchronous Stability: The vanilla_google adapter, which was causing the entire application to hang, has been patched. It now runs the blocking SDK calls in a separate thread using a ThreadPoolExecutor, ensuring the server remains responsive.
  • Docker Configuration: The Redis service in docker-compose.yml has been remapped from port 6379 to 6380 to avoid common port conflicts during local development.

These changes collectively restore the application to a functional state and improve its stability and reliability for local development.

@talhasarit
talhasarit merged commit 4da69f6 into main Aug 5, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant