claude-teammate 0.1.231 → 0.1.232
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
|
@@ -66,11 +66,15 @@ export function createDraftPullRequestPoller({
|
|
|
66
66
|
if (stuckAt && (Date.now() - stuckAt.getTime() >= stuckPrRetryIntervalMs)) {
|
|
67
67
|
return true;
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
69
|
+
if (stuckAt) {
|
|
70
|
+
await logger.info("Draft PR is stuck but retry window has not elapsed, not queueing for work", {
|
|
71
|
+
pr: pullRequest.number,
|
|
72
|
+
repo: pullRequest.repoUrl
|
|
73
|
+
});
|
|
74
|
+
return false;
|
|
75
|
+
}
|
|
76
|
+
// No STUCK_AT = permanent stuck (e.g. step too large for Claude).
|
|
77
|
+
// Fall through to the human-comment check so "@BOT retry" can unblock it.
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
const latestComment = getLatestGitHubComment(detail.comments);
|
|
@@ -142,10 +142,21 @@ export async function processTrackedPullRequest({
|
|
|
142
142
|
if (currentStatus === "STUCK") {
|
|
143
143
|
const stuckAt = getStuckAt(detail.body);
|
|
144
144
|
const shouldRetry = stuckAt && (Date.now() - stuckAt.getTime() >= stuckPrRetryIntervalMs);
|
|
145
|
-
|
|
145
|
+
const latestHumanComment = !stuckAt
|
|
146
|
+
? getLatestGitHubComment(detail.comments.filter((c) => !isForgeBotAuthor(c.author, githubBotUser)))
|
|
147
|
+
: null;
|
|
148
|
+
const humanRetryRequested = latestHumanComment &&
|
|
149
|
+
!hasEyesReaction(latestHumanComment) &&
|
|
150
|
+
!hasPlusOneReaction(latestHumanComment);
|
|
151
|
+
if (shouldRetry || humanRetryRequested) {
|
|
146
152
|
const resetBody = setPullRequestStatus(detail.body, "INITIALIZING");
|
|
147
153
|
await github.updatePullRequest(repo.url, detail.number, { title: detail.title, body: resetBody });
|
|
148
|
-
await logger.info("Retrying STUCK pull request", {
|
|
154
|
+
await logger.info("Retrying STUCK pull request", {
|
|
155
|
+
repo: repo.url,
|
|
156
|
+
pr: detail.number,
|
|
157
|
+
reason: shouldRetry ? "retry_window_elapsed" : "human_comment",
|
|
158
|
+
stuckAt: stuckAt?.toISOString() ?? null
|
|
159
|
+
});
|
|
149
160
|
return processPullRequestImplementation({
|
|
150
161
|
repo,
|
|
151
162
|
detail: { ...detail, body: resetBody },
|