kin: KIN-129-debugger

This commit is contained in:
Gros Frumos 2026-03-18 22:28:16 +02:00
parent f1c868e335
commit b39b3d8c6b
2 changed files with 8 additions and 1 deletions

View file

@ -45,6 +45,12 @@ def _build_claude_env() -> dict:
Also resolves ~/.nvm/versions/node/*/bin globs that launchctl may not expand.
"""
env = os.environ.copy()
# Propagate canonical DB path to agent subprocesses so they don't fall back
# to module-relative path (which breaks in worktrees — KIN-129).
if "KIN_DB_PATH" not in env:
env["KIN_DB_PATH"] = str(Path.home() / ".kin" / "kin.db")
existing = env.get("PATH", "").split(":")
extra = list(_EXTRA_PATH_DIRS)