claude-issue-solver 1.39.0 → 1.39.2

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.
@@ -135,13 +135,40 @@ echo ""
135
135
 
136
136
  # Remove worktree (need to cd out first)
137
137
  cd "${projectRoot}"
138
+
139
+ # Try git worktree remove first
138
140
  git worktree remove "${worktreePath}" --force 2>/dev/null
139
141
 
140
- echo "✅ Worktree removed. Branch '${branchName}' preserved on remote."
141
- echo " Fetch it in main repo: git fetch origin ${branchName}"
142
+ # If folder still exists, force delete it
143
+ if [ -d "${worktreePath}" ]; then
144
+ echo "Git worktree remove didn't fully clean up, force deleting..."
145
+ /bin/rm -rf "${worktreePath}" 2>/dev/null || rm -rf "${worktreePath}" 2>/dev/null
146
+ fi
147
+
148
+ # Prune any stale worktree references
149
+ git worktree prune 2>/dev/null
150
+
151
+ # Verify cleanup
152
+ if [ -d "${worktreePath}" ]; then
153
+ echo "⚠️ Could not fully remove worktree. You may need to manually delete:"
154
+ echo " rm -rf '${worktreePath}'"
155
+ else
156
+ echo "✅ Worktree removed. Branch '${branchName}' preserved on remote."
157
+ echo " Fetch it in main repo: git fetch origin ${branchName}"
158
+ fi
159
+
142
160
  echo ""
143
161
  echo "Terminal will close in 3 seconds..."
144
162
  sleep 3
163
+
164
+ # Close the terminal window (macOS)
165
+ if [[ "$OSTYPE" == "darwin"* ]]; then
166
+ if [[ "$TERM_PROGRAM" == "iTerm.app" ]]; then
167
+ osascript -e 'tell application "iTerm" to close (current window)' &
168
+ else
169
+ osascript -e 'tell application "Terminal" to close (first window whose selected tab contains (frontmost tab))' &
170
+ fi
171
+ fi
145
172
  exit 0
146
173
  `;
147
174
  const interactiveEnding = `
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-issue-solver",
3
- "version": "1.39.0",
3
+ "version": "1.39.2",
4
4
  "description": "Automatically solve GitHub issues using Claude Code",
5
5
  "main": "dist/index.js",
6
6
  "bin": {