fleet-memory/hindsight-embed/tests
Nicolò Boschi 7d6c570a3a
fix(embed): clear stale daemon on port before starting (#843)
* fix(embed): clear stale daemon on port before starting new one (#843)

When `uvx hindsight-embed@latest` resolves to a new version, the old
daemon may still be bound to the port, causing EADDRINUSE. Before
starting a daemon, check if the port is occupied, verify it's a
hindsight process via /health, and SIGTERM it if so.

* chore: remove unused signal import from test

* refactor: use cross-platform port check instead of lsof-only

Use socket for port check (works on all platforms), extract PID lookup
into a helper with Windows (netstat) and Unix (lsof) paths, and
extract kill logic into a testable static method.

* refactor: reuse cross-platform helpers in stop() and stop_ui()
2026-04-02 10:57:28 +02:00
..
__init__.py feat(hindsight-embed): external API support + OpenClaw fixes (#263, #264) (#265) 2026-01-31 17:02:13 +01:00
test_daemon_client.py fix(embed): clear stale daemon on port before starting (#843) 2026-04-02 10:57:28 +02:00
test_embed_manager.py feat: HindsightEmbedded python SDK (#293) 2026-02-04 14:41:19 +01:00
test_profile_daemon_config.py fix: hindsight-embed profiles are not loaded correctly (#316) 2026-02-06 17:13:54 +01:00
test_profile_integration.py feat(embed): add hindisght-embed profiles (#277) 2026-02-02 14:38:06 +01:00
test_profile_manager.py fix: hindsight-embed profiles are not loaded correctly (#316) 2026-02-06 17:13:54 +01:00