When the daemon is already running, ensure_running() calls _register_profile() with a config dict using short keys (llm_api_key, llm_provider, etc.) that do not match the HINDSIGHT_API_* prefix filter. This caused api_config to always be empty, and create_profile() would overwrite the existing .env with an empty file on every CLI command. Add an early return guard so _register_profile() skips the create_profile() call when api_config is empty, preserving any existing profile configuration. Fixes #894 |
||
|---|---|---|
| .. | ||
| __init__.py | ||
| cli.py | ||
| daemon_client.py | ||
| daemon_embed_manager.py | ||
| embed_manager.py | ||
| profile_manager.py | ||