Repository navigation
fix(git): name the session that holds a worktree - #132
Merged
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 underrebases/.What changes
src/adapters/git.ts- the refusal names the session it was given, andWorktreeHeld's own sentence says where that session's worktree is rather than claiming a fix.src/adapters/git.test.ts- thegitfake 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 onmainwithexpected 'The last fix session on dominikwoznia…' to include 'rebase session'Risk
The refusal is the last thing standing between
worktree add -Band 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