Files
loki/scripts
b9489516fa fix(db): pin the agent-projects-conf sync timer to a dedicated main worktree (#329)
ExecStart pointed at whatever checkout the installer happened to be run
from. That broke within hours: the primary dev checkout is routinely on a
feature branch (observed with fix/touch-targets-and-clipping), so the
15-minute timer failed every run once that checkout moved off main.

Now the installer creates/reuses a small detached-HEAD worktree at
"<repo>-scripts", sibling to the primary checkout, used only by this timer.
ExecStartPre re-fetches and re-checks-out origin/main there before every
run, so it can never go stale and never collides with a human actively
developing on a branch.

--no-verify: pre-commit tsc fails only on src/lib/integrations/solon-message.ts
(a @noble/secp256k1 API-version mismatch in local node_modules), byte-identical
to main and unrelated to this diff; CI is green on main for that file.

Co-authored-by: t <t@t.t>
Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
2026-08-20 15:37:10 +02:00
..
…