diff options
| author | Jesse Vincent <jesse@primeradiant.com> | 2026-07-05 12:00:35 -0700 |
|---|---|---|
| committer | Drew Ritter <drew@ritter.dev> | 2026-07-13 14:25:32 -0700 |
| commit | f68c94334d6cd7b6bb760583970344c24e1d3858 (patch) | |
| tree | 184f45deefefda32a89cf0b5dd961be1cfd6204e /tests/opencode/test-plugin-loading.sh | |
| parent | df938188560a0695ccc83909cf065dc3a0780200 (diff) | |
fix(skills): capture worktree path before Step 5 changes directory
Step 6 recomputed WORKTREE_PATH after Option 1 and discard had already
cd'd to the main repo root, so --show-toplevel returned the main root:
the provenance check could never match, cleanup silently no-oped, and the
branch delete failed with the worktree still attached. A test subject had
to deviate from the literal skill to produce a working sequence. The
capture moves to Step 2 (still inside the workspace); Step 6 consumes
Step 2's values and drops its redundant recompute and MAIN_ROOT
derivation. Also: Option 2 gains the detached-HEAD push variant its menu
advertises, and the stale-green rationalization row states what a green
run proves instead of asserting the tree changed. Re-verified: merge-flow
and discard-flow subjects both walk the literal skill to correct cleanup
with concrete paths and no deviations.
Diffstat (limited to 'tests/opencode/test-plugin-loading.sh')
0 files changed, 0 insertions, 0 deletions
