8000 fix(git): name the session that holds a worktree by dominikwozniak · Pull Request #132 · dominikwozniak/dw-mc · GitHub
[go: up one dir, main page]

Skip to content

fix(git): name the session that holds a worktree - #132

Merged
dominikwozniak merged 1 commit into
mainfrom
fix/131-held-session-message
Sep 20, 2026
Merged

dominikwozniak merged 1 commit into
mainfrom
fix/131-held-session-message

Conversation

@dominikwozniak
Copy link
Copy Markdown
Owner

A standing session refuses to open where its branch has gone past the pull request's head, because resetting it would be resetting over commits I have not pushed. The refusal is the only thing that tells me where those commits are, and it reads as a fix session whichever session raised it - so dw-mc resolve, the one command that opens a session on a conflict, sends me looking for a fix session I never opened while the work sits under rebases/.

What changes

  • src/adapters/git.ts - the refusal names the session it was given, and WorktreeHeld's own sentence says where that session's worktree is rather than claiming a fix.
  • src/adapters/git.test.ts - the git fake answers how far a branch has gone for either session's branch, not the fix one alone.

Test plan

  • pnpm check - pass (lint, format, typecheck, 823 tests, build)
  • src/adapters/git.test.ts - 29/29; the new case is "says it is the session on a conflict that left the commits, and where they are", red on main with expected 'The last fix session on dominikwoznia…' to include 'rebase session'

Risk

The refusal is the last thing standing between worktree add -B and commits that are only on this machine, and this change touches what it says, never whether it fires - the case that raises it is unchanged and still covered. Carries a patch changeset.

Closes #131

🤖 Generated with Claude Code

A refusal that sends me to a fix session I never opened is worse than no
refusal: what it exists to say is where the commits I have not pushed
are, and `dw-mc resolve` is the command that reads it.

The error carries the session's word from the call that raised it, and
its own sentence stops claiming one. The fake answers how far a branch
has gone for either session, which is what the case for a conflict
session needs.

Closes #131

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@dominikwozniak
dominikwozniak merged commit 06168c2 into main Sep 20, 2026
1 check passed
@dominikwozniak
dominikwozniak deleted the fix/131-held-session-message branch September 20, 2026 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(git): a held worktree says which session left the work

1 participant

0