@soleur/opencode 3.406.2 → 3.406.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -395,6 +395,8 @@ npm ci --ignore-scripts --prefix apps/web-platform # needed by the webplat arm
|
|
|
395
395
|
|
|
396
396
|
## Sharp Edges
|
|
397
397
|
|
|
398
|
+
- **`cleanup-merged` keeps a merged worktree when `git status --porcelain` shows ANY line, including `??`.** Untracked scratch is enough: on 2026-11-18 four merged worktrees were kept for a `node_modules` symlink, an agent-chosen `.soleur-gate-logs/` dir, two junk files from a mis-quoted shell line, and a temp spec dir. Write scratch to the session scratchpad, never inside the worktree. Gitignore `node_modules` with no trailing slash, because `node_modules/` matches directories only and misses a symlink; and prefer a real install over a symlink into a sibling worktree, which dangles silently once that sibling is reaped. **Why:** #12847. See `knowledge-base/project/learnings/2026-11-18-four-session-errors-from-the-12847-stretch.md`.
|
|
399
|
+
|
|
398
400
|
- **A worktree attached by hand (`git worktree add` of an existing branch; `create` only makes new branches) has no lease, and a clean pushed worktree without an active lease is reapable by a sibling session's `cleanup-merged`.** Right after the manual add run `bash "${CLAUDE_PLUGIN_ROOT}/scripts/lib/session-state.sh" acquire_lease <branch> <skill> <minutes>` and confirm with `is_lease_active`; a lease is a time-boxed reservation (clamped to 24 h), so re-acquire it after a long pause. Commit and push as you go: a reaped directory loses only what was never committed. #10975 lost a worktree this way mid-gate.
|
|
399
401
|
|
|
400
402
|
- **A `cd <abs path under the bare root>` from inside a worktree SUCCEEDS, and every command after it reads `main`.** The bare checkout carries the same tree (`apps/web-platform`, `plugins/soleur`, …) as every worktree, so a path written from memory resolves there without error and the suite you run reports on a branch you are not on — measured on #8418: `cd /data/…/soleur/apps/web-platform 2>/dev/null || cd <worktree>/apps/web-platform` took the FIRST arm and `vitest` printed 57/57 about `main`. The only tell is the harness's `# Environment update` notice. Anchor every `cd` on `$PWD` or `git rev-parse --show-toplevel`, never on a remembered absolute; `hr-when-in-a-worktree-never-read-from-bare` has no hook, so the discipline is the guard. **Why:** #8418.
|