fix: isolate codex home in worktrees

This commit is contained in:
Dotta
2026-03-13 11:53:56 -05:00
parent d51c4b1a4c
commit 528505a04a
7 changed files with 496 additions and 8 deletions

View File

@@ -14,6 +14,14 @@ The main behavior changes are:
- The agent config UI now explains the difference between bootstrap prompts and heartbeat prompts and warns about prompt churn.
- Runtime skill defaults now include `paperclip`, `para-memory-files`, and `paperclip-create-agent`. `create-agent-adapter` was moved to `.agents/skills/create-agent-adapter`.
Important follow-up finding from real-run review:
- `codex_local` currently injects Paperclip skills into the shared Codex skills home (`$CODEX_HOME/skills` or `~/.codex/skills`) rather than mounting a worktree-local skill directory.
- If a Paperclip-owned skill symlink already points at another live checkout, the adapter currently skips it instead of repointing it.
- In practice, this means a worktree can contain newer `skills/paperclip/SKILL.md` guidance while Codex still follows an older checkout's skill content.
- That likely explains why PAP-507 still showed full issue/comment reload behavior even though the incremental context work was already implemented in this branch.
- This should be treated as a separate follow-up item for `codex_local` skill isolation or symlink repair.
Files with the most important implementation work:
- `server/src/services/heartbeat.ts`