kin: auto-commit after pipeline

This commit is contained in:
Gros Frumos 2026-03-17 16:36:52 +02:00
parent 96047f3525
commit 8fa2cc266c
3 changed files with 11 additions and 3 deletions

View file

@ -3,6 +3,7 @@ Kin Web API — FastAPI backend reading ~/.kin/kin.db via core.models.
Run: uvicorn web.api:app --reload --port 8420
"""
import glob as _glob
import logging
import mimetypes
import shutil
@ -114,6 +115,10 @@ def _launch_pipeline_subprocess(task_id: str) -> None:
cmd = [sys.executable, "-m", "cli.main", "--db", str(DB_PATH), "run", task_id]
cmd.append("--allow-write")
env = os.environ.copy()
if 'SSH_AUTH_SOCK' not in env:
_socks = _glob.glob('/private/tmp/com.apple.launchd.*/Listeners')
if _socks:
env['SSH_AUTH_SOCK'] = _socks[0]
env["KIN_NONINTERACTIVE"] = "1"
try:
proc = subprocess.Popen(